Drawing a circle

Doyon, Jean-Francois Jean-Francois.Doyon at CCRS.NRCAN.GC.CA
Thu Apr 20 16:47:59 EDT 2006


"The circle would be sized so that the outer border of the circle touches
the top center and bottom center of the map."

I'm guessing you mean the feature? Otherwise this circle would always be in
the same place, and that would be easy ... Unless the shape and size of the
map might be variable?

You can look at using astandard symbol using pixel sizes and TRANSFORM OFF
maybe?

If the map size changes or something like that, you can use URL parameters
to modify it using something like &map_layer_class_size=20 for example.

TRANSFORM is documented in the MapFile reference.

The CGI Parameter thing is here:

http://mapserver.gis.umn.edu/docs/reference/cgi/controls

At the bottom.

J.F.

-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Chip Taylor
Sent: April 20, 2006 4:40 PM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] Drawing a circle

I am running MapServer as a CGI under IIS 6. We do not use PHP and would
prefer not to have to install it.  I would like to draw a circle on the
resulting map providing not a size as you would for a symbol, but have the
map extents [mapext] determine where the circle is drawn.  The circle would
be sized so that the outer border of the circle touches the top center and
bottom center of the map.  I know that I can do it client side will some
complex calculations or do it with GDI server side but neither of those are
really what I am looking for.  Can anyone tell me if what I am asking is
possible with just MapServer CGI and a Map File?

If not, are there any "helper" packages such as Chameleon that would make
this easy to implement?

Thank you in advance.
Chip Taylor



More information about the mapserver-users mailing list