]> granicus.if.org Git - postgis/commitdiff
add ST_SnapToGrid
authorRegina Obe <lr@pcorp.us>
Fri, 24 Oct 2008 14:56:48 +0000 (14:56 +0000)
committerRegina Obe <lr@pcorp.us>
Fri, 24 Oct 2008 14:56:48 +0000 (14:56 +0000)
git-svn-id: http://svn.osgeo.org/postgis/branches/1.3@3169 b70326c6-7e19-0410-871a-916f4a2858ee

postgis_comments.sql

index add47fcad1a8f60aa826156ead19867e6db28d6c..476ccbe77a602a5f10f9055f09384a780322e0c2 100644 (file)
@@ -157,6 +157,14 @@ COMMENT ON FUNCTION ST_SetPoint(geometry, integer, geometry) IS 'args: linestrin
                        \r
 COMMENT ON FUNCTION ST_SetSRID(geometry , integer ) IS 'args: geom, srid - Sets the SRID on a geometry to a particular integer value.';\r
                        \r
+COMMENT ON FUNCTION ST_SnapToGrid(geometry , float , float , float , float ) IS 'args: geomA, originX, originY, sizeX, sizeY - Snap all points of the input geometry to the grid defined by its origin and cell size. Remove consecutive points 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.';\r
+                       \r
+COMMENT ON FUNCTION ST_SnapToGrid(geometry , float , float ) IS 'args: geomA, sizeX, sizeY - Snap all points of the input geometry to the grid defined by its origin and cell size. Remove consecutive points 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.';\r
+                       \r
+COMMENT ON FUNCTION ST_SnapToGrid(geometry , float ) IS 'args: geomA, size - Snap all points of the input geometry to the grid defined by its origin and cell size. Remove consecutive points 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.';\r
+                       \r
+COMMENT ON FUNCTION ST_SnapToGrid(geometry , geometry , float , float , float , float ) IS 'args: geomA, pointOrigin, sizeX, sizeY, sizeZ, sizeM - Snap all points of the input geometry to the grid defined by its origin and cell size. Remove consecutive points 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.';\r
+                       \r
 COMMENT ON FUNCTION ST_Transform(geometry , integer ) IS 'args: g1, srid - Returns a new geometry with its coordinates transformed to the SRID referenced by the integer parameter.';\r
                        \r
 COMMENT ON FUNCTION ST_Translate(geometry , float , float ) IS 'args: g1, deltax, deltay - Translates the geometry to a new location using the numeric parameters as offsets. Ie: ST_Translate(geom, X, Y) or ST_Translate(geom, X, Y,Z).';\r