Vector Tile Custom Scheme

5584
13
01-19-2017 12:10 PM
GreggRoemhildt1
Occasional Contributor

I keep running the Create Vector Tile Package tool in ArcGIS Pro on a custom tiling scheme I created using the Generate Tile Scheme Tool, and I keep encountering the error message:

001854: Tiling scheme must have a 512 x 512 tile size and consecutive scales in a ratio of two.

001854: Tiling scheme must have a 512 x 512 tile size and consecutive scales in a ratio of two.—Help... 

The solution, is obviously to use 512 x 512 and consecutive scales with a ratio of two, which I have set up. 

Any clue what I can do to fix this? Here's my custom tiling scheme: 

<?xml version="1.0" encoding="utf-8" ?>
<CacheInfo xsi:type='typens:CacheInfo' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xs='http://www.w3.org/2001/XMLSchema' xmlns:typens='http://www.esri.com/schemas/ArcGIS/10.5'>
    <TileCacheInfo xsi:type='typens:TileCacheInfo'>
        <SpatialReference xsi:type='typens:ProjectedCoordinateSystem'>
            <WKT>PROJCS[&quot;WGS_1984_Web_Mercator_Auxiliary_Sphere&quot;,GEOGCS[&quot;GCS_WGS_1984&quot;,DATUM[&quot;D_WGS_1984&quot;,SPHEROID[&quot;WGS_1984&quot;,6378137.0,298.257223563]],PRIMEM[&quot;Greenwich&quot;,0.0],UNIT[&quot;Degree&quot;,0.0174532925199433]],PROJECTION[&quot;Mercator_Auxiliary_Sphere&quot;],PARAMETER[&quot;False_Easting&quot;,0.0],PARAMETER[&quot;False_Northing&quot;,0.0],PARAMETER[&quot;Central_Meridian&quot;,0.0],PARAMETER[&quot;Standard_Parallel_1&quot;,0.0],PARAMETER[&quot;Auxiliary_Sphere_Type&quot;,0.0],UNIT[&quot;Meter&quot;,1.0],AUTHORITY[&quot;EPSG&quot;,3857]]</WKT>
            <XOrigin>-20037700</XOrigin>
            <YOrigin>-30241100</YOrigin>
            <XYScale>148923141.92838538</XYScale>
            <ZOrigin>-100000</ZOrigin>
            <ZScale>10000</ZScale>
            <MOrigin>-100000</MOrigin>
            <MScale>10000</MScale>
            <XYTolerance>0.001</XYTolerance>
            <ZTolerance>0.001</ZTolerance>
            <MTolerance>0.001</MTolerance>
            <HighPrecision>true</HighPrecision>
            <WKID>102100</WKID>
            <LatestWKID>3857</LatestWKID>
        </SpatialReference>
        <TileOrigin xsi:type='typens:PointN'>
            <X>-20037700</X>
            <Y>30241100</Y>
        </TileOrigin>
        <TileCols>512</TileCols>
        <TileRows>512</TileRows>
        <DPI>96</DPI>
        <LODInfos xsi:type='typens:ArrayOfLODInfo'>
            <LODInfo xsi:type='typens:LODInfo'>
                <LevelID>0</LevelID>
                <Scale>577791.70987213368</Scale>
                <Resolution>152.87436231906003</Resolution>
            </LODInfo>
            <LODInfo xsi:type='typens:LODInfo'>
                <LevelID>1</LevelID>
                <Scale>288895.85493606684</Scale>
                <Resolution>76.437181159530013</Resolution>
            </LODInfo>
            <LODInfo xsi:type='typens:LODInfo'>
                <LevelID>2</LevelID>
                <Scale>144447.92746803342</Scale>
                <Resolution>38.218590579765007</Resolution>
            </LODInfo>
            <LODInfo xsi:type='typens:LODInfo'>
                <LevelID>3</LevelID>
                <Scale>72223.96373401671</Scale>
                <Resolution>19.109295289882503</Resolution>
            </LODInfo>
            <LODInfo xsi:type='typens:LODInfo'>
                <LevelID>4</LevelID>
                <Scale>36111.981867008355</Scale>
                <Resolution>9.5546476449412516</Resolution>
            </LODInfo>
            <LODInfo xsi:type='typens:LODInfo'>
                <LevelID>5</LevelID>
                <Scale>18055.990933504178</Scale>
                <Resolution>4.7773238224706258</Resolution>
            </LODInfo>
            <LODInfo xsi:type='typens:LODInfo'>
                <LevelID>6</LevelID>
                <Scale>9027.9954667520888</Scale>
                <Resolution>2.3886619112353129</Resolution>
            </LODInfo>
            <LODInfo xsi:type='typens:LODInfo'>
                <LevelID>7</LevelID>
                <Scale>4513.9977333760444</Scale>
                <Resolution>1.1943309556176565</Resolution>
            </LODInfo>
            <LODInfo xsi:type='typens:LODInfo'>
                <LevelID>8</LevelID>
                <Scale>2256.9988666880222</Scale>
                <Resolution>0.59716547780882823</Resolution>
            </LODInfo>
            <LODInfo xsi:type='typens:LODInfo'>
                <LevelID>9</LevelID>
                <Scale>1128.4994333440111</Scale>
                <Resolution>0.29858273890441411</Resolution>
            </LODInfo>
            <LODInfo xsi:type='typens:LODInfo'>
                <LevelID>10</LevelID>
                <Scale>564.24971667200555</Scale>
                <Resolution>0.14929136945220706</Resolution>
            </LODInfo>
            <LODInfo xsi:type='typens:LODInfo'>
                <LevelID>11</LevelID>
                <Scale>282.12485833600277</Scale>
                <Resolution>0.074645684726103528</Resolution>
            </LODInfo>
            <LODInfo xsi:type='typens:LODInfo'>
                <LevelID>12</LevelID>
                <Scale>141.06242916800139</Scale>
                <Resolution>0.037322842363051764</Resolution>
            </LODInfo>
            <LODInfo xsi:type='typens:LODInfo'>
                <LevelID>13</LevelID>
                <Scale>70.531214584000693</Scale>
                <Resolution>0.018661421181525882</Resolution>
            </LODInfo>
            <LODInfo xsi:type='typens:LODInfo'>
                <LevelID>14</LevelID>
                <Scale>35.26560729200034</Scale>
                <Resolution>907629393</Resolution>
            </LODInfo>
            <LODInfo xsi:type='typens:LODInfo'>
                <LevelID>15</LevelID>
                <Scale>17.63280364600017</Scale>
                <Resolution>0.0046653552953814697</Resolution>
            </LODInfo>
            <LODInfo xsi:type='typens:LODInfo'>
                <LevelID>16</LevelID>
                <Scale>8.8164018230000867</Scale>
                <Resolution>0.0023326776476907353</Resolution>
            </LODInfo>
            <LODInfo xsi:type='typens:LODInfo'>
                <LevelID>17</LevelID>
                <Scale>4.4082009115000433</Scale>
                <Resolution>0.0011663388238453676</Resolution>
            </LODInfo>
            <LODInfo xsi:type='typens:LODInfo'>
                <LevelID>18</LevelID>
                <Scale>2.2041004557500208</Scale>
                <Resolution>0.0005831694119226836</Resolution>
            </LODInfo>
            <LODInfo xsi:type='typens:LODInfo'>
                <LevelID>19</LevelID>
                <Scale>1.1020502278750111</Scale>
                <Resolution>0.00029158470596134196</Resolution>
            </LODInfo>
        </LODInfos>
        <PreciseDPI>96</PreciseDPI>
    </TileCacheInfo>
    <TileImageInfo xsi:type='typens:TileImageInfo'>
        <CacheTileFormat>PNG</CacheTileFormat>
        <CompressionQuality>0</CompressionQuality>
        <Antialiasing>false</Antialiasing>
        <BandCount>1</BandCount>
        <LERCError>0</LERCError>
    </TileImageInfo>
    <CacheStorageInfo xsi:type='typens:CacheStorageInfo'>
        <StorageFormat>esriMapCacheStorageModeCompactV2</StorageFormat>
        <PacketSize>128</PacketSize>
    </CacheStorageInfo>
