[postgis-users] Intersection on 3D Data

Daniel Degasperi daniel.degasperi at r3-gis.com
Fri Nov 5 09:23:44 PDT 2010


Hi,
the following query:

SELECT
ST_AsEWKT(ST_Intersection(GeomFromEWKT('SRID=26591;POLYGON((1500000 
5000000 100,1500010 5000000 100,1500010 5000010 110,1500000 5000010 
110,1500000 5000000 100))'),
GeomFromEWKT('SRID=26591;POLYGON((1500000 5000004,1500010 
5000004,1500010 5000006,1500000 5000006,1500000 5000004))')))

return this result:
"SRID=26591;POLYGON((1500010 5000006 106,1500010 5000004 105,1500000 
5000004 105,1500000 5000006 105,1500010 5000006 106))"

i would expect: (see Z-values)
"SRID=26591;POLYGON((1500010 5000006 106,1500010 5000004 104,1500000 
5000004 104,1500000 5000006 106,1500010 5000006 106))"

Is the intersection supposed to work on 3D data?

Best regards
Daniel






More information about the postgis-users mailing list