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>96 / 310ExamplesSELECT ST_Dimension(’GEOMETRYCOLLECTION(LINESTRING(1 1,0 0),POINT(0 0))’);ST_Dimension-----------1See AlsoST_NDims7.4.5 ST_EndPointST_EndPoint — Returns the last point of a LINESTRING geometry as a POINT.Synopsisboolean ST_EndPoint(geometry g);DescriptionReturns the last point of a LINESTRING geometry as a POINT or NULL if the input parameter is not a LINESTRING.This method implements the SQL/MM specification. SQL-MM 3: 7.1.4This function supports 3d and will not drop the z-index.Examplespostgis=# SELECT ST_AsText(ST_EndPoint(’LINESTRING(1 1, 2 2, 3 3)’::geometry));st_astext------------POINT(3 3)(1 row)postgis=# SELECT ST_EndPoint(’POINT(1 1)’::geometry) IS NULL AS is_null;is_null----------t(1 row)--3d endpointSELECT ST_AsEWKT(ST_EndPoint(’LINESTRING(1 1 2, 1 2 3, 0 0 5)’));st_asewkt--------------POINT(0 0 5)(1 row)See AlsoST_PointN, ST_StartPoint

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

Saved successfully!

Ooh no, something went wrong!