12.07.2015 Views

PostGIS 1.5.8 Manual - Fedora Project Packages GIT repositories

PostGIS 1.5.8 Manual - Fedora Project Packages GIT repositories

PostGIS 1.5.8 Manual - Fedora Project Packages GIT repositories

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>PostGIS</strong> <strong>1.5.8</strong> <strong>Manual</strong>201 / 3107.8.32 ST_Perimeter2DST_Perimeter2D — Returns the 2-dimensional perimeter of the geometry, if it is a polygon or multi-polygon. This is currentlyan alias for ST_Perimeter.Synopsisfloat ST_Perimeter2D(geometry geomA);DescriptionReturns the 2-dimensional perimeter of the geometry, if it is a polygon or multi-polygon.NoteThis is currently an alias for ST_Perimeter. In future versions ST_Perimeter may return the highest dimension perimeterfor a geometry. This is still under considerationSee AlsoST_Perimeter7.8.33 ST_Perimeter3DST_Perimeter3D — Returns the 3-dimensional perimeter of the geometry, if it is a polygon or multi-polygon.Synopsisfloat ST_Perimeter3D(geometry geomA);DescriptionReturns the 3-dimensional perimeter of the geometry, if it is a polygon or multi-polygon. If the geometry is 2-dimensional, thenthe 2-dimensional perimeter is returned.This function supports 3d and will not drop the z-index.ExamplesPerimeter of a slightly elevated polygon in the air in Massachusetts state plane feetSELECT ST_Perimeter3D(the_geom), ST_Perimeter2d(the_geom), ST_Perimeter(the_geom) FROM(SELECT ST_GeomFromEWKT(’SRID=2249;POLYGON((743238 2967416 2,743238 2967450 1,743265.625 2967416 1,743238 2967416 2))’) As the_geom) As foo;st_perimeter3d | st_perimeter2d | st_perimeter------------------+------------------+------------------105.465793597674 | 105.432997272188 | 105.432997272188

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!