ArcGIS and Tiled Maps
Overview
You can design beautiful maps in ArcGIS For Desktop. You can ship the MXD file off to ArcGIS For Server to turn them into web maps.
But what if you want to create a map in ArcMap and then turn it into a map displayed in some less expensive web server?
Is this workflow possible? So far, NO, it is not, because the bundle files are impenetrable closed source.
- Create map in ArcMap
- Generate tile package
- Copy tile package to server
- (Non-ESRI) server sends tiles to browsers for use as map layer(s).
The problem is unpacking the ESRI format TPK down into the PNG or JPG files it contains. I see references in the ArcGIS Python docs on storing the tiles in "exploded" form, but don't know how to do that yet.
When you drag a TPK file from ArcCatalog to ArcMap to preview it, behind the scenes ArcMap unpacks it and stores it in "C:/Users/your name here/Documents/ArcGIS/Packages/packagename. This could surprise you by using up all the disk space on C:/. I am guessing nothing ever deletes the unpacked folders.
What is a tile package?
ESRI help page: About tile packages
What does "Enable ArcGIS Runtime Tools" mean? I think it means it allows uploads from the File->Share wizard.
What does it mean "Automatically select location" vs "Use user specified location"?
TPK file contents
It is a zip file, which is what I expected. Inside the zip are "bundle" files which are in "Compact cache" format.
Unzipped...
esriinfo/item.pkinfo esriinfo/iteminfo.xml esriinfo/thumbnail/thumbnail.png v101/Web Mercator Map/conf.cdi v101/Web Mercator Map/conf.xml _alllayers/L00/R0000C0000.bundle _alllayers/L00/R0000C0000.bundlx _alllayers/L01/R0000C0000.bundle _alllayers/L01/R0000C0000.bundlx . . . v101/Web Mercator Map.lyr
- File:Conf.xml - metadata including descriptions of the tile sets in the file.
- The v101 appears to refer to the current ArcGIS release, 10.1.
- The "Web Mercator Map" is the name of my active Data Frame in the MXD.
- The layer number Lxx refers to the zoom level.
In addition to dragging the complete TPK onto ArcMap, you can also unpack the tile package in ArcCatalog (right click on it) and then drag the .lyr file into a map to see its contents.
Map design
What scales should I use?
When creating the MXD, you should put the data frame in EPSG 3857 coordinate system and use the standard Web Mercator scales.