[postgis-devel] Regular expressions in PostGIS sources

strk strk at keybit.net
Tue Nov 16 00:04:50 PST 2010


On Tue, Nov 16, 2010 at 12:17:02AM +0100, Jorge Arévalo wrote:
> On Mon, Nov 15, 2010 at 9:46 PM, Kevin Neufeld <kneufeld at refractions.net> wrote:
> > On 11/15/2010 12:29 PM, Jorge Arévalo wrote:
> >>
> >> For MapAlgebra implementation at core level. The ST_MapAlgebra
> >> Pl/pgSQL function takes an input argument like "SELECT rast + 3",
> >> meaning "add 3 to all raster's pixels", and it calls a  core function
> >> (via postgresql function) to perform the operation.
> >>
> >> Should I parse the expression in PL/pgSQL function, at postgresql
> >> level or at core level? Now, I'm working only at core level.
> >
> > I may be out here, but wouldn't you rather define the + operator for
> > raster/integer?
> >
> 
> You mean define '+' in the same sense operators like '&&' or '~' are
> defined for vectors? Would be a smart way, yes.

+1 for better SQL integration.

--strk;

  ()   Free GIS & Flash consultant/developer
  /\   http://strk.keybit.net/services.html



More information about the postgis-devel mailing list