Creating an Offline Mobile Scene Package.
I have created an elevation source (web mercator) and some other layers and successfully created an Offline Mobile Scene Package. I am now trying to add a hillshade (tiff originally) to the package. This hillshade is also web mercator. The 3D Scene is WGS84 vertical set to none. I have successfully created a tile cache for the hillshade and tile package for the hillshade.
When I try to package the scene (Create Mobile Scene Package) with the tile package I get the following error.
ERROR 002768: Package HillshadeTilePackage2.tpk spatial reference incompatible with Mobile Scene Package
When I try to package the scene (Create Mobile Scene Package) with the tile cache there is no error.
As far as I can see the is no spatial reference incompatibility.
Any suggestion appreciated,
Ian Hamilton
Hi Ian,
Since the tile package cannot be reprojected it must match the coordinate system of the scene. Since ArcGIS Runtime only supports Global viewing mode, to get a Global Scene to output in Web Mercator you'll need to add that tile package to a basemap and then add the basemap to the scene. When you run the tool it will set the output scene coordinate system to Web Mercator.
Basemap and elevation layers—ArcGIS Pro | ArcGIS Desktop
Basemaps—ArcGIS Pro | ArcGIS Desktop
Let me know if you run into any other problems!
thanks,
Andrew
Hi Andrew, thanks for your reply. I missed that in the documentation. I should have realised. While waiting for a reply, I did actually try what you suggested and Hey Presto !, it worked.
As a follow on, there seems to be no point using Web Mercator if your original data is not in Web Mercator, would that be correct to say, especially if you want to switch rasters on and off?
Thanks again,
Ian
HI Ian,
Glad to hear that worked for you! I would say yeah it's probably easier to keep it in WGS84 but some people prefer to have it in Web Mercator and once ArcGIS Runtime can support direct read of services in packages next year it will be easier to use with the Esri Basemaps and 3D Terrain but for now the mobile scene package is an offline story only.
thanks,
Andrew