Changes between Version 1 and Version 2 of UsersWikiCoveragesAndPostgis


Ignore:
Timestamp:
Jul 21, 2011, 1:15:24 PM (13 years ago)
Author:
bnordgren
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • UsersWikiCoveragesAndPostgis

    v1 v2  
    33== Introduction ==
    44
     5This page attempts to provide a nontechnical introduction to basic coverage concepts and relate them to various tools and items provided by PostGIS. Nearly all users of PostGIS implicitly leverage coverage concepts, whether they realize it or not. Until the advent of PostGIS raster, ''vector coverages'' were the only possible use. Now, however, PostGIS contains the building blocks for ''raster coverages'' as well. There are similarities and differences between these two types of coverages; but in order to make sense of how they are related, the concepts cannot remain implicit.
     6
     7The following "concept map" gives an overview of this entire page. Starting in any box, you may read the text of the box, follow an outgoing arrow (reading the label on the way by), and read the contents of the second box. While this generally does not form complete sentences, it does provide a very visual summary of everything presented here.
     8
    59[[Image(CoverageConcepts.png)]]
    610
     11== Coverages are Equations ==
     12
     13The most fundamental thing which is true of all coverages is that they act like equations. More precisely, they act like mathematical functions. They calculate, lookup, interpolate, or return one or more values given a location and/or a time. Like mathematical functions, they may be defined everywhere (''for all values'') or only in certain places (e.g., only over land). The area over which a coverage is defined is the ''domain'' of that coverage. The set of values a coverage may return is the ''range'' of that coverage. This terminology is borrowed from mathematical equations.
     14
     15In general, the ''range'' of a coverage is not restricted to numbers. Given a location, for instance, a "nations" coverage may return a country name which contains that location. This is a common use. The ''range'' of a coverage is not necessarily restricted to "primitive" types either: it can even return another spatial type. This will become important later. The only constraint is that a coverage has the same ''range'' (or set of potential values from which an answer may be drawn) everywhere it is defined. If it returns a "County Name" and a "Population" in one place, it returns a "County Name" and a "Population" everywhere it is defined.
     16
     17Finally, ''most'' (but not all) coverages may be inverted. Using the above example, users may ask for the set of all locations where "County Name" is "Mineral", or "Population" is 20000.
     18
     19Querying a coverage for a set of values given a location is called ''evaluating'' the coverage. Querying for a (set of) location(s) given some criteria on the values is given the name ''evaluateInverse'' by ISO 19123. The specifics of how answers are generated for these queries depends on the type of coverage and how the "supporting data" are stored.
     20
     21== Continuous Coverages ==
     22
     23Continuous coverages