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>115 / 3107.4.28 ST_SummaryST_Summary — Returns a text summary of the contents of the ST_Geometry.Synopsistext ST_Summary(geometry g);DescriptionReturns a text summary of the contents of the geometry.This function supports 3d and will not drop the z-index.ExamplesSELECT ST_Summary(ST_GeomFromText(’LINESTRING(0 0, 1 1)’)) As good_line,ST_Summary(ST_GeomFromText(’POLYGON((0 0, 1 1, 1 2, 1 1, 0 0))’)) As bad_poly--resultsgood_line | bad_poly----------------------+-------------------------|Line[B] with 2 points : Polygon[B] with 1 rings: ring 0 has 5 points:--3d polygonSELECT ST_Summary(ST_GeomFromEWKT(’LINESTRING(0 0 1, 1 1 1)’)) As good_line,ST_Summary(ST_GeomFromEWKT(’POLYGON((0 0 1, 1 1 2, 1 2 3, 1 1 1, 0 0 1))’)) As poly--resultsgood_line | poly----------------------+-------------------------|Line[ZB] with 2 points : Polygon[ZB] with 1 rings: ring 0 has 5 points:See AlsoST_IsValid, ST_IsValidReason7.4.29 ST_XST_X — Return the X coordinate of the point, or NULL if not available. Input must be a point.Synopsisfloat ST_X(geometry a_point);

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

Saved successfully!

Ooh no, something went wrong!