[postgis-users] problem with buffer srid

Markus Schaber schabi at logix-tt.com
Wed Feb 14 10:24:20 PST 2007


Hi, Galois,

"Galois" <galois at mundo-r.com> wrote:

>     I´m wondering what happens when you make a buffer from a geom with a srid. I´ve just buffered one geom but it has no srid (-1), is it normal? I´ve got a line table ( from which i buffered) and a point table ( which want to compare with the buffer), both the same srid. But the buffer maked from the line geom don´t have srid assigned and postgis doesn´t permit me to compare. 

So you say, that buffering loses the srid? I'm tempted to regard this
as a bug.

> My answer is, how can i buffer something and obtein the resuls with the source-srid?

setsrid(buffer(yourgeom, 42), getsrid(yourgeom))


Regards,
Markus

-- 
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf.     | Software Development GIS

Fight against software patents in Europe! www.ffii.org
www.nosoftwarepatents.org



More information about the postgis-users mailing list