[postgis-devel] [PostGIS] #1193: [raster] Add the possibility to aggregate values when rescaling with ST_Rescale()
PostGIS
trac at osgeo.org
Wed Sep 14 04:53:37 PDT 2011
#1193: [raster] Add the possibility to aggregate values when rescaling with
ST_Rescale()
----------------------------+-----------------------------------------------
Reporter: pracine | Owner: pracine
Type: enhancement | Status: new
Priority: low | Milestone: PostGIS Raster Future
Component: postgis raster | Version: trunk
Keywords: |
----------------------------+-----------------------------------------------
It would be nice to be able to compute aggregate values when rescaling a
raster like this:
http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//009z00000034000000.htm
So in addition to the standard resampling algorythms (NearestNeighbor,
Bilinear, Cubic, CubicSpline and Lanczos) we could use "sum", "count",
"mean", "max", "min", "median".
The count would count the number of pixel with value (ignoring nodata
values).
Event if this operation is VERY similar to rescale it could be named
ST_Aggregate instead. It would accept a size (in pixel) for the aggregate
pixel area and an aggregate type (sum", "count", "mean", "max", "min",
"median").
If the resample code base (based on GDAL) could be reuse or if a totally
new function has to be written is to be determined.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1193>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-devel
mailing list