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>87 / 310ExamplesSELECT ST_MPointFromText(’MULTIPOINT(1 2, 3 4)’);SELECT ST_MPointFromText(’MULTIPOINT(-70.9590 42.1180, -70.9611 42.1223)’, 4326);See AlsoST_GeomFromText7.3.28 ST_MPolyFromTextST_MPolyFromText — Makes a MultiPolygon Geometry from WKT with the given SRID. If SRID is not give, it defaults to -1.Synopsisgeometry ST_MPolyFromText(text WKT, integer srid);geometry ST_MPolyFromText(text WKT);DescriptionMakes a MultiPolygon from WKT with the given SRID. If SRID is not give, it defaults to -1.OGC SPEC 3.2.6.2 - option SRID is from the conformance suiteThrows an error if the WKT is not a MULTIPOLYGONNoteIf you are absolutely sure all your WKT geometries are multipolygons, 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: 9.6.4ExamplesSELECT ST_MPolyFromText(’MULTIPOLYGON(((0 0 1,20 0 1,20 20 1,0 20 1,0 0 1),(5 5 3,5 7 3,7 7 ←↪3,7 5 3,5 5 3)))’);SELECt ST_MPolyFromText(’MULTIPOLYGON(((-70.916 42.1002,-70.9468 42.0946,-70.9765 ←↪42.0872,-70.9754 42.0875,-70.9749 42.0879,-70.9752 42.0881,-70.9754 42.0891,-70.9758 ←↪42.0894,-70.9759 42.0897,-70.9759 42.0899,-70.9754 42.0902,-70.9756 42.0906,-70.9753 ←↪42.0907,-70.9753 42.0917,-70.9757 42.0924,-70.9755 42.0928,-70.9755 42.0942,-70.9751 ←↪42.0948,-70.9755 42.0953,-70.9751 42.0958,-70.9751 42.0962,-70.9759 42.0983,-70.9767 ←↪42.0987,-70.9768 42.0991,-70.9771 42.0997,-70.9771 42.1003,-70.9768 42.1005,-70.977 ←↪42.1011,-70.9766 42.1019,-70.9768 42.1026,-70.9769 42.1033,-70.9775 42.1042,-70.9773 ←↪42.1043,-70.9776 42.1043,-70.9778 42.1048,-70.9773 42.1058,-70.9774 42.1061,-70.9779 ←↪42.1065,-70.9782 42.1078,-70.9788 42.1085,-70.9798 42.1087,-70.9806 42.109,-70.9807 ←↪42.1093,-70.9806 42.1099,-70.9809 42.1109,-70.9808 42.1112,-70.9798 42.1116,-70.9792 ←↪42.1127,-70.979 42.1129,-70.9787 42.1134,-70.979 42.1139,-70.9791 42.1141,-70.9987 ←↪42.1116,-71.0022 42.1273,-70.9408 42.1513,-70.9315 42.1165,-70.916 42.1002)))’,4326);

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

Saved successfully!

Ooh no, something went wrong!