[postgis-users] 'Measure' 3D points on Polygons?

Kevin Neufeld kneufeld at refractions.net
Tue Feb 12 13:47:27 PST 2008


Yes, it's supported. 

test=# SELECT GeometryType(geom), NDims(geom), ZMFlag(geom) FROM
         (SELECT 'POLYGON((0 0 10 1, 0 1 10 2, 1 1 10 3, 1 0 10 4, 0 0 
10 1))'::geometry AS geom) AS foo;
          summary          | ndims | zmflag
---------------------------+-------+--------
                           |     4 |      3
 Polygon[ZMB] with 1 rings          
    ring 0 has 5 points            
                                   
(1 row)

How are you retrieving the vertex data?
-- Kevin


cgnicholas at alamedanet.net wrote:
> greetings - I'm wondering if the 'Measure' stuff works at all for
> Polygons.  I'm trying to associate a Z value with each vertex of a polygon
> (restricted to triangles for the moment.
>
> I AddGeometryColumn with a dimension of '3', etc, and am able to insert
> points that indeed have a Z. Things are GiST indexed properly, etc.
>
> But I don't seem to be able to retrieve the vertex data with the Z
> value...is this supported for polygons?  I'm trying to cast things to
> 'PolygonM', etc; still no luck...
>
> thanks!
> Chris
>
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>   



More information about the postgis-users mailing list