From: Regina Obe Date: Sat, 4 Jun 2011 00:58:41 +0000 (+0000) Subject: huh more mistakes in ST_Reclass X-Git-Tag: 2.0.0alpha1~1496 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f0e83a04247e22ab94bfe58b4518fa07d98a6b74;p=postgis huh more mistakes in ST_Reclass git-svn-id: http://svn.osgeo.org/postgis/trunk@7318 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/reference_raster.xml b/doc/reference_raster.xml index 47a0a8da5..8e19805b1 100644 --- a/doc/reference_raster.xml +++ b/doc/reference_raster.xml @@ -4632,7 +4632,7 @@ POLYGON((3427928 5793243.85,3427928 5793243.8,3427928 5793243.75,3427927.85 5793 ST_Reclass Creates a new raster composed of band types reclassified from original. The nband is the band to be changed. If nband is not specified assumed to be 1. All other bands are returned unchanged. - Use case: convert a 16BUI band to a 2 8BUI and so forth for simpler rendering as viewable formats. + Use case: convert a 16BUI band to a 8 8BUI and so forth for simpler rendering as viewable formats. @@ -4676,7 +4676,7 @@ POLYGON((3427928 5793243.85,3427928 5793243.8,3427928 5793243.75,3427927.85 5793 Examples Basic - Create a new raster from the original where band 2 is converted from 8BUI to 4BUI and all values from 251-255 are set to nodata value. + Create a new raster from the original where band 2 is converted from 8BUI to 4BUI and all values from 101-254 are set to nodata value. ALTER TABLE dummy_rast ADD COLUMN reclass_rast raster; UPDATE dummy_rast SET reclass_rast = ST_Reclass(rast,2,'0-87:1-10, 88-100:11-15, 101-254:0-0', '4BUI',0) WHERE rid = 2;