Draw circle

Jeff McKenna jmckenna at DMSOLUTIONS.CA
Wed Feb 2 14:49:51 PST 2005


It is mentioned in the mapfile-reference doc, but i've created a bug to
add Steve's example to the doc
(http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1205).

jeff





Stephen Woodbridge wrote:
> This sounds cool, is it in the documentation?
>
> Steve Lime wrote:
>
>> There is also a CIRCLE layer type. You can construct a shapefile of
>> simple lines, 2 points per line. Where the points represent the bounding
>> box for the circle (this works with inline features too). The LAYER
>> might look like:
>>
>> LAYER
>>   NAME 'circles'
>>   TYPE CIRCLE
>>   DATA '/usr/local/data/circles'
>>   ...
>> END
>>
>> Steve
>>
>>
>>>>> Jeff Portwine <jdport at VERITIME.COM> 2/2/2005 10:24:37 AM >>>
>>
>>
>>
>> Put something like this in your map file.    The numbers in the
>> "points" section refer to the diameter in the X direction and the
>> diameter in the Y direction.   If the numbers are the same you get a
>> circle, otherwise you will get an ellipse.
>>
>> SYMBOL
>>     NAME "circle"
>>     TYPE ellipse
>>     FILLED true
>>     POINTS
>>       12 12
>>     END
>>  END
>>
>> -Jeff
>>
>>   ----- Original Message -----
>>   From: Jose Luis Gonzalez
>>   To: MAPSERVER-USERS at LISTS.UMN.EDU
>>   Sent: Wednesday, February 02, 2005 11:02 AM
>>   Subject: [UMN_MAPSERVER-USERS] Draw circle
>>
>>
>>   Is there any easy way to draw a circle on a map without having to
>> make it your self by drawing small lines?
>>
>>   thank you
>>
>>   Jose Luis
>>
>


--
Jeff McKenna
DM Solutions Group Inc.
http://www.dmsolutions.ca



More information about the MapServer-users mailing list