Changes between Version 181 and Version 182 of WKTRaster/SpecificationWorking03
- Timestamp:
- 11/29/11 14:19:10 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WKTRaster/SpecificationWorking03
v181 v182 527 527 == '''Objective FV.22 - Making raster_columns and raster_overview as views''' == 528 528 529 529 Following the conversion of geometry_columns to a view in PostGIS, it is planned to do the same with raster_column and raster_overview for the raster part. Converting to a view has a number of advantages: 530 530 531 531 * The raster_column view rows will always be in synch with the existing list raster columns 532 532 * All the information will be trustworthy because it will be enforced by constraints, so people can't change the band types etc... without changing the constraints. The raster_columns information will always be null (if the constraint does not apply) or correct. 533 533 534 535 536 534 PostGIS is using the typmod feature of PostgreSQL to 'store' metadata about a table and then display them in the geometry_column view. Unfortunately the typmod is limited to XXX byte and there is too much information to 'store' about a raster table to use typmod. PostGIS raster will therefore use another approch consisting in 'store' metadata about a raster table as constraint on the table. A set of constraint will be applied to a raster table and those constraint will be read and displayed by the raster_column view. 535 536 The major changes concerning the raster_column table are as follow: 537 537 538 538 * There will be a flexible ApplyRasterConstraint() function trying to apply a set of constraint on a table. As for any constraint, the constraints will be successfully applied only when all the rows of the table fulfil the constraint. … … 544 544 * The raster_column will derive columns of metadata from the constraints applied to each table listed. When a constraint could not be applied successfully to the table, the column for this table will be null. 545 545 546 546 The major changes concerning the raster_column table are as follow: 547 547 548 548 * We will provide two functions to support the creation of the raster_overview view and application of two additional constraints specific to overviews (ApplyOverviewConstraints) and a function for creating overviews (ST_CreateOverview()). … … 553 553 554 554 * We are working on a new C importer to get rid of any Python, Numpy and Python GDAL binding dependency. 555 555 556 * This new importer will NOT have any option to create the raster_overview view, nor to create overview tables. We think that it is more important to be able to create overview in SQL as a post process query so overviews can be updated/recreated when rasters tiles are edited, added or deleted. 557 556 558 * We will stop supporting the old raster2pgsql.py which was creating overview tables and filling the raster_overview table. It will be available in the script/python folder for people wishing to create overviews after a slight modification. 557 559 558 560 559 561 '''More Details''' 560 562 561 563 ----