tile problem: loadLayer(): Unknown identifier. (INDEX)
Joel Schlagel
joel at crrel.usace.army.mil
Thu Feb 10 10:16:30 PST 2000
hi!
i think i'm missing something on tiling maps.
i've got a state index cover, and tiger road files for each state, and this
simple template:
NAME road_tile
STATUS ON
SIZE 600 600
EXTENT -82 31 -81 32
UNITS DD
IMAGECOLOR 100 100 150
TILE "/s7/tiger/road/"
WEB
IMAGEPATH "/home/httpd/html/tmp/"
IMAGEURL "/tmp/"
TEMPLATE "z.html"
END
LAYER
NAME "road"
INDEX "/s7/tiger/road/road_index"
# DATA "/s7/tiger/road/ga"
TYPE line
STATUS DEFAULT
CLASS
SYMBOL 0
COLOR 248 248 248
END
END
Mapserver returns the error:
loadLayer(): Unknown identifier. (INDEX)
with this template. i've got the same problem with 3.3.002 and 3.3.006.
any suggestions would be greatly appreciated!
thanks
mapserver rocks!
joel
------- replay of instructions for using tiles -----
i think i've followed these clear instructions:
* From: "bfraser" <bfraser at geoanalytic.ab.ca
<mailto:bfraser at geoanalytic.ab.ca>>
* Date: Tue, 12 Oct 1999 08:40:49 -0600
* References: <380263A6.B00A5039 at randomlogic.com <msg00039.html>>
* Sender: owner-mapserver-users at lists.gis.umn.edu
<mailto:owner-mapserver-users at lists.gis.umn.edu>
Paul,
As long as you don't want to query the data in the tiles, you
can use the tiling feature in MapServer.
1. Create a shapefile containing the outlines of the counties
2. Create a column in the shapefile with the name of LOCATION
3. For each county outline shape in the shapefile, enter the filename
of the county shapefile in the LOCATION column (leave off the
.shp )
4. Edit the "map" file. Add an entry for TILE at the top. This
contains the path to the directory containing county files. It is
prepended to the name in the LOCATION column to build the
full path to the shapefiles.
Add a LAYER entry with an INDEX entry. The index is the name
of the shapefile you created in step 1.
A couple of notes about tiles:
1. The tile index shapefile and the "data" shapefiles must be in
the same coordinate system.
2. Mapserver will not query data in tiled files.
Brent
----------------------------
Joel Schlagel
(603) 646-4387
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 3160 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20000210/52847d2c/attachment.bin>
More information about the MapServer-users
mailing list