Changes between Version 62 and Version 63 of WKTRaster/SpecificationWorking01


Ignore:
Timestamp:
Dec 16, 2009, 11:15:21 AM (14 years ago)
Author:
pracine
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • WKTRaster/SpecificationWorking01

    v62 v63  
    192192'''ST_Box2D(raster) -> BOX2D''' - Returns a BOX2D representing the maximum extents of the geometry.
    193193
     194 The only difference with ST_Envelope(raster) is that ST_Box2D(raster) returns a BOX2D, not a geometry.
     195
    194196 This function replaces ST_Raster_to_box2d() and should be used for the "raster AS box2d" cast. It should also be used instead of ST_raster_envelope when creating indexes in gdal2wktraster.py (to be tested).
    195197
     
    198200 If the raser is rotated, the envelope is a non-rotated box enclosing the rotated raster.
    199201
     202 The only difference with ST_Box2D(raster) is that ST_Envelope(raster) returns a geometry, not a BOX2D.
     203
    200204 This function should replace the actual ST_raster_envelope() function which is wrongly named.
    201205
    202206'''ST_ConvexHull(raster) -> polygon geometry''' - Returns the minimum convex geometry that encloses every significant pixel from the raster.
    203207
    204  By default the resulting polygon TAKES the NODATA values into account. The resulting polygon enclose only pixels having a significant value (different than the NODATA value). The ST_ConvexHull(raster, 'WITHNODATA') variant DO NOT TAKE the NODATA value into account. It generally returns a square or rectangle polygon that can be rotated or not depending on the rotation of the raster. If the raster is not rotated ST_ConvexHull(geometry, 'WITHNODATA') is (almost) equivalent to ST_Envelope(raster).
     208 By default the resulting polygon TAKES the NODATA values into account. The resulting polygon enclose only pixels having a significant value (different than the NODATA value).
     209
     210 A ST_ConvexHull(raster, 'WITHNODATA') variant SHOULD NOT TAKE the NODATA value into account. It generally returns a square or rectangle polygon that can be rotated or not depending on the rotation of the raster. If the raster is not rotated ST_ConvexHull(geometry, 'WITHNODATA') is (almost) equivalent to ST_Envelope(raster).
    205211
    206212'''ST_Shape(raster) -> polygon geometry''' - Returns a geometry encomparsing every pixel having a significant value (different than the NODATA value).
    207213
    208  This polygon geometry might contain holes if some internal areas of the raster contain pixels with NODATA values.
     214 This polygon geometry might contain holes if some internal areas of the raster contain pixels with NODATA values. By opposition ST_ConvexHull(raster) never contains holes.
    209215
    210216'''ST_AsPolygon(raster) -> polygon geometry set''' - Returns a set of geometry, one for each group of pixel having the same value.
     
    216222 This function should be used with precaution on raster with float pixel type as it could return one polygon per pixel. This kind of raster should be reclassified (using the planned ST_Reclassify(raster,...) function) before using ST_AsPolygon().
    217223
     224 This function is at the base of the first version of ST_Intersection which compute the intersection between a raster and a geometry.
     225
    218226'''ST_AsSmoothPolygon(raster) -> polygon geometry set''' - Returns a set of geometry, one for each group of pixel having the same value.
    219227
     
    226234
    227235
    228 '''ST_Intersects(raster|geometry, raster|geometry)'''[[BR]][[BR]]
    229 '''ST_Intersection(raster|geometry, raster|geometry, ‘raster’|’geometry’)->raster/geometry'''[[BR]]
     236'''ST_Intersects(raster|geometry, raster|geometry)'''
     237
     238'''ST_Intersection(raster|geometry, raster|geometry, ‘raster’|’geometry’)->raster/geometry'''
    230239
    231240----