[postgis-users] ST_Buffer

Nicolas Ribot nicolas.ribot at gmail.com
Thu Mar 22 05:49:11 PDT 2012


> Hi,
>
> If I have a linestring which is in srid = 4326, how can I compute the
> ST_Buffer so that I have 2m on each side of the line?
> I mean SRID 4326 is in degrees, so how can I make the query return me a
> buffer around the linestring which has 2m radius?
> Do I first convert to geography and then compute the buffer? and then
> convert back to geometry?
>

Yes, st_buffer supports geography type. (though look at the notes:
http://postgis.org/documentation/manual-1.5/ST_Buffer.html)
Aren't your data already geography, with SRID=4326 ?

Nicolas



More information about the postgis-users mailing list