Welcome to ESRI Blogs

Deconstructing the map cache tiling scheme (Part I)

In ArcGIS Server map caches, the tiling scheme defines how the map is broken up into a grid for creating tiles. Today’s post gives some of the terms you need to know when working with the tiling scheme. An upcoming post will discuss how to work with the tiling scheme programmatically.

Tiling scheme origin

The tiling scheme origin is the upper-left corner of the tiling scheme grid. The tiling scheme origin doesn’t usually represent the point where tiles begin to be created. Tiles are only created when the upper-left corner of the map, or map origin, is reached. In the diagram below, notice that the tiling scheme origin defines where the grid begins, but tiles are only created in the parts of the grid that cover the Full Extent of the map.

Tiling scheme grid

In most cases, you should keep the default tiling scheme origin chosen by the software. The default is the upper-left point of the coordinate reference defined by the map document. If no coordinate reference is defined in the map document, the tiling scheme origin defaults to a point far beyond the upper-left of the extent of all of the layers in the map.

If you change the tiling scheme origin to something other than the default, be aware that tiles can be created only in the map area to the lower-right of the tiling scheme origin. If you want to cache only a certain area of your map, creating your cache based on a custom full extent is a better option than changing the tiling scheme origin.

Using a common tiling scheme origin for all of your caches ensures that your caches can overlay each other successfully in Web applications.

Tile width and height

The default tile width and height is 512 pixels. You can choose any width and height that is a power of 2, but it's recommended that you use 128, 256, or 512. If you are building a cache that will overlay another cache, be sure to use the same tile width and height for both caches.

Choosing a smaller tile width and height may improve performance of the application requesting tiles from the cache, as less data will need to be transferred. However, smaller tile size results in a larger cache size and longer creation time. Because the default Windows disk block size is 4 kilobytes (k), small tiles that may only be 1k in size will actually use 4k. A larger tile might be 4k in size and fit perfectly in a 4k block. Therefore, four 1k tiles use 16k on disk, whereas the single 4k tile covering the same area only uses 4k on disk. With large numbers of tiles, this difference can become significant.

Tile size on disk compared

The above image demonstrates how smaller tiles can require exponentially more size on disk than larger tiles.

-Sterling Quinn

Published Wednesday, November 07, 2007 2:00 PM by sterlingdq
Filed under: ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: Deconstructing the map cache tiling scheme (Part I)

Good arcticle, So useful! Thank you very much! Waiting for you another posts.
Thursday, November 08, 2007 12:21 AM by grace lin

# re: Deconstructing the map cache tiling scheme (Part I)

Thanks.

Do you have the ESRI URL about "You can choose any width and height that is a power of 2" ?

If your have this info please send the URL to me.

Mail:lxl23608282@hotmail.com

Wednesday, November 21, 2007 9:46 PM by lxl23608282

# re: Deconstructing the map cache tiling scheme (Part I)

lxl- This post was taken from some of the new 9.3 documentation we are writing, so I don't think this fact has been documented anywhere other than this blog. All of this information applies to 9.2, though and is enforced in the software. Specifically, if you open the Generate Map Server Cache tool and try to enter anything other than 128, 256, 512, or 1024 as the tile width or height, a red icon with an X will appear stating that you have entered an invalid value.

-Sterling

Monday, November 26, 2007 9:42 AM by sterlingdq

# re: Deconstructing the map cache tiling scheme (Part I)

When is Part II coming? Eagerly awaiting for it.
Thursday, November 29, 2007 9:53 PM by yunush

# re: Deconstructing the map cache tiling scheme (Part I)

>If you want to cache only a certain area of your map, creating your cache based on a custom full extent is a better option than changing the tiling scheme origin. Can you explain how this is done please? Is it a case of changing the data frame properties in the mxd as there doesn't seem to be any options to do this in the Generate Map Server Cache tool? Many thanks Gareth
Wednesday, December 19, 2007 4:13 AM by Gareth Baker

# re: Deconstructing the map cache tiling scheme (Part I)

Gareth- Yes. In the Data Frame properties, click the Data Frame tab. There's a place where you can specify "Extent Used by Full Extent Command". Whatever extent you select here will be used by the Generate Map Server Cache tool.

Wednesday, December 19, 2007 9:18 AM by sterlingdq

# re: Deconstructing the map cache tiling scheme (Part I)

We have found that you can "zoom-out" beyond the full-extent of the map-cache.  The map shows a white "image" (or is it just the background?).  We would like to set the max extent.  I'm wondering if the fact that the tiling scheme origin, which was chosen by the software (we use the MXD's custom extent as you recommend), controls how far out the user can "zoom-out" on a Map Control.

Wednesday, January 30, 2008 11:07 AM by facklec

# Deconstructing the map cache tiling scheme (Part II): Working with map caches programmatically

This post explains ways to access cached map service tiles programmatically. This is useful if you don’t

Thursday, January 31, 2008 12:53 PM by ArcGIS Server Development Blog

# Deconstructing the map cache tiling scheme (Part I)

Thanks for this post.It gives lots of information .

Is ArcGIS server 9.1 can provide the tiling scheme?

Tuesday, April 22, 2008 2:14 AM by saumya09

Leave a Comment

(required) 
required 
(required)