<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Issue Creating Vector Tile Package in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/issue-creating-vector-tile-package/m-p/1025354#M5533</link>
    <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am trying to create a vector tile package from a python script.I am using ArcGIS pro v2.7.i am always getting the same error&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error: ArcGIS Fehler: ERROR 002112: The root tile must overlap the data sufficiently for features to draw.&lt;BR /&gt;Failed to execute (CreateVectorTilePackage).&lt;/P&gt;&lt;P&gt;i am creating tile cache schema and passing that to create tile index and then create tile package.&lt;/P&gt;&lt;P&gt;one thing I found is in Arcgis pro when I try to create vtpk the schema XML is created automatically and it different from what I create with a toolbox and also from what I create from python.&lt;/P&gt;&lt;P&gt;the origin is different and it selects different scales and in Arcgis Pro it works but not in python.&lt;/P&gt;&lt;P&gt;for origin, i am taking map extent and then upper left point&lt;/P&gt;&lt;LI-CODE lang="python"&gt;mapExtents = input_map.defaultCamera.getExtent()
origin = "{0} {1}".format(mapExtents.upperLeft.X, mapExtents.upperLeft.Y)&lt;/LI-CODE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;i also tried to get the extent of feature class but still the has the same issue.i could not use ONLINE option because map coordinate system is not WGS84&lt;/P&gt;&lt;P&gt;all code snippet is as follows&lt;/P&gt;&lt;LI-CODE lang="python"&gt;APRX = arcpy.mp.ArcGISProject(APRXLocation)
input_map = APRX.listMaps(mapName)[0]
mapExtents = input_map.defaultCamera.getExtent()
origin = "{0} {1}".format(mapExtents.upperLeft.X, mapExtents.upperLeft.Y)
with arcpy.EnvManager(scratchWorkspace=ws, workspace=ws):
        arcpy.management.GenerateTileCacheTilingScheme(in_dataset=input_map, out_tiling_scheme=TPKSchemeName, tiling_scheme_generation_method="NEW", number_of_scales=TPKScalesNum, predefined_tiling_scheme=None,scales=TPKScales, scales_type="SCALE", tile_origin=origin, dpi=96, tile_size="512 x 512", tile_format="PNG", tile_compression_quality=0, storage_format="COMPACT", lerc_error=None)

indexFC = "in_memory\\vector_tile_index"

arcpy.management.CreateVectorTileIndex(input_map, indexFC, "EXISTING", TPKSchemeName, 10000)

arcpy.management.CreateVectorTilePackage(input_map, tpkFile, "EXISTING", TPKSchemeName, "INDEXED", "", "", None, '', '')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;also attaching the XML Script created by python script and xml created by ArcGIS Pro&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks in Advance&lt;/P&gt;</description>
    <pubDate>Wed, 10 Feb 2021 14:59:04 GMT</pubDate>
    <dc:creator>MichaelLorenz</dc:creator>
    <dc:date>2021-02-10T14:59:04Z</dc:date>
    <item>
      <title>Issue Creating Vector Tile Package</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/issue-creating-vector-tile-package/m-p/1025354#M5533</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am trying to create a vector tile package from a python script.I am using ArcGIS pro v2.7.i am always getting the same error&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error: ArcGIS Fehler: ERROR 002112: The root tile must overlap the data sufficiently for features to draw.&lt;BR /&gt;Failed to execute (CreateVectorTilePackage).&lt;/P&gt;&lt;P&gt;i am creating tile cache schema and passing that to create tile index and then create tile package.&lt;/P&gt;&lt;P&gt;one thing I found is in Arcgis pro when I try to create vtpk the schema XML is created automatically and it different from what I create with a toolbox and also from what I create from python.&lt;/P&gt;&lt;P&gt;the origin is different and it selects different scales and in Arcgis Pro it works but not in python.&lt;/P&gt;&lt;P&gt;for origin, i am taking map extent and then upper left point&lt;/P&gt;&lt;LI-CODE lang="python"&gt;mapExtents = input_map.defaultCamera.getExtent()
origin = "{0} {1}".format(mapExtents.upperLeft.X, mapExtents.upperLeft.Y)&lt;/LI-CODE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;i also tried to get the extent of feature class but still the has the same issue.i could not use ONLINE option because map coordinate system is not WGS84&lt;/P&gt;&lt;P&gt;all code snippet is as follows&lt;/P&gt;&lt;LI-CODE lang="python"&gt;APRX = arcpy.mp.ArcGISProject(APRXLocation)
input_map = APRX.listMaps(mapName)[0]
mapExtents = input_map.defaultCamera.getExtent()
origin = "{0} {1}".format(mapExtents.upperLeft.X, mapExtents.upperLeft.Y)
with arcpy.EnvManager(scratchWorkspace=ws, workspace=ws):
        arcpy.management.GenerateTileCacheTilingScheme(in_dataset=input_map, out_tiling_scheme=TPKSchemeName, tiling_scheme_generation_method="NEW", number_of_scales=TPKScalesNum, predefined_tiling_scheme=None,scales=TPKScales, scales_type="SCALE", tile_origin=origin, dpi=96, tile_size="512 x 512", tile_format="PNG", tile_compression_quality=0, storage_format="COMPACT", lerc_error=None)

indexFC = "in_memory\\vector_tile_index"

arcpy.management.CreateVectorTileIndex(input_map, indexFC, "EXISTING", TPKSchemeName, 10000)

arcpy.management.CreateVectorTilePackage(input_map, tpkFile, "EXISTING", TPKSchemeName, "INDEXED", "", "", None, '', '')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;also attaching the XML Script created by python script and xml created by ArcGIS Pro&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks in Advance&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 14:59:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/issue-creating-vector-tile-package/m-p/1025354#M5533</guid>
      <dc:creator>MichaelLorenz</dc:creator>
      <dc:date>2021-02-10T14:59:04Z</dc:date>
    </item>
  </channel>
</rss>

