[postgis-devel] Another idea to speedup raster value editing

Pierre Racine Pierre.Racine at sbf.ulaval.ca
Wed Feb 1 09:01:11 PST 2012


For sure being able to 'print' (or 'burn') a set of point of multipoint in a raster is interesting.

This can be done quickly by making sure ST_AsRaster() supports point and multipoints and then making a wrapper around ST_MapAlgebra(raster, raster) (See Objective FV.19, ST_BurnToRaster).

Pierre

> -----Original Message-----
> From: postgis-devel-bounces at postgis.refractions.net [mailto:postgis-devel-
> bounces at postgis.refractions.net] On Behalf Of Sandro Santilli
> Sent: Wednesday, February 01, 2012 11:51 AM
> To: PostGIS Development Discussion
> Subject: Re: [postgis-devel] Another idea to speedup raster value editing
> 
> On Wed, Feb 01, 2012 at 07:27:46AM -0800, Paul Ramsey wrote:
> > Kinda... but then you've got a multipoint to deal with and that's
> > easier because...?
> 
> Well, it'd be easier because a multipoint you can dump in single points and edit
> single points directly and then rejoin back and use as input.
> 
> Wait, reminds me of the same thing you can do with raster, but doing it with
> raster is soooo slow (probably shouldn't be).
> 
> > How about just getting/taking an array?
> 
> The other advantage of the points is that you'd be dealing with geographical
> locations, not array offsets..
> 
> --strk;
> 
>   ,------o-.
>   |   __/  |    Thank you for PostGIS-2.0 Topology !
>   |  / 2.0 |    http://www.pledgebank.com/postgistopology
>   `-o------'
> 
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel



More information about the postgis-devel mailing list