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>91 / 310This method implements the OpenGIS Simple Features Implementation Specification for SQL 1.1.This method implements the SQL/MM specification. SQL-MM 3: 8.3.2This function supports 3d and will not drop the z-index.Examples--a 2d polygonSELECT ST_Polygon(ST_GeomFromText(’LINESTRING(75.15 29.53,77 29,77.6 29.5, 75.15 29.53)’),4326);--result--POLYGON((75.15 29.53,77 29,77.6 29.5,75.15 29.53))--a 3d polygonSELECT ST_AsEWKT(ST_Polygon(ST_GeomFromEWKT(’LINESTRING(75.15 29.53 1,77 29 1,77.6 29.5 1,75.15 29.53 1)’), 4326));←↪←↪result------SRID=4326;POLYGON((75.15 29.53 1,77 29 1,77.6 29.5 1,75.15 29.53 1))See AlsoST_AsEWKT, ST_AsText, ST_GeomFromEWKT, ST_GeomFromText, ST_LineMerge, ST_MakePolygon7.3.33 ST_PolygonFromTextST_PolygonFromText — Makes a Geometry from WKT with the given SRID. If SRID is not give, it defaults to -1.Synopsisgeometry ST_PolygonFromText(text WKT);geometry ST_PolygonFromText(text WKT, integer srid);DescriptionMakes a Geometry from WKT with the given SRID. If SRID is not give, it defaults to -1. Returns null if WKT is not a polygon.OGC SPEC 3.2.6.2 - option SRID is from the conformance suiteNoteIf you are absolutely sure all your WKT geometries are polygons, don’t use this function.ST_GeomFromText since it adds an additional validation step.It is slower thanThis method implements the OpenGIS Simple Features Implementation Specification for SQL 1.1. s3.2.6.2This method implements the SQL/MM specification. SQL-MM 3: 8.3.6

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

Saved successfully!

Ooh no, something went wrong!