Select to view content in your preferred language

Issue loading .tpk in latest version (100.2)

774
2
06-19-2018 03:11 PM
WesBailes
Occasional Contributor

I have very large tile packages (6 GB or so) that load fine in the previous version of ArcGIS Runtime (10.2.X) but for some reason they do not seem to work in the latest version.  The issue seems to be that the tile packages do not have their tile info height and width set?  The tile cache is referenced properly and does not fail when I call .LoadAsync.  The failure occurs when I create a new tilelayer based on the TileCache Any suggestions are welcome!

0 Kudos
2 Replies
dotMorten_esri
Esri Notable Contributor

they do not seem to work […] The failure occurs when I create a new tilelayer based on the TileCache 

Could you be more specific? What behavior, error, stack trace, etc are you seeing?

0 Kudos
WesBailes
Occasional Contributor

The exception message is  {"Invalid argument: tile info tile height must be larger than 0."} and it occurs at the bolded line below.  

                Dim theTileCache As New TileCache(ApplicationData.Current.LocalFolder.Path & "\myTPK.tpk")
                Await theTileCache.LoadAsync
                Dim _tileLayer As ArcGISTiledLayer = New ArcGISTiledLayer(theTileCache)
                Dim newBasemap As New Basemap(_tileLayer)
                myMap.Basemap = newBasemap
0 Kudos