Drawing a circle

Chip Taylor work at XWB.COM
Fri Apr 21 06:55:28 PDT 2006


Thank you all for your suggestions.  The image size will not always be
static.  From the ideas I got on this list I decided to pass the size into
the layer/class from the URL via an ASPX page.  Works great.

Chip Taylor
Prepared Response, Inc

-----Original Message-----
From: Fawcett, David [mailto:David.Fawcett at state.mn.us] 
Sent: Thursday, April 20, 2006 1:52 PM
To: Chip Taylor; MAPSERVER-USERS at lists.umn.edu
Subject: RE: [UMN_MAPSERVER-USERS] Drawing a circle

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