[Mapserver-users] Getting attributes of tiled shapefile data

Sean Gillies sgillies at frii.com
Tue Oct 7 21:03:46 EDT 2003


I'm using a layer with tiled shapefile data in a MapScript app.  When 
using
the query* methods I get set of results and each result has tileindex 
and
shapeindex attributes so that I can get get the appropriate shape from
the shapefile.

However, how about the shape attributes?  With untiled data in one 
shapefile,
I'd just get the appropriate record from the single dbf file using 
dbflib
(Python) or XBase (Perl).  But now that the attributes are spread across
N dbf files, I'm at a loss on which dbf file and which record given the
pair of tileindex and shapeindex.

Perhaps it's possible to access the result.tileindex (or tileindex-1) 
record of
the layer's tileindex dbf file to find the appropriate shapefile and 
then
get the result.shapeindex record from that shapefile's dbf?  I'd be 
grateful
to hear about a less convoluted way!

cheers,
Sean

--
Sean Gillies
sgillies at frii dot com
http://www.frii.com/~sgillies




More information about the mapserver-users mailing list