From: Regina Obe Date: Mon, 5 Apr 2010 05:52:59 +0000 (+0000) Subject: st_box2d, st_envelope (note regular Postgis changed st_box2d to just box2d old st_box... X-Git-Tag: 2.0.0alpha1~3073 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=44b919cc22a5b6b4b526de442f6e4d15312a329e;p=postgis st_box2d, st_envelope (note regular Postgis changed st_box2d to just box2d old st_box2d is deprecated) git-svn-id: http://svn.osgeo.org/postgis/trunk@5489 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/reference_wktraster.xml b/doc/reference_wktraster.xml index 0eec874da..5547354fa 100644 --- a/doc/reference_wktraster.xml +++ b/doc/reference_wktraster.xml @@ -179,6 +179,98 @@ WHERE rid = 2; + + + ST_Box2D + Returns the box 2d representation of the enclosing box of the raster + + + + + + box2dST_Box2D + raster rast + + + + + + Description + + Returns the box representing the extent of the raster. + The polygon is defined by the corner points of the bounding box + ((MINX, MINY), + (MAXX, MAXY)) + + + + Examples + + SELECT rid, ST_Box2D(rast) As rastbox +FROM dummy_rast; + +rid | rastbox +----+------------------------------------------------- +1 | BOX(0.5 0.5,20.5 60.5) +2 | BOX(3427927.75 5793243.5,3427928 5793244) + + + + + + See Also + + + + + + + ST_Envelope + Returns the polygon representation of the extent of the raster. + + + + + + geometry ST_Envelope + raster rast + + + + + + Description + + Returns the polygon representation of the extent of the raster in spatial coordinate units defiend by srid. It is a float8 minimum bounding box represented as a polygon. + The polygon is defined by the corner points of the bounding box + ((MINX, MINY), + (MINX, MAXY), + (MAXX, MAXY), + (MAXX, MINY), + (MINX, MINY)) + + + + Examples + + SELECT rid, ST_AsText(ST_Envelope(rast)) As envgeomwkt +FROM dummy_rast; + + rid | envgeomwkt +-----+-------------------------------------------------------------------- + 1 | POLYGON((0 0,20 0,20 60,0 60,0 0)) + 2 | POLYGON((3427927 5793243,3427928 5793243, + 3427928 5793244,3427927 5793244, 3427927 5793243)) + + + + + + See Also + , , + + + ST_GeoReference