</CacheInfo>
13 Replies
KateLeroux
New Contributor III

Gregg, I'm struggling with something similar and am very interested to know if you've found a solution. I'm getting a slightly different error: 00252: Tiling scheme is not supported for vector tile layers—ArcGIS Pro | ArcGIS Desktop . 

However, I think the issue is mostly the same. I'm trying to publish a vector tile layer with custom scale levels, and I can't get Pro to accept my tiling scheme. Like you, I've ensured I'm using 512x512 tiles, and scale levels that double. Any luck?

0 Kudos
GreggRoemhildt1
Occasional Contributor

I haven't had any luck. For now I'm sticking with regular tiles, since I am unable to create a vector tile scheme with more zoom levels. 

0 Kudos
KateLeroux
New Contributor III

We have Esri Premium Support, so I'll file a ticket and let you know what they suggest. 

0 Kudos
KateLeroux
New Contributor III

Update: the issue hasn't been solved but one factor appears to be the extent of the data. I had a statewide vector feature class in my map and the scale levels in my tiling scheme did not entirely contain it. Once the data were clipped to the appropriate extent, the Esri representative could publish with my tiling scheme. I still cannot, so the issue remains open. 

0 Kudos
KateLeroux
New Contributor III

Final update: For some reason, Pro thinks the full extent of my map is much smaller scale than it really is. Once I used 1:629,145,600 as my level 0, Pro accepted my custom tiling scheme and I was able to publish a vector tile layer to ArcGIS Online. 

