[mapserver-users] zooming to a point feature in 3.5 version
Steve Lime
steve.lime at dnr.state.mn.us
Thu Apr 11 10:22:19 PDT 2002
The problem probably is that the results of the [shpmid] replacement are
not being escaped properly. Without being escaped there will be a space
between the coordinate values which may bust certain browsers. You can
get an escaped version of most parameters by appending _esc to the end
of the term to be replaced. Try [shpmid_esc] and see if that helps.
Steve
Stephen Lime
Data & Applications Manager
Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937
>>> laurentiu lionte <llionte at yahoo.com> 04/11/02 09:07AM >>>
Ok, thanks to Brian Fischer <bfischer at mpls.houstoneng.com>
for advice regarding itemquery. Finally I've found query examples for
3.5 version at
http://maps.dnr.state.mn.us/mapserver_demos/tests3.5/itemquery/test.html
and all goes ok for polygon features. I have trouble zooming to a point
feature instead
a polygon feature. I need to make the same query like in example 1
using points features instead polygons.
using:
src="/cgi-bin/mapserv?map=[map]&codent=1000&mode=itemquerymap&mapext=shapes&qlayer=[qlayer]"
height="300" width="300"
in my template, works for polygons
I've tryed this for point features in my template:
src="/cgi-bin/mapserv?map=[map]&codent=1000&mode=itemquerymap&mapext=shapes&qlayer=[qlayer]&scale=5000&mapxy=[shpmid]"
height="300" width="300"
and doesn't work
my map is:
MAP
NAME testzoom
SHAPEPATH "data"
SIZE 300 300
EXTENT 0 0 1 1
WEB
IMAGEPATH "../tmp/
IMAGEURL "/~laur/tmp/"
END
QUERYMAP
STATUS ON
STYLE HILITE
COLOR 255 255 0
END
SYMBOL
NAME 'circle'
TYPE ELLIPSE
POINTS 1 1 END
FILLED TRUE
END
LAYER
NAME testpoint
DATA testpoint
STATUS DEFAULT
TYPE POINT
FILTERITEM cod
FILTER "%codent%"
CLASS
SYMBOL 'circle'
MINSIZE 4
MAXSIZE 10
SIZE 7
COLOR 212 212 212
OUTLINECOLOR 0 0 0
TEMPLATE testzoom.htm
END
END
END
Thank you for any help,
Lawrence
---------------------------------
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
More information about the MapServer-users
mailing list