[mapserver-users] Rectangle on a map
Stephen Lime
steve.lime at dnr.state.mn.us
Mon Apr 30 11:52:22 PDT 2001
It's easy to do. You have to use "inline" features to do this. There are
a couple of steps:
1) create a layer (for example myrect) that holds the symbolization for
the rectangle you want to draw. Notice there is no DATA element.
LAYER
NAME 'myrect'
TYPE POLYLINE
STATUS OFF
CLASS
COLOR 255 0 0
END
END
2) add CGI variables to create a new feature in myrect, add to it and turn
that layer on:
...&map_myrect_feature=new
&map_myrect_feature_points=x1+y1+x2+y1+x2+y2+x1+y2+x1+y1
&layer=myrect
That's it.
Steve
Stephen Lime
Internet Applications Analyst
Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937
>>> Doug Nebert <ddnebert at fgdc.gov> 04/27/01 02:43PM >>>
I'd like to be able to pass a request to a mapserver along with
four bounding coordinates and have it display a map with a rectangle
on it. I see this concept applied in the inset map example in some
of the mapserver applications where it makes a .gif file with this
on it. In fact the http://130.11.52.184/global.html does this but
I'm not sure how to translate it to a GET response.
What kind of arguments to the mapserv program would work, or does a
special handler program need to be written?
Doug.
--
Douglas D. Nebert
Geospatial Data Clearinghouse Coordinator
FGDC/GSDI Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755
Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html
More information about the MapServer-users
mailing list