[postgis-devel] Status of raster mapalgebra?
Pierre Racine
Pierre.Racine at sbf.ulaval.ca
Tue Feb 1 07:08:09 PST 2011
>1-raster version of MapAlgebra should be implemented as core function
>(C function) for the end of this week. I'll keep you informed anyway.
>There's a huge amount of work to do, and not as much time as I'd like,
>but it's an exciting work :-)
That's great Jorge! Did you implement ST_MinPossibleVal(),ST_MaxPossibleVal and ST_AddBand(rast1 raster, rast2 raster, band int, index int)?
Next step will be to add the possibility to refer to neighbour pixel in the expression.
e.g "(rast[-1,0] + rast[1,0]) / 2" where rast[-1,0] is the value of the pixel located to the left of the current pixel and rast[1,0] is the value of the pixel located to the left. Generally [x,y] are the coordinate of a pixel relative to the pixel for which the value is being computed. Understandable?
Pierre
More information about the postgis-devel
mailing list