TPK Files not displaying in ArcGIS.

1926
4
02-06-2017 08:49 AM
SeanHarkins1
New Contributor

When loading a TPK file in ArcMap 10.4.0.5524 either via drag and drop or right clicking -> unpack, the TPK file loads correctly with no errors, but no tiles are displayed.  A sample TPK file is attached.

0 Kudos
4 Replies
JordanBaumgardner
Occasional Contributor III

I was abe to open it with ArcMap and WinRar. ArcMap showed nothing as you stated. WinRar could see inside, it has data for multiple levels, seems to have tiles.

Perhaps if you try opening it with one if the client API's and try to examine that way.

Sorry could not be of more help.

0 Kudos
JordanBaumgardner
Occasional Contributor III

This is from the Esri info.json in the TPK, perhaps it will provide a clue.

{
"contents": {
"capabilities": "Map,Query,Data",
"copyrightText": "Esri, HERE, DeLorme, MapmyIndia, © OpenStreetMap contributors, and the GIS user community",
"currentVersion": 10.22,
"description": "This map draws attention to your thematic content by providing a neutral background with minimal colors, labels, and features. Only key information is represented to provide geographic context, allowing your data to come to the foreground. This light gray map supports any strong colors, creating a visually compelling map graphic which helps your reader see the patterns intended. This map was developed by Esri using HERE data, DeLorme basemap layers, OpenStreetMap contributors, Esri basemap data, and select data from the GIS user community. Worldwide coverage is provided from Level 0 (1:591M scale) through Level 13 (1:72k scale). In North America (Canada, Mexico, United States), Europe, India, South America and Central America, Africa, most of the Middle east, and Australia & New Zealand coverage is provided from Level 14 (1:36k scale) through Level 16 (1:9k scale). For more information on this map, including our terms of use, visit us online at http://goto.arcgisonline.com/maps/World_Light_Gray_Base",
"documentInfo": {
"AntialiasingMode": "None",
"Author": "Esri",
"Category": "transportation(Transportation Networks) ",
"Comments": "",
"Keywords": "thematic basemap, thematic map, choropleth, dot map, dot density, flow map, heat map, graphs, infographic, graduated symbols, proportional symbols, neutral, subdued, canvas, shaded, hot spot, color coded, colorful, World, Global, Europe, Andorra, Austria, Belgium, Czech Republic, Denmark, France, Germany, Great Britain, Greece, Hungary, Ireland, Italy, Luxembourg, Netherlands, Norway, Poland, Portugal, San Marino, Slovakia, Spain, Sweden, Switzerland, North America, United States, Canada, Mexico, Southern Africa, Botswana, Lesotho, Namibia, South Africa and Swaziland, Asia, India, South America, Central America, Argentina, Bolivia, Brazil, Chile, Colombia, Peru, Uruguay, Venezuela, Australia, New Zealand ",
"Subject": "political boundaries, populated places, water, roads, urban areas, building footprints, parks",
"TextAntialiasingMode": "Force",
"Title": "Canvas Base"
},
"exportTilesAllowed": false,
"fullExtent": {
"spatialReference": {
"latestWkid": 3857,
"wkid": 102100
},
"xmax": -13041116.071290337,
"xmin": -13043638.493223747,
"ymax": 3858502.969321556,
"ymin": 3856458.278814927
},
"initialExtent": {
"spatialReference": {
"latestWkid": 3857,
"wkid": 102100
},
"xmax": -13041116.071290337,
"xmin": -13043638.493223747,
"ymax": 3858502.969321556,
"ymin": 3856458.278814927
},
"layers": [
{
"defaultVisibility": true,
"id": 0,
"maxScale": 0,
"minScale": 0,
"name": "Light Gray Canvas Base",
"parentLayerId": -1,
"subLayerIds": null
}
],
"mapName": "Layers",
"maxImageHeight": 4096,
"maxImageWidth": 4096,
"maxRecordCount": 1000,
"maxScale": 18055.954822,
"minScale": 591657527.591555,
"serviceDescription": "",
"singleFusedMapCache": true,
"spatialReference": {
"latestWkid": 3857,
"wkid": 102100
},
"supportedImageFormatTypes": "PNG32,PNG24,PNG,JPG,DIB,TIFF,EMF,PS,PDF,GIF,SVG,SVGZ,BMP",
"supportedQueryFormats": "JSON, AMF",
"supportsDynamicLayers": false,
"tables": [],
"tileInfo": {
"cols": 256,
"compressionQuality": 90,
"dpi": 96,
"format": "Mixed",
"lods": [
{
"level": 0,
"resolution": 156543.03392800014,
"scale": 591657527.591555
},
{
"level": 1,
"resolution": 78271.51696399994,
"scale": 295828763.795777
},
{
"level": 2,
"resolution": 39135.75848200009,
"scale": 147914381.897889
},
{
"level": 3,
"resolution": 19567.87924099992,
"scale": 73957190.948944
},
{
"level": 4,
"resolution": 9783.93962049996,
"scale": 36978595.474472
},
{
"level": 5,
"resolution": 4891.96981024998,
"scale": 18489297.737236
},
{
"level": 6,
"resolution": 2445.98490512499,
"scale": 9244648.868618
},
{
"level": 7,
"resolution": 1222.992452562495,
"scale": 4622324.434309
},
{
"level": 8,
"resolution": 611.4962262813797,
"scale": 2311162.217155
},
{
"level": 9,
"resolution": 305.74811314055756,
"scale": 1155581.108577
},
{
"level": 10,
"resolution": 152.87405657041106,
"scale": 577790.554289
},
{
"level": 11,
"resolution": 76.43702828507324,
"scale": 288895.277144
},
{
"level": 12,
"resolution": 38.21851414253662,
"scale": 144447.638572
},
{
"level": 13,
"resolution": 19.10925707126831,
"scale": 72223.819286
},
{
"level": 14,
"resolution": 9.554628535634155,
"scale": 36111.909643
},
{
"level": 15,
"resolution": 4.77731426794937,
"scale": 18055.954822
},
{
"level": 16,
"resolution": 2.388657133974685,
"scale": 9027.977411
},
{
"level": 17,
"resolution": 1.1943285668550503,
"scale": 4513.988705
},
{
"level": 18,
"resolution": 0.5971642835598172,
"scale": 2256.994353
},
{
"level": 19,
"resolution": 0.29858214164761665,
"scale": 1128.497176
},
{
"level": 20,
"resolution": 0.14929107082380833,
"scale": 564.248588
},
{
"level": 21,
"resolution": 0.07464553541190416,
"scale": 282.124294
},
{
"level": 22,
"resolution": 0.03732276770595208,
"scale": 141.062147
},
{
"level": 23,
"resolution": 0.01866138385297604,
"scale": 70.5310735
}
],
"origin": {
"x": -20037508.342787,
"y": 20037508.342787
},
"rows": 256,
"spatialReference": {
"latestWkid": 3857,
"wkid": 102100
}
},
"units": "esriMeters"
},
"name": "MapServer",
"resourceInfo": {
"cacheInfo": {
"storageInfo": {
"packetSize": 128,
"storageFormat": "compact"
},
"wmtsScaleFactor": 0.0002800000000000352
},
"geoFullExtent": {
"xmax": 179.9999885408441,
"xmin": -179.9999885408441,
"ymax": 84.99999999999996,
"ymin": -85.00000000000003
},
"geoInitialExtent": {
"xmax": 179.99999550841463,
"xmin": -179.99999550841463,
"ymax": 82.07032757373965,
"ymin": -2.4738565210218697
},
"spatialReferenceDomain": {
"xmax": 44488879.43457174,
"xmin": -22041257.77387803,
"ymax": 33265068.604224864,
"ymin": -33265068.60422491
}
},
"resources": [
{
"name": "layers",
"resources": [
{
"contents": {
"canModifyLayer": false,
"canScaleSymbols": false,
"capabilities": "Map,Query,Data",
"copyrightText": "Esri, HERE, DeLorme, MapmyIndia, © OpenStreetMap contributors, and the GIS user community",
"currentVersion": 10.22,
"defaultVisibility": true,
"description": "This map draws attention to your thematic content by providing a neutral background with minimal colors, labels, and features. Only key information is represented to provide geographic context, allowing your data to come to the foreground. This light gray map supports any strong colors, creating a visually compelling map graphic which helps your reader see the patterns intended. This map was developed by Esri using HERE data, DeLorme basemap layers, OpenStreetMap contributors, Esri basemap data, and select data from the GIS user community. Worldwide coverage is provided from Level 0 (1:591M scale) through Level 13 (1:72k scale). In North America (Canada, Mexico, United States), Europe, India, South America and Central America, Africa, most of the Middle east, and Australia & New Zealand coverage is provided from Level 14 (1:36k scale) through Level 16 (1:9k scale). For more information on this map, including our terms of use, visit us online at http://goto.arcgisonline.com/maps/World_Light_Gray_Base",
"displayField": "Id",
"drawingInfo": {
"labelingInfo": null,
"renderer": {
"description": "",
"label": "",
"symbol": {
"color": [
0,
0,
0,
0
],
"outline": {
"color": [
110,
110,
110,
255
],
"style": "esriSLSNull",
"type": "esriSLS",
"width": 0
},
"style": "esriSFSSolid",
"type": "esriSFS"
},
"type": "simple"
},
"transparency": 0
},
"extent": {
"spatialReference": {
"latestWkid": 3857,
"wkid": 102100
},
"xmax": 20037507.067161843,
"xmin": -20037507.067161843,
"ymax": 30240971.458386235,
"ymin": -30240971.45838628
},
"fields": [
{
"alias": "FID",
"domain": null,
"name": "FID",
"type": "esriFieldTypeOID"
},
{
"alias": "Shape",
"domain": null,
"name": "Shape",
"type": "esriFieldTypeGeometry"
},
{
"alias": "Id",
"domain": null,
"name": "Id",
"type": "esriFieldTypeInteger"
}
],
"geometryType": "esriGeometryPolygon",
"hasAttachments": false,
"hasLabels": false,
"htmlPopupType": "esriServerHTMLPopupTypeNone",
"id": 0,
"maxRecordCount": 1000,
"maxScale": 0,
"minScale": 0,
"name": "Light Gray Canvas Base",
"ownershipBasedAccessControlForFeatures": {
"allowOthersToQuery": true
},
"parentLayer": null,
"relationships": [],
"subLayers": [],
"supportedQueryFormats": "JSON, AMF",
"supportsAdvancedQueries": false,
"supportsStatistics": false,
"type": "Feature Layer",
"typeIdField": null
},
"name": "0"
}
]
},
{
"name": "tables",
"resources": []
},
{
"contents": {
"layers": [
{
"layerId": 0,
"layerName": "Light Gray Canvas Base",
"layerType": "Feature Layer",
"legend": [
{
"contentType": "image/png",
"height": 20,
"imageData": "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IB2cksfwAAAAlwSFlzAAAOxAAADsQBlSsOGwAAABtJREFUOI1jYaAyYBk1cNTAUQNHDRw1cKQaCAAQKwBR5g8A3AAAAABJRU5ErkJggg==",
"label": "",
"url": "2fa9a046f28bd9638488536e0a3a46be",
"width": 20
}
],
"maxScale": 0,
"minScale": 0
}
]
},
"name": "legend"
}
]
}

0 Kudos
SeanHarkins1
New Contributor

Hi Jordan:

Thanks for the recommendations.  This .tpk is actually one I am generating using some tools I built rather than ESRI sorftware.  The info.json is taken from a template file and then the extents and several other metadata fields are updated using the appropriate values for the .tpk.  These .tpks upload and unpack properly in ArcGIS.com and several other software packages but I can't seem to get them working in ArcGIS.  An ESRI employee asked that I post the issue here so he could share it as a reference with some colleagues.  You can check out some of the libraries used in the process here and here.  Most of the work is based on the great article. Demystifying the Esri Compact Cache | Geodatabase Geek .

0 Kudos
JordanBaumgardner
Occasional Contributor III

Holy wow man, you are brave. I made a small journey in the jungles of the TPK once and barely made it out alive. ; ) 

Perhaps you could pull the TPK using the esri tools - unzip and compare with yours. 

0 Kudos