[postgis-devel] [PostGIS] #413: ST_Single_Sided_Buffer added

Pierre Racine Pierre.Racine at sbf.ulaval.ca
Fri Feb 19 12:14:18 PST 2010


In ArcGIS they pass one of the four following options:

{FULL | LEFT | RIGHT | OUTSIDE_ONLY}

http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Buffer_%28Analysis%29

Ex.:

gp.buffer("roads.shp", "buffered_roads.shp", "Distance", "OUTSIDE_ONLY", "ROUND", "LIST", "Road_Type")

The last two are of no interest for PostGIS. The ROUND is the same as ST_Buffer's endcap. Probably there should be a 4th option to ST_Buffer's buffer_style_parameters to indicate the surface occupied by the buffer:

'lineside=full|left|right|outside'

You probably want to be ablt to do "right|outside" or "left|outside" at the same time.

Probably, to completely fulfill rafalmag's needs, it would be nice to add "none" as endcap, so we don't get any end cap at all.

Pierre

>-----Original Message-----
>From: postgis-devel-bounces at postgis.refractions.net [mailto:postgis-devel-
>bounces at postgis.refractions.net] On Behalf Of strk
>Sent: 19 février 2010 14:42
>To: PostGIS Development Discussion
>Subject: Re: [postgis-devel] [PostGIS] #413: ST_Single_Sided_Buffer added
>
>On Fri, Feb 19, 2010 at 01:52:03AM -0200, George Silva wrote:
>> I'm sorry to give my 2 cents, but in most softwares everything it's just
>> called buffer, with different parameters.
>
>Could you please provide a full call example of a few of these softwares
>to obtain what the ST_Single_Sided_Buffer would give ?
>What it does is giving a linestring offsetted from the original
>(no area returned).
>
>--strk;
>
>  ()   Free GIS & Flash consultant/developer
>  /\   http://foo.keybit.net/~strk/services.html
>_______________________________________________
>postgis-devel mailing list
>postgis-devel at postgis.refractions.net
>http://postgis.refractions.net/mailman/listinfo/postgis-devel



More information about the postgis-devel mailing list