Use shapeid in a query?

Stephen Lime steve.lime at dnr.state.mn.us
Mon Apr 9 10:59:46 EDT 2001


MapServer reserves a special item name called 'recno' for such queries. You do a
regular itemquery with item=recno and value=n, where n is the record number of
the feature you want.

Please note that in the 3.5 release I've introduced a special query mode for this
called indexquery.

Steve

Stephen Lime
Internet Applications Analyst

Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937

>>> "Eric Steele" <EricSteele at psu.edu> 04/06/01 09:53AM >>>
I see from the documentation that you can get the shape id by using [shpidx]
in a template file. It looks like it is basically just the row number in the
shapefile. My question is this: can I perform a query using the shapeid as a
queryitem and if so, how?
Thanks,
Eric

Eric M. Steele
Senior Research Technologist
Land Analysis Laboratory,
Penn State University
EricSteele at psu.edu 
814-865-2307





More information about the mapserver-users mailing list