wiki:WKTRaster/SpecificationWorking02

Version 12 (modified by pracine, 14 years ago) ( diff )

--

PostGIS WKT Raster Beta 0.2.4 Working Specifications


Objective B02c - Being able to intersect vector and raster to produce raster.

ST_AsRaster(geometry, pixelsize) -> raster
ST_Intersects(raster, raster)
Changes to ST_Intersection or use ST_MapAlgebra


Objective B02d - Being able to use "group by" to accumulate tiles to form a new raster.

ST_Union(raster|geometry, raster|geometry, ‘raster’|’geometry’) -> raster/geometry
ST_Accum(raster set|geometry set, ‘raster’|’geometry’) -> raster/geometry


Objective B02e - Being able to create on the fly and get data from registered (out-db) raster.

Mostly change to Core API functions rt_band_get_data using GDAL to read from external raster.
Add a ST_AddBand() SQL function
Allow then to create, in SQL, a new out-db raster and to load it into the database:

CREATE TABLE newIndbRastTable AS SELECT ST_AddBand(ST_NewRasterFromFile("c:/temp/myraster.tif"), "c:/temp/myraster.tif");

and to tile it in a new table using a new easy to implement pl/PgSQL function using ST_Clip. No more need of gdal2wktraster.py to load a raster.

Attachments (2)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.