Changes between Version 66 and Version 67 of WKTRaster/SpecificationWorking01


Ignore:
Timestamp:
Dec 16, 2009, 12:19:54 PM (14 years ago)
Author:
pracine
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • WKTRaster/SpecificationWorking01

    v66 v67  
    203203
    204204 The only difference with ST_Box2D(raster) is that ST_Envelope(raster) returns a geometry, not a BOX2D.
    205 
    206  This function should replace the actual ST_raster_envelope() function which is wrongly named.
    207205 
    208206 There is also a ticket (#348) related to this function: http://trac.osgeo.org/postgis/ticket/348
     
    214212 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).
    215213
     214 This variant should replace the actual ST_raster_envelope() function which is wrongly named.
     215
     216
    216217 '''Implementation details'''
    217218
    218  The first variant ST_ConvexHull(raster) could be roughly implemented with a SQL or PL/pgSQL function looking like 'SELECT '
     219 The first variant (taking NODATA values into account) ST_ConvexHull(raster) could be roughly implemented with a SQL or PL/pgSQL function looking like 'SELECT ST_BuildArea(ST_ExteriorRing(ST_Shape(raster)))'
     220
     221 The second variant (not taking NODATA values into account) is
    219222
    220223'''ST_Shape(raster) -> polygon geometry''' - Returns a geometry encomparsing every pixel having a significant value (different than the NODATA value).