From: Regina Obe Date: Wed, 16 Mar 2011 16:47:20 +0000 (+0000) Subject: #651 revise ST_MakeEmptyRaster so arg names and types are consistent X-Git-Tag: 2.0.0alpha1~1894 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9b96a9869fbf4bbe8c93f95f61c401b4fd6e8b0a;p=postgis #651 revise ST_MakeEmptyRaster so arg names and types are consistent git-svn-id: http://svn.osgeo.org/postgis/trunk@6908 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/reference_raster.xml b/doc/reference_raster.xml index 5ea81e644..799eaadd5 100644 --- a/doc/reference_raster.xml +++ b/doc/reference_raster.xml @@ -677,7 +677,8 @@ postgis_raster_lib_version ST_MakeEmptyRaster - Returns an empty raster of given dimensions, pixel x y, skew and spatial reference system with no bands. If a raster is passed in, returns a new raster with same meta data properties. + Returns an empty raster (having no bands) of given dimensions, with upperleft x y, pixel size expressed as scalex, scaley, skewx, skewy and reference system (srid). + If a raster is passed in, returns a new raster with same meta data properties. @@ -689,8 +690,8 @@ postgis_raster_lib_version raster ST_MakeEmptyRaster integer width integer height - float8 ipx - float8 ipy + float8 upperleftx + float8 upperlefty float8 scalex float8 scaley float8 skewx @@ -700,8 +701,8 @@ postgis_raster_lib_version raster ST_MakeEmptyRaster integer width integer height - float8 ipx - float8 ipy + float8 upperleftx + float8 upperlefty float8 scalex float8 scaley float8 skewx @@ -713,19 +714,19 @@ postgis_raster_lib_version raster ST_MakeEmptyRaster integer width integer height - double precision upperleftx - double precision upperlefty - double precision scale + float8 upperleftx + float8 upperlefty + float8 scale Description + Returns an empty raster (having no band) of given dimensions (width & height) and georeferenced in spatial (or world) coordinates with upper left x (upperleftx), upper left y (upperlefty), pixel size expressed as scalex, scaley, skewx, skewy and reference system (srid). + The last version use a single parameter to specify the pixel size (pixelsize). + In this case scalex and scaley are set to this parameter and skewx and skewy are set to 0. If an existing raster is passed in, it returns a new raster with the same meta data settings (without the bands). + If no srid is specified it defaults to -1, though this may change to 0 in future. After you create an empty raster you probably want to add bands to it and maybe edit it. Refer to to define bands and to set pixel values. - Returns an empty raster of given dimensions, pixel width in spatial coordinates x (ipx), pixel height y in spatial coordinates (ipy), (scale - uses same size for pixel height (ipy) and width (ipx)), skew and spatial reference system with no bands. If an existing raster is passed in, - it returns a new raster with the same meta data settings (minus number of bands and band types). If no srid is specified it defaults to -1, though this may change to 0 in future. - After you create an empty raster you - probably want to add bands to it and hmm maybe edit it. Refer to to define bands and to set pixel values.