problems with tileindex...

Mark Dieterich mdieterich at GMAIL.COM
Mon Mar 14 19:06:51 PST 2005


Hi everyone,

I'm a newbie to mapserver.  Having worked my way through the tutorials
and created a few maps using my own data, I'm trying to get tiled
shapefiles working.  I've created the index shapefile and ogrinfo seems
to be able to read it just fine.  However, when I point mapserver at a
map file with the TILEINDEX defined, it returns and error:

msDrawMap(): Image handling error.  Failed to draw layer named 'roads'
msTiledSHPOpenFile(): SDE error.  Tileindex layer must be a shapefile.

I'm totally confused because everything I reference is a shapefile ;)
Here are the relevant sections of my map file:

SHAPEPATH /data

LAYER
  NAME          roads
  TILEINDEX     roads

under /data, I have

roads.[dbf,shp,shx], which references tiles/a, tiles/b, tiles/c in the
location field.  The corresponding tiles/[a,b,c].[dbf,shp,shx] all
exist.  I tested with tiles/[a,b,c] in a standalone map file and they
looked okay.  I must be missing something here, but for the life of me I
can't figure out what it is.  I don't actually need to reference DATA
anywhere, do I?

Thanks!

Mark



More information about the MapServer-users mailing list