[postgis-users] You can now edit a raster with WKT Raster!

Pierre Racine Pierre.Racine at sbf.ulaval.ca
Fri Jul 23 13:58:46 PDT 2010


Hi,

It might be slow and arduous but the fact is that you can now edit raster in the database with PostGIS WKT Raster. Eventually we will be able to edit  block by block but for now its pixel by pixel :-| Try:

  ST_SetValue(rast raster, band integer, x integer, y integer, value float8)

if you know the x and y of the point you want to edit the value or:

  ST_SetValue(rast raster, band integer, point geometry, value float8)

if you have a point geometry instead.

This should open a lot of possibitities while we wait for ST_MapAlgebra.

Have fun!

Pierre




More information about the postgis-users mailing list