[postgis-tickets] [PostGIS] #2617: [raster] Enhanced mask object for raster map algebra
PostGIS
trac at osgeo.org
Mon Jan 27 08:28:47 PST 2014
#2617: [raster] Enhanced mask object for raster map algebra
-------------------------+--------------------------------------------------
Reporter: dustymugs | Owner: dustymugs
Type: enhancement | Status: new
Priority: medium | Milestone: PostGIS Future
Component: raster | Version: trunk
Keywords: |
-------------------------+--------------------------------------------------
With the introduction of the mask parameter for ST_MapAlgebra, we can now
enhance the mask for additional flexibility.
For a mask, be able to specify the POI pixel in the mask. This will permit
truly user defined masks with even-valued dimensions and the POI does not
need to be the center value of the mask.
So in addition to:
{{{
0, 0, 0
0, 1, 0
0, 0, 0
}}}
We want to be able to do:
{{{
1, 0, 0
0, 0, 0
0, 0, 0
}}}
The "1" above just indicates the POI. Indicating the POI could be done
with another (!!!) funciton parameter comprised of a 2-element array for
the POI.
{{{
mask =[
1, 1, 1, 1, 1
1, 1, 1, 1, 1
1, 1, 1, 1, 1
]
poi = [3, 2] // X, Y
}}}
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2617>
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-tickets
mailing list