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>85 / 310DescriptionCreates a point with x, y and measure coordinates.NoteNote x is longitude and y is latitude.ExamplesWe use ST_AsEWKT in these examples to show the text representation instead of ST_AsText because ST_AsText does notsupport returning M.--Return EWKT representation of point with unknown SRIDSELECT ST_AsEWKT(ST_MakePointM(-71.1043443253471, 42.3150676015829, 10));--resultst_asewkt-----------------------------------------------POINTM(-71.1043443253471 42.3150676015829 10)--Return EWKT representation of point with measure marked as WGS 84 long latSELECT ST_AsEWKT(ST_SetSRID(ST_MakePointM(-71.1043443253471, 42.3150676015829,10),4326));st_asewkt---------------------------------------------------------SRID=4326;POINTM(-71.1043443253471 42.3150676015829 10)--Return a 3d point (e.g. has altitude)SELECT ST_MakePoint(1, 2,1.5);--Get m of pointSELECT ST_M(ST_MakePointM(-71.1043443253471, 42.3150676015829,10));result-------10See AlsoST_AsEWKT, ST_MakePoint, ST_SetSRID7.3.26 ST_MLineFromTextST_MLineFromText — Return a specified ST_MultiLineString value from WKT representation.Synopsisgeometry ST_MLineFromText(text WKT, integer srid);geometry ST_MLineFromText(text WKT);

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

Saved successfully!

Ooh no, something went wrong!