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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>PostGIS</strong> <strong>1.5.8</strong> <strong>Manual</strong>88 / 310See AlsoST_GeomFromText, ST_SRID7.3.29 ST_PointST_Point — Returns an ST_Point with the given coordinate values. OGC alias for ST_MakePoint.Synopsisgeometry ST_Point(float x_lon, float y_lat);DescriptionReturns an ST_Point with the given coordinate values. MM compliant alias for ST_MakePoint that takes just an x and y.This method implements the SQL/MM specification. SQL-MM 3: 6.1.2Examples: GeometrySELECT ST_SetSRID(ST_Point(-71.1043443253471, 42.3150676015829),4326)Examples: GeographySELECT CAST(ST_SetSRID(ST_Point(-71.1043443253471, 42.3150676015829),4326) As geography);-- the :: is PostgreSQL short-hand for casting.SELECT ST_SetSRID(ST_Point(-71.1043443253471, 42.3150676015829),4326)::geography;--If your point coordinates are in a different spatial reference from WGS-84 long lat, then ←↪you need to transform before casting-- This example we convert a point in Pennsylvania State Plane feet to WGS 84 and then ←↪geographySELECT ST_Transform(ST_SetSRID(ST_Point(3637510, 3014852),2273),4326)::geography;See AlsoSection 4.2.1, ST_MakePoint, ST_SetSRID, ST_Transform7.3.30 ST_PointFromTextST_PointFromText — Makes a point Geometry from WKT with the given SRID. If SRID is not given, it defaults to unknown.Synopsisgeometry ST_PointFromText(text WKT);geometry ST_PointFromText(text WKT, integer srid);

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

Saved successfully!

Ooh no, something went wrong!