[mapserver-users] Indexing Shape files

Steve Lime steve.lime at dnr.state.mn.us
Tue Oct 29 11:25:36 PST 2002


As an aside, actually sometimes you might use the DATA line. MapServer
tiles can be used to store:

  1) tiles with totally unique files names or
  2) tiles with identical shapefile names but different directories

In the latter case you might store just the directory name in TILEITEM
and the shapefile name in DATA. The two then get merged to create a full
file name. This allows you to get away with a single TILEITEM for
multiple layers which can be a big deal with datasets like GDT roads...

Steve

>>> "Hankley, Chip" <Chip.Hankley at GASAI.Com> 10/29/02 10:58AM >>>
Armando -

When you're using a TILEINDEX, you don't need a DATA line... the
TILEINDEX
line IS the data line. Here's an example -

LAYER
  NAME "LANDCOVER"
  MAXSCALE 500000
  MAXSCALE 500000
  STATUS OFF
  TILEINDEX "Raster\lc_tile"
  TILEITEM "Location"
  TYPE RASTER
  OFFSITE 0
END

In this case, TILEINDEX is the path (relative to the mapfile's
SHAPEPATH) to
the indexing shapefile, and TILEITEM is the field name in the index
shapefile that points to the individual tile data sources (in this
case
images).

HTH.

Chip



More information about the MapServer-users mailing list