[mapserver-users] RE: Buffer features?
Jeff McKenna
jmckenna at gatewaygeomatics.com
Mon Feb 14 06:49:43 PST 2011
Also note that you'll need to build MapServer with GEOS support (and
verify this with a 'mapserv -v' call).
-jeff
--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/
On 11-02-14 10:40 AM, Lime, Steve D (DNR) wrote:
> It should be as simple as:
>
> # do the query and get the selected shape
>
> $bDistance = 5; # in layer units
> $bShape = $shape->buffer($bDistance);
>
> # now draw the buffered shape
>
> Does that help or is the before/after parts that is confusing.
>
> Steve
>
> ________________________________________
> From: Bistrais, Bob [Bob.Bistrais at maine.gov]
> Sent: Monday, February 14, 2011 8:36 AM
> To: Lime, Steve D (DNR); mapserver-users
> Subject: RE: Buffer features?
>
> I am working in MapScript. I've got some ideas but haven't quite
> figured it out. Are there any code examples available?
>
> -----Original Message-----
> From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us]
> Sent: Monday, February 14, 2011 9:32 AM
> To: Bistrais, Bob; mapserver-users
> Subject: RE: Buffer features?
>
> Unless you're working in MapScript you'll have to wait for the 6.0
> release (maybe). 6.0 contains some support for buffering (in pixels)
> using the GEOMTRANSFORM style attribute although this is mainly a
> cartographic tool. In MapScript you can do this now though.
>
> Steve
> ________________________________________
> From: mapserver-users-bounces at lists.osgeo.org
> [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob
> [Bob.Bistrais at maine.gov]
> Sent: Monday, February 14, 2011 8:30 AM
> To: mapserver-users
> Subject: [mapserver-users] Buffer features?
>
> This question may have come up before, but I haven't found it in the
> archives. I would like to take a selected feature and buffer it to a
> specified distance. I know it's possible to do a queryByPoint with a
> buffer distance, but I need to create an actual buffer shape to display
> on the map. Has anyone done something like this before? Does MapServer
> have this capability?
>
More information about the MapServer-users
mailing list