<?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 Creating a map tile package (tpkx) containing elevation data in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/creating-a-map-tile-package-tpkx-containing/m-p/1288490#M6039</link>
    <description>&lt;P&gt;Our android app (100.15.1) is using&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;SpatialReferences.&lt;SPAN&gt;getWgs84&lt;/SPAN&gt;()&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I'm trying to create a tpkx file in ArcGIS pro, but I can't figure out what "Service" to specify for the tiling scheme?&lt;/P&gt;&lt;P&gt;I was succesful in creating DTED2 files from local TIF file raster. Loaded the dt2 files and used&lt;/P&gt;&lt;PRE&gt;getElevationAsync(point)&lt;/PRE&gt;&lt;P&gt;to retrive the elevation at specified coordinates.&lt;/P&gt;&lt;P&gt;But the Basic licence doesn't support&amp;nbsp;&lt;SPAN&gt;RasterElevationSource, so as soon as setting the licence, the raster fails to load.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 12 May 2023 08:50:25 GMT</pubDate>
    <dc:creator>Lybrica</dc:creator>
    <dc:date>2023-05-12T08:50:25Z</dc:date>
    <item>
      <title>Creating a map tile package (tpkx) containing elevation data</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/creating-a-map-tile-package-tpkx-containing/m-p/1288490#M6039</link>
      <description>&lt;P&gt;Our android app (100.15.1) is using&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;SpatialReferences.&lt;SPAN&gt;getWgs84&lt;/SPAN&gt;()&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I'm trying to create a tpkx file in ArcGIS pro, but I can't figure out what "Service" to specify for the tiling scheme?&lt;/P&gt;&lt;P&gt;I was succesful in creating DTED2 files from local TIF file raster. Loaded the dt2 files and used&lt;/P&gt;&lt;PRE&gt;getElevationAsync(point)&lt;/PRE&gt;&lt;P&gt;to retrive the elevation at specified coordinates.&lt;/P&gt;&lt;P&gt;But the Basic licence doesn't support&amp;nbsp;&lt;SPAN&gt;RasterElevationSource, so as soon as setting the licence, the raster fails to load.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 08:50:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/creating-a-map-tile-package-tpkx-containing/m-p/1288490#M6039</guid>
      <dc:creator>Lybrica</dc:creator>
      <dc:date>2023-05-12T08:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a map tile package (tpkx) containing elevation data</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/creating-a-map-tile-package-tpkx-containing/m-p/1288772#M6041</link>
      <description>&lt;P&gt;It should be the URL of a service that has a tiling scheme with LERC compression.&lt;/P&gt;&lt;P&gt;I just ran through this workflow and took a slightly different approach that might also work for you.&lt;/P&gt;&lt;P&gt;1. Use GenerateTileCacheTilingScheme and use the built-in tiling schemes provided with ArcGIS Pro but the key is to specify LERC for compression (note I used the GUI then copied as a Python script to share here):&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.management.GenerateTileCacheTilingScheme(
    in_dataset="ColoradoNewMexicoUtahArizona.tif",
    out_tiling_scheme=r"C:\Users\mike\Documents\ArcGIS\LERC.xml",
    tiling_scheme_generation_method="PREDEFINED",
    number_of_scales=23,
    predefined_tiling_scheme=r"C:\Program Files\ArcGIS\Pro\Resources\TilingSchemes\WGS84_Geographic_Coordinate_System_V2.xml",scales="295828763.7958547;147914381.89792734;73957190.94896367;36978595.474481836;18489297.737240918;9244648.868620459;4622324.4343102295;2311162.2171551147;1155581.1085775574;577790.5542887787;288895.27714438934;144447.63857219467;72223.81928609734;36111.90964304867;18055.954821524334;9027.977410762167;4513.9887053810835;2256.9943526905417;1128.4971763452709;564.2485881726354;282.1242940863177;141.06214704315886;70.53107352157943",
    scales_type="SCALE",
    tile_origin="-400 400",
    dpi=96,
    tile_size="256 x 256",
    tile_format="LERC",
    tile_compression_quality=0,
    storage_format="COMPACT",
    lerc_error=0.1
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Use CreateMapTilePackage and provide the tiling scheme created above:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.management.CreateMapTilePackage(
    in_map="Map",
    service_type="EXISTING", output_file=r"C:\Users\mike\Documents\ArcGIS\ColoradoNewMexicoUtahArizonaLERC.tpkx",
    format_type="PNG",
    level_of_detail=11,
    service_file=r"C:\Users\mike\Documents\ArcGIS\LERC.xml",
    summary="1 degree digital elevation model for Colorado, New Mexico, Utah and Arizona, USA (Data Basin Dataset)",
    tags="Data Basin Dataset, dem, elevation, four corners, southwest, USA, United States, Colorado, New Mexico, Utah, Arizona, pinyon",
    extent='-115.928396882076 30.4495284592416 -101.072556060999 42.5504476524816 GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]',
    compression_quality=75,
    package_type="tpkx",
    min_level_of_detail=0,
    area_of_interest=r"in_memory\feature_set1",
    create_multiple_packages=None,
    output_folder=None
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 20:44:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/creating-a-map-tile-package-tpkx-containing/m-p/1288772#M6041</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2023-05-12T20:44:32Z</dc:date>
    </item>
  </channel>
</rss>

