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>135 / 310Synopsisgeometry ST_SetSRID(geometry geom, integer srid);DescriptionSets the SRID on a geometry to a particular integer value. Useful in constructing bounding boxes for queries.NoteThis function does not transform the geometry coordinates in any way - it simply sets the meta data defining the spatialreference system the geometry is assumed to be in. Use ST_Transform if you want to transform the geometry into anew projection.This method implements the OpenGIS Simple Features Implementation Specification for SQL 1.1.This method supports Circular Strings and CurvesExamples-- Mark a point as WGS 84 long lat --SELECT ST_SetSRID(ST_Point(-123.365556, 48.428611),4326) As wgs84long_lat;-- the ewkt representation (wrap with ST_AsEWKT) -SRID=4326;POINT(-123.365556 48.428611)-- Mark a point as WGS 84 long lat and then transform to web mercator (Spherical Mercator) --SELECT ST_Transform(ST_SetSRID(ST_Point(-123.365556, 48.428611),4326),3785) As spere_merc;-- the ewkt representation (wrap with ST_AsEWKT) -SRID=3785;POINT(-13732990.8753491 6178458.96425423)See AlsoSection 4.3.1, ST_AsEWKT, ST_Point, ST_SRID,ST_Transform, UpdateGeometrySRID7.5.23 ST_SnapToGridST_SnapToGrid — Snap all points of the input geometry to the grid defined by its origin and cell size. Remove consecutivepoints falling on the same cell, eventually returning NULL if output points are not enough to define a geometry of the given type.Collapsed geometries in a collection are stripped from it. Useful for reducing precision.Synopsisgeometry ST_SnapToGrid(geometry geomA, float originX, float originY, float sizeX, float sizeY);geometry ST_SnapToGrid(geometry geomA, float sizeX, float sizeY);geometry ST_SnapToGrid(geometry geomA, float size);geometry ST_SnapToGrid(geometry geomA, geometry pointOrigin, float sizeX, float sizeY, float sizeZ, float sizeM);

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

Saved successfully!

Ooh no, something went wrong!