[postgis-devel] [PostGIS] #413: ST_Single_Sided_Buffer added
PostGIS
trac at osgeo.org
Tue Feb 9 15:59:28 PST 2010
#413: ST_Single_Sided_Buffer added
-------------------------+--------------------------------------------------
Reporter: rafalmag | Owner: pramsey
Type: enhancement | Status: new
Priority: medium | Milestone:
Component: postgis | Version: 1.5.X
Keywords: |
-------------------------+--------------------------------------------------
I needed some new functionality and found topic:
http://postgis.refractions.net/pipermail/postgis-users/2009-
June/023717.html
In that topic there was link to:
http://trac.osgeo.org/geos/ticket/215
It was exactly what I was looking for so I added this to PostGIS.
Example of use:
{{{
select st_astext(ST_Single_Sided_Buffer(
ST_GeomFromText('LINESTRING(10 10,10 20, 20 20 )'),
1,'join=mitre mitre_limit=5.0',0));
--------------
LINESTRING(20 19,11 19,11 10)
select st_astext(ST_Single_Sided_Buffer(
ST_GeomFromText('LINESTRING(10 10,10 20, 20 20 )'),
1,'join=mitre mitre_limit=5.0',1));
--------------
LINESTRING(9 10,9 21,20 21)
}}}
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/413>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-devel
mailing list