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:[email protected]] 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 [[email protected]] 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:[email protected]] 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: [email protected] [[email protected]] On Behalf Of Bistrais, Bob [[email protected]] 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? _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
