ArcGIS and Tiled Maps: Difference between revisions

From Wildsong
Jump to navigationJump to search
Brian Wilson (talk | contribs)
mNo edit summary
Brian Wilson (talk | contribs)
mNo edit summary
Line 6: Line 6:
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?
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.''
Is this workflow possible?  


# Create map in ArcMap
# Create map in ArcMap
Line 12: Line 12:
# Copy tile package to server
# Copy tile package to server
# (Non-ESRI) server sends tiles to browsers for use as map layer(s).
# (Non-ESRI) server sends tiles to browsers for use as map layer(s).
Just found this interesting blog post today, needs further investigation.
[http://gdbgeek.wordpress.com/2012/08/09/demystifying-the-esri-compact-cache/ Demystifying the ESRI Compact Cache]; maybe it will help.


The problem is unpacking the ESRI format TPK down into the PNG or JPG files it contains.
The problem is unpacking the ESRI format TPK down into the PNG or JPG files it contains.

Revision as of 20:39, 4 April 2014

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?

  1. Create map in ArcMap
  2. Generate tile package
  3. Copy tile package to server
  4. (Non-ESRI) server sends tiles to browsers for use as map layer(s).

Just found this interesting blog post today, needs further investigation. Demystifying the ESRI Compact Cache; maybe it will help.

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.

http://blogs.esri.com/esri/arcgis/2009/03/19/how-can-you-tell-what-map-scales-are-shown-for-online-maps/