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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>PostGIS</strong> <strong>1.5.8</strong> <strong>Manual</strong>192 / 310See AlsoST_GeographyFromText, ST_GeomFromEWKT, ST_Length_Spheroid, ST_Perimeter, ST_Transform7.8.23 ST_Length2DST_Length2D — Returns the 2-dimensional length of the geometry if it is a linestring or multi-linestring. This is an alias forST_LengthSynopsisfloat ST_Length2D(geometry a_2dlinestring);DescriptionReturns the 2-dimensional length of the geometry if it is a linestring or multi-linestring. This is an alias for ST_LengthSee AlsoST_Length, ST_Length3D7.8.24 ST_Length3DST_Length3D — Returns the 3-dimensional or 2-dimensional length of the geometry if it is a linestring or multi-linestring.Synopsisfloat ST_Length3D(geometry a_3dlinestring);DescriptionReturns the 3-dimensional or 2-dimensional length of the geometry if it is a linestring or multi-linestring. For 2-d lines it willjust return the 2-d length (same as ST_Length and ST_Length2D)This function supports 3d and will not drop the z-index.ExamplesReturn length in feet for a 3D cable. Note this is in feet because 2249 is Mass State Plane FeetSELECT ST_Length3D(ST_GeomFromText(’LINESTRING(743238 2967416 1,743238 2967450 1,7432652967450 3,743265.625 2967416 3,743238 2967416 3)’,2249));st_length3d-----------122.704716741457←↪See AlsoST_Length, ST_Length2D

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

Saved successfully!

Ooh no, something went wrong!