[mapserver-users] Shapefile, itemnquery and HTML image map generation problem
W.John Guineau
guineau at earthlink.net
Thu Dec 3 12:11:06 PST 2009
I have a basic vector shapefile that I am trying to generate HTML clickable
maps from. It seems to work well for the most part, however there is a
problem where some items from the shapefile do not get processed from the
qstring in the browser, but they are processed fine in the mapfile layer (to
color them differently).
So the map that renders shows all the items colored properly as the layer
class defines. Using the exact same list of items in the HTTP query string
causes several items to be ignored (the HTML image map area is not
generated).
http://localhost/cgi-bin/mapserv?map=/NWPL_CRREL/MLRA/mlra.map&qlayer=coe_m&
mode=itemnquery&searchmap=true&layer=states&mapext=-91+34+-89+49&mapsize=600
+400&qitem=MLRARSYM&qstring=("[MLRARSYM]"%20in%20"102A,102B,102C,103,104,105
,106,107A,107B,108A,108B,108C,108D,109,110,111A,111B,111C,111D,111E,112,113,
114A,114B,115A,115B,115C")
Below is the layer section from the mapfile. I can post whatever else is
helpful.
Thanks for any help on this.
john
LAYER
NAME map_m
DATA "map_shape"
TEMPLATE "bodytemplate.html"
HEADER "imapheader.html"
FOOTER "imapfooter.html"
PROJECTION
"proj=latlong"
"ellps=GRS80"
"init=epsg:4326"
END
TYPE polygon
STATUS ON
TRANSPARENCY 70
CLASS
NAME "MLRA"
COLOR 0 200 0
OUTLINECOLOR 0 0 0
EXPRESSION( "[MLRARSYM]" in
"102A,102B,102C,103,104,105,106,107A,107B,108A,108B,108C,108D,109,110,111A,1
11B,111C,111D,111E,112,113,114A,114B,115A,115B,115C" )
END
METADATA
qstring_validation_pattern ".*"
END
END
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20091203/b9fc812d/attachment.htm>
More information about the MapServer-users
mailing list