[postgis-devel] ST_Envelope does it support 3d or not?

Obe, Regina robe.dnd at cityofboston.gov
Thu Oct 2 09:25:31 PDT 2008


I was going thru all the functions trying to figure out which ones
support 3d and flagging them as I tested them.

The docs seem to suggest that ST_Envelope supports the z-coordinate
although it is somewhat vague.  
http://postgis.refractions.net/documentation/manual-svn/ST_Envelope.html

What exactly does

"(PostGIS will add a ZMIN/ZMAX coordinate as well)"

 mean - is that like future or it will if you have a geometry with a z
coordinate?

When I try this

SELECT ST_AsEWKT(ST_Envelope(ST_GeomFromEWKT('POLYGON((0 0 1, 0 1 2,
1.0000000001 1 3, 1.0000000001 0 4, 0 0 1))')));

I get something that doesn't look very 3d to me so I presume that
statement means future development?
POLYGON((0 0,0 1,1.00000011920929 1,1.00000011920929 0,0 0))

Thanks,
Regina
-----------------------------------------
The substance of this message, including any attachments, may be
confidential, legally privileged and/or exempt from disclosure
pursuant to Massachusetts law. It is intended
solely for the addressee. If you received this in error, please
contact the sender and delete the material from any computer.



More information about the postgis-devel mailing list