[postgis-tickets] [PostGIS] #2617: [raster] Enhanced mask object for raster map algebra

PostGIS trac at osgeo.org
Wed Jan 29 22:18:57 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:               |  
-------------------------+--------------------------------------------------

Comment(by nclay):

 1. We are on the same page ALL  masks are valid except for irregular
 (jagged).
 {{{
 mask = [
 1,1,1,1
 1,1
 ]
 }}}

 Would be Invalid.

 2. Yes that was a kluge of an Idea, to add padding. However what came of
 it is that it, was an idea that it would be nice to have a way of
 expressing that you dont want a cell to be considered or returned at all.
 This has its limitations mainly to sparse masks and spatially irrelevant
 operations. An concrete example yet not very useful would be:
 {{{
 mask = [
 3.14,-,-,-,3.14
  -,-,-,-,-
 3.14,-,-,-,3.14
 ]
 poi = [3,2]
 }}}

 This would return a 1D  a  array containing the values from the four
 corners of the mask multiplied by their respective weights, also the value
 at the poi would be returned for the common case where you would like to
 poi -,+,*,/ aggregate function.

 This would be applicable to HAAT, where you are only really concerned with
 the values along 8 radials ( every 45 degrees ) from 2 to 16 km. Yes,
 currently you could pass in an mask array with nulls and receive a array
 with nulls in the respective positions but that is a lot of nulls to be
 only ignored when passed to an aggregate such as avg(). Why not through
 them out early on if the user explicitly ask for that? I would value your
 opinion on this.

 3. Again We're on the same page, except for the having the option
 explained in 2.

 4. Same as 3.

 Comment....
 I realized that wasn't right after I had sent that.... too late in the
 evening and not enough coffee. ;)

 Thanks,

 Nathaniel Hunter Clay

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2617#comment:5>
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