[mapserver-users] RE: Circles around points in miles

Lime, Steve D (DNR) Steve.Lime at state.mn.us
Mon Feb 13 17:56:32 EST 2012


I jumped the gun on the geomtransform idea. The support is there but because it operates at the style level buffer distances must be given in pixels and there's no easy way to convert a map distance (e.g. 10 miles) to pixels. I really should make some runtime constants (for example, extent, scale and cellsize) available to expressions- then you could do this.

Glad you picked option 2 to start.

Steve

-----Original Message-----
From: Ian Walberg [mailto:ian.walberg at airborne.aero] 
Sent: Monday, February 13, 2012 4:38 PM
To: Lime, Steve D (DNR); mapserver-users at lists.osgeo.org
Subject: RE: Circles around points in miles

Steve,

Many thanks for the help and we have just tested option 2 and that
works.

We are using 6.x but are not exactly sure how to use the geomtransform
to do this. Do you have  an example?

Regards

Ian

-----Original Message-----
From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] 
Sent: Monday, February 13, 2012 9:37 AM
To: Ian Walberg; mapserver-users at lists.osgeo.org
Subject: RE: Circles around points in miles

Couple of options depending on version:

  1) 6.x: buffer the points using a style geomtransform
  2) all versions: use layer SIZEUNITS to draw a circle symbol in miles

I think option 1 is more flexible but option 2 is probably faster.

Steve

-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ian
Walberg
Sent: Saturday, February 11, 2012 10:06 PM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] Circles around points in miles


We need to draw circles of 50 and 100 miles around a list of points.

How can we do this? 

Thanks

Ian
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users






More information about the mapserver-users mailing list