[mapserver-users] RE: Buffer features?
Jeff McKenna
jmckenna at gatewaygeomatics.com
Mon Feb 14 12:26:10 PST 2011
Hi Bob,
After you make it through this battle I wonder if you could add your
steps and scripts and instructions to the "Tips, Tricks, and How-tos"
section of the MapServer wiki? http://trac.osgeo.org/mapserver/ Thanks.
-jeff
--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/
On 11-02-14 4:09 PM, Bistrais, Bob wrote:
> OK, I can select the shape through query, put in the distance, not sure
> what to do next (drawing the buffered shape)
>
> -----Original Message-----
> From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us]
> Sent: Monday, February 14, 2011 9:40 AM
> To: Bistrais, Bob; mapserver-users
> Subject: RE: Buffer features?
>
> 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