From 636222efcd573c385e6e29ea6ff12884c9d9cee7 Mon Sep 17 00:00:00 2001 From: Regina Obe Date: Fri, 27 May 2011 12:15:39 +0000 Subject: [PATCH] fix indentation git-svn-id: http://svn.osgeo.org/postgis/trunk@7272 b70326c6-7e19-0410-871a-916f4a2858ee --- doc/reference_raster.xml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/doc/reference_raster.xml b/doc/reference_raster.xml index 977e38d35..57ccf4bae 100644 --- a/doc/reference_raster.xml +++ b/doc/reference_raster.xml @@ -906,16 +906,17 @@ FROM (SELECT rid, ST_MetaData(rast) As md Returns the number of pixels in a given band of a raster or raster coverage. If no band is specified nband defaults to 1. If hasnodata is set to true, will also count pixels with no data. Set hasnodata to false to get only pixels with data Availability: 2.0.0 - This currently does the opposite of what I just said. Will be fixed to agree with the documentation or the documentation will be fixed to agee with the behavior. + This currently does the opposite of what I just said. Will be fixed to agree with the documentation or the documentation will be fixed to agree with the behavior. Examples - --example will count all pixels not 249 and one will count all pixels. Note this behavior may be reversed -- - SELECT rid, ST_Count(ST_SetBandNoDataValue(rast,249)) As exclude_nodata, ST_Count(ST_SetBandNoDataValue(rast,249),false) As include_nodata - FROM dummy_rast WHERE rid=2; +--example will count all pixels not 249 and one will count all pixels. Note this behavior may be reversed -- +SELECT rid, ST_Count(ST_SetBandNoDataValue(rast,249)) As exclude_nodata, + ST_Count(ST_SetBandNoDataValue(rast,249),false) As include_nodata + FROM dummy_rast WHERE rid=2; rid | exclude_nodata | include_nodata -----+----------------+---------------- -- 2.50.1