KateLeroux
New Contributor III

Bonus update: Esri logged this as a defect.

[BUG-000103167 Error 001854 when creating a vector tile package with a custom tiling scheme with the Create Vector Tile Package tool.]

DavidColey
Frequent Contributor

Hi Gregg -  I was actually able to get this to work. My xml looks exactly like yours above, only I am stopping at scale 282:

<?xml version="1.0" encoding="utf-8" ?>
<CacheInfo xsi:type='typens:CacheInfo'
 xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
 xmlns:xs='http://www.w3.org/2001/XMLSchema'
 xmlns:typens='http://www.esri.com/schemas/ArcGIS/1.4.0'>
 <TileCacheInfo xsi:type='typens:TileCacheInfo'>
 <SpatialReference xsi:type='typens:ProjectedCoordinateSystem'>
 <WKT>PROJCS[&quot;WGS_1984_Web_Mercator_Auxiliary_Sphere&quot;,GEOGCS[&quot;GCS_WGS_1984&quot;,DATUM[&quot;D_WGS_1984&quot;,SPHEROID[&quot;WGS_1984&quot;,6378137.0,298.257223563]],PRIMEM[&quot;Greenwich&quot;,0.0],UNIT[&quot;Degree&quot;,0.0174532925199433]],PROJECTION[&quot;Mercator_Auxiliary_Sphere&quot;],PARAMETER[&quot;False_Easting&quot;,0.0],PARAMETER[&quot;False_Northing&quot;,0.0],PARAMETER[&quot;Central_Meridian&quot;,0.0],PARAMETER[&quot;Standard_Parallel_1&quot;,0.0],PARAMETER[&quot;Auxiliary_Sphere_Type&quot;,0.0],UNIT[&quot;Meter&quot;,1.0],AUTHORITY[&quot;EPSG&quot;,3857]]</WKT>
 <XOrigin>-20037700</XOrigin>
 <YOrigin>-30241100</YOrigin>
 <XYScale>10000</XYScale>
 <ZOrigin>-100000</ZOrigin>
 <ZScale>10000</ZScale>
 <MOrigin>-100000</MOrigin>
 <MScale>10000</MScale>
 <XYTolerance>0.001</XYTolerance>
 <ZTolerance>0.001</ZTolerance>
 <MTolerance>0.001</MTolerance>
 <HighPrecision>true</HighPrecision>
 <WKID>102100</WKID>
 <LatestWKID>3857</LatestWKID>
 </SpatialReference>
 <TileOrigin xsi:type='typens:PointN'>
 <X>-20037508.342787001</X>
 <Y>20037508.342787001</Y>
 </TileOrigin>
 <TileCols>512</TileCols>
 <TileRows>512</TileRows>
 <DPI>96</DPI>
 <LODInfos xsi:type='typens:ArrayOfLODInfo'>
 <LODInfo xsi:type='typens:LODInfo'>
 <LevelID>0</LevelID>
 <Scale>295829355.45453244</Scale>
 <Resolution>78271.516964011724</Resolution>
 </LODInfo>
 <LODInfo xsi:type='typens:LODInfo'>
 <LevelID>1</LevelID>
 <Scale>147914677.72726622</Scale>
 <Resolution>39135.758482005862</Resolution>
 </LODInfo>
 <LODInfo xsi:type='typens:LODInfo'>
 <LevelID>2</LevelID>
 <Scale>73957338.863633111</Scale>
 <Resolution>19567.879241002931</Resolution>
 </LODInfo>
 <LODInfo xsi:type='typens:LODInfo'>
 <LevelID>3</LevelID>
 <Scale>36978669.431816556</Scale>
 <Resolution>9783.9396205014655</Resolution>
 </LODInfo>
 <LODInfo xsi:type='typens:LODInfo'>
 <LevelID>4</LevelID>
 <Scale>18489334.715908278</Scale>
 <Resolution>4891.9698102507327</Resolution>
 </LODInfo>
 <LODInfo xsi:type='typens:LODInfo'>
 <LevelID>5</LevelID>
 <Scale>9244667.3579541389</Scale>
 <Resolution>2445.9849051253664</Resolution>
 </LODInfo>
 <LODInfo xsi:type='typens:LODInfo'>
 <LevelID>6</LevelID>
 <Scale>4622333.6789770694</Scale>
 <Resolution>1222.9924525626832</Resolution>
 </LODInfo>
 <LODInfo xsi:type='typens:LODInfo'>
 <LevelID>7</LevelID>
 <Scale>2311166.8394885347</Scale>
 <Resolution>611.49622628134159</Resolution>
 </LODInfo>
 <LODInfo xsi:type='typens:LODInfo'>
 <LevelID>8</LevelID>
 <Scale>1155583.4197442674</Scale>
 <Resolution>305.7481131406708</Resolution>
 </LODInfo>
 <LODInfo xsi:type='typens:LODInfo'>
 <LevelID>9</LevelID>
 <Scale>577791.70987213368</Scale>
 <Resolution>152.8740565703354</Resolution>
 </LODInfo>
 <LODInfo xsi:type='typens:LODInfo'>
 <LevelID>10</LevelID>
 <Scale>288895.85493606684</Scale>
 <Resolution>76.437028285167699</Resolution>
 </LODInfo>
 <LODInfo xsi:type='typens:LODInfo'>
 <LevelID>11</LevelID>
 <Scale>144447.92746803342</Scale>
 <Resolution>38.218514142583849</Resolution>
 </LODInfo>
 <LODInfo xsi:type='typens:LODInfo'>
 <LevelID>12</LevelID>
 <Scale>72223.96373401671</Scale>
 <Resolution>19.109257071291925</Resolution>
 </LODInfo>
 <LODInfo xsi:type='typens:LODInfo'>
 <LevelID>13</LevelID>
 <Scale>36111.981867008355</Scale>
 <Resolution>9.5546285356459624</Resolution>
 </LODInfo>
 <LODInfo xsi:type='typens:LODInfo'>
 <LevelID>14</LevelID>
 <Scale>18055.990933504178</Scale>
 <Resolution>4.7773142678229812</Resolution>
 </LODInfo>
 <LODInfo xsi:type='typens:LODInfo'>
 <LevelID>15</LevelID>
 <Scale>9027.9954667520888</Scale>
 <Resolution>2.3886571339114906</Resolution>
 </LODInfo>
 <LODInfo xsi:type='typens:LODInfo'>
 <LevelID>16</LevelID>
 <Scale>4513.9977333760444</Scale>
 <Resolution>1.1943285669557453</Resolution>
 </LODInfo>
 <LODInfo xsi:type='typens:LODInfo'>
 <LevelID>17</LevelID>
 <Scale>2256.9988666880222</Scale>
 <Resolution>0.59716428347787265</Resolution>
 </LODInfo>
 <LODInfo xsi:type='typens:LODInfo'>
 <LevelID>18</LevelID>
 <Scale>1128.4994333440111</Scale>
 <Resolution>0.29858214173893632</Resolution>
 </LODInfo>
 <LODInfo xsi:type='typens:LODInfo'>
 <LevelID>19</LevelID>
 <Scale>564.24971667200555</Scale>
 <Resolution>0.14929107086946816</Resolution>
 </LODInfo>
 <LODInfo xsi:type='typens:LODInfo'>
 <LevelID>20</LevelID>
 <Scale>282.124858336002775</Scale>
 <Resolution>0.07464553543473408</Resolution>
 </LODInfo>
 </LODInfos>
 <PreciseDPI>96</PreciseDPI>
 </TileCacheInfo>
 <TileImageInfo xsi:type='typens:TileImageInfo'>
 <CacheTileFormat>PNG</CacheTileFormat>
 <CompressionQuality>0</CompressionQuality>
 <Antialiasing>false</Antialiasing>
 <BandCount>1</BandCount>
 <LERCError>0</LERCError>
 </TileImageInfo>
 <CacheStorageInfo xsi:type='typens:CacheStorageInfo'>
 <StorageFormat>esriMapCacheStorageModeCompact</StorageFormat>
 <PacketSize>128</PacketSize>
 </CacheStorageInfo>
</CacheInfo>

I got this to work once but can't repeat it, run fails.  I'm just trying to create a simple street overlay for our imagery reference basemap and can't.

After following all the guildelines for authoring a multi-scale map for authoring vector tiles, I still get really poor draws: Large areas of simple linework at medium scales like 1:72K, 1:36K will not render when panning and/or won't label when they do draw.  

If anyone has any idea on what keeps large tiled areas from drawing I would appreciate any insight.  But it may not matter until ESRI resolves this tiling scheme issue

deleted-user-TO7eyA9BxOFu
New Contributor

Have this issue as well. I have a working scheme based on LODs frm AGOL default template. Could it be possible just create a copy of that XML file and replace the scale values and keep resolutions as well as extra scales?

0 Kudos
TylerSchwartz2
Occasional Contributor II

We are almost 1 year into this bug being logged, and I am also encountering this problem.  I cannot get my tile scheme to be accepted (getting the error 001854) even though I have my tile size set to 512x512 pixels @ 150dpi in the "Create Tiling Scheme" tool (still confused why we are talking pixels and dpi if its a vector tile package, but whatever...)

Ok, so lets just forget a custom tiling scheme then and run the Create Vector Tile Package tool with the "Package for ArcGIS Online..." option checked.  Now we get large swaths that do not render at multiple different scales - as others have mentioned...

As the final alternative, lets uncheck "Package for ArcGIS online" and use the default tiling scheme that is automatically filled in (in my case since my map is in WGS84 its "VTTS_4326_GCS_WGS_1984.xml").  Going this route seems to give me the best results although, I am getting some areas where features arent rendering at certain scales (but not nearly as bad as having the ArcGIS Online box checked).

So where I am at, at this point, is that I have a less than perfect Vector Tile Package that mostly renders correctly (except at scales between 355k - 600k), and that is seemingly the best we can do at this point...  Really hoping that ESRI can get these (and multiple other bugs) fixed in Pro because at this point we lack critical functionality to create a basic vector basemap without rendering issues.  If anyone has some pointers on how to address the rendering issue(that I am perhaps missing) given the above workflow, or how to get a custom tiling scheme to work without the error 00184, that would be great.

0 Kudos