Version 16 (modified by 15 years ago) ( diff ) | ,
---|
PostGIS WKT Raster - FAQ
1 - What is the meaning of "WKT" in WKT Raster?
WKT stands for "Well Known Text". Is is an OGC standard to represent geographical information in a human readable textual representation. however, the OCG WKT standard does not define a way to represent raster yet. PostGIS WKT Raster is a bit ahead on this :-)
2 - How is WKT Raster different than the Oracle SDO_GEORASTER and SDO_RASTER types?
The major difference lies in the fact that each WKT Raster piece of raster (block or tile) is georeferenced (one-georeference-per-raster). In Oracle only the SDO_GEORASTER type supports georeference so that the location of every piece of raster stored as SDO_RASTER is aligned on a grid derived from the unique georeference (one-georeference-by-layer).
The major advantage of one-georeference-by-raster over one-georeference-by-layer is to allow:
- coverages to be not necessarily rectangular (which is often the case of raster coverage covering large extents. See the possible raster arrangements in the documentation)
- rasters to overlaps (which is necessary to implement lossless vector to raster conversion)
These arrangements are possible in Oracle as well, but they implies the storage of multiple SDO_GEORASTER objects linked to as many SDO_RASTER tables. A complex coverage can lead to hundreds of tables in the database. With WKT Raster you can store a similar raster arrangement into a unique table.
3 - Why do you say "WKT Raster goal is to implement the RASTER type as much as possible like the GEOMETRY type is implemented in PostGIS"? Vector and raster are very different and have always been threated differently in GIS packages.
WKT Raster see geospatial data in term of coverage. Even if the structure of vector and raster dataset are very different, GIS analyst fundamentally always want to perform the same kind of operations on both type of structure (overlay, map algebra, selection, etc...). Because those two structures are so different, traditional GIS packages have always proposed different sets of tools to operate on them, forcing users to learn and use two different sets of tools, even if they are basically doing the same thing. WKT Raster is a first attempt to build a single set of tool working transparently on both vector and raster formats. We expect that this simplification will allows application software developers to simplify the sets of tools and GUI they provide. This should, at the end, help users to spend more time on solving the problems they have instead of spending time on learning how to do the operation they have to do on a different data structure.
4 - Why does every tile is georeferenced?
In a traditional raster system only the global image is georeferenced, not every tile. The system assume that the area covered by the tiles forms a perfect rectangle well aligned on a grid. This is the raster view of geospatial data. However the reality is often different. People use raster data covering area for which the sum of the tiles do not necessarily result in a rectangle. This is the coverage view of raster geospatial data. Having one georeference per tile allow WKT Raster to store raster coverage which are not necessarily rectangular.
People also often need to convert vector data to raster data in order to perform certain operations. If you convert a vector coverage containing gaps or overlaps to raster, you may result in way too much information in the first case (gaps are filled with data) or in a lost of information in the second case (overlaps are blended or only one polygon is converted). In WKT Raster each vector object convert to a single raster so that there is a one to one correspondence between the two. Having one georeference per tile (or raster) is very usefull to properly support this feature.
5 - How come it is possible to store overlapping rasters in the same table? In a raster, tiles should not overlaps.
To properly convert a vector coverage containing overlaps to a raster coverage, you need raster to be able to overlap also. This is also convenient if you want to model surface objects having their own identities (one raster per object like polygons in a vector layer) but are better represented by varying raster or fuzzy objects (like variable intensity fires, variable depth lake or overlapping animal territories).
6 - How do I load my raster in the database using WKT Raster?
7 - How do I dump my raster from the database into the filesystem using WKT Raster?