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>230 / 31070.383579256063,20.0366393799278 79.9451031602109,14.20583703063 ←↪90.8537670908993,10.615246672502 102.690357210921,9.40285267938019 115,10.6152466725019 ←↪127.309642789079,14.2058370306299 139.1462329091,20.0366393799275 ←↪150.054896839789,27.883579256063 159.616420743937,37.4451031602108 167.463360620072,48.3537670908992 173.29416296937,60.190357210921 ←↪176.884753327498,72.4999999999998 178.09714732062,84.8096427890786 176.884753327498,96.6462329091003 ←↪173.29416296937,107.554896839789 167.463360620072,117.116420743937 159.616420743937,124.963360620072 150.054896839789,130.79416296937 ←↪139.146232909101,134.384753327498 127.309642789079,135.59714732062 115))See AlsoST_Collect, ST_ConvexHull7.9.14 ST_PolygonizeST_Polygonize — Aggregate. Creates a GeometryCollection containing possible polygons formed from the constituent lineworkof a set of geometries.Synopsisgeometry ST_Polygonize(geometry set geomfield);geometry ST_Polygonize(geometry[] geom_array);DescriptionCreates a GeometryCollection containing possible polygons formed from the constituent linework of a set of geometries.NoteGeometry Collections are often difficult to deal with with third party tools, so use ST_Polygonize in conjunction withST_Dump to dump the polygons out into individual polygons.Availability: 1.0.0RC1 - requires GEOS >= 2.1.0.Examples: Polygonizing single linestringsSELECT ST_AsEWKT(ST_Polygonize(the_geom_4269)) As geomtextrepFROM (SELECT the_geom_4269 FROM ma.suffolk_edges ORDER BY tlid LIMIT 45) As foo;geomtextrep-------------------------------------SRID=4269;GEOMETRYCOLLECTION(POLYGON((-71.040878 42.285678,-71.040943 42.2856,-71.0409642.285752,-71.040878 42.285678)),POLYGON((-71.17166 42.353675,-71.172026 42.354044,-71.17239 42.354358,-71.171794 ←↪42.354971,-71.170511 42.354855,-71.17112 42.354238,-71.17166 42.353675)))(1 row)←↪--Use ST_Dump to dump out the polygonize geoms into individual polygonsSELECT ST_AsEWKT((ST_Dump(foofoo.polycoll)).geom) As geomtextrepFROM (SELECT ST_Polygonize(the_geom_4269) As polycoll

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

Saved successfully!

Ooh no, something went wrong!