Drawing a circle

Fawcett, David David.Fawcett at STATE.MN.US
Thu Apr 20 16:51:36 EDT 2006


If your image size is always going to be static, try this:

  LAYER
    NAME "mycircle"             #this example is for a map of size 250
250
    STATUS DEFAULT
	TYPE POINT
	TRANSFORM FALSE	
	FEATURE
	   POINTS 125 125 END     #adjust these to center your circle
	END
    CLASS
	   SYMBOL "circle"
	   SIZE 255               #adjust this to set the size of the
circle
         COLOR 181 181 181   
	   END   
    END
END


David.

-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Chip Taylor
Sent: Thursday, April 20, 2006 3: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