Labels using shape index

Steve Lime steve.lime at DNR.STATE.MN.US
Tue Jul 26 12:22:31 PDT 2005


So you want to label with the result number NOT the the shape number- big difference.
Then looping as you suggest is the best option but using the result counter as the label
value not the shape id.

Steve

>>> Eric Shuman <erics at AMERI-TITLE.COM> 07/26/05 2:12 PM >>>
Well the ID column would have to be for all the shapes in the shapefile.
The query only returns 50 or so results. If I used the ID at that point the
numbering would not be sequential.

I'm thinking the best option at this point would be to create a temporary
annotation layer by looping through the results of the query and getting the
label point of the polygon shapes and drawing them on the map with the
ShapeID.



More information about the MapServer-users mailing list