[mapserver-users] Point and radius features [SEC=UNCLASSIFIED]

Kathleen Hirst K.Hirst at bom.gov.au
Wed Aug 28 01:11:53 PDT 2013


Dear List,

I'm using MapServer to show a point and a radius (in kilometres) from the same point as part of the GetMap request

I'm using the following:

&map.layer[location]=&map.layer[location]=FEATURE+POINTS+144.97+-37.81+END+TEXT+'Melbourne'+END+END

&map.layer[radius]=FEATURE+POINTS+144.97+-37.81+END+END
&map.layer[radius].class[0].style[0]=SIZE+40+END+END
&map.layer[radius].class[0].style[1]=SIZE+40+END+END

The layer, radius configuration is shown below, where the size of the symbol is half the size of the radius. The map projection is EPSG:4283. The circle drawn for the radius does not seem accurate eg for a 20 km radius, it is about 1.1 km out.  Is there a better way to do this? Eg using type CIRCLE. Any help would be appreciated.

LAYER
   STATUS ON
   NAME "radius"
   TEMPLATE  "/web/etc/ws/gis/mapserver/query_templates/generic_empty.html"
   TYPE POINT

   SIZEUNITS KILOMETERS

   CLASS
     NAME "Search radius"
    STYLE
       SYMBOL "circle_ol"
       COLOR 198 134 0
     END
     STYLE
       SYMBOL "cross"
       COLOR 198 134 0
       WIDTH 0.1
     END
  END

..
END

Thanks

Kathleen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20130828/cc8b27dd/attachment.html>


More information about the mapserver-users mailing list