ST_PointOnSurface not for PolygonZ?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

ST_PointOnSurface not for PolygonZ?

Manual says: "This function supports 3d and will not drop the z-index."

This indeed works as per documentation example: 
SELECT ST_AsEWKT(ST_PointOnSurface(ST_GeomFromEWKT('LINESTRING Z(0 5 1, 0 0 1, 0 10 2)'))); 
Returns: "POINT(0 0 1)"

This doesn't:
SELECT ST_AsEWKT(ST_PointOnSurface(ST_GeomFromEWKT('POLYGON Z((14 14 10,20 10 150,34 6 25,14 14 10))')))
Returns: "POINT(18 12)"

I guess GEOS is just not capable of doing this, but the documentation is not clear about that and implies that PolygonZ would work just as LinestringZ would work.


postgis-devel mailing list
[hidden email]