Changes between Version 37 and Version 38 of WKTRaster/SpecificationFinal01


Ignore:
Timestamp:
08/27/10 14:29:10 (14 years ago)
Author:
pracine
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WKTRaster/SpecificationFinal01

    v37 v38  
    156156 This polygon geometry might contain holes if some internal areas of the raster contain pixels with NODATA values.
    157157
    158  Variant 1: ST_Polygon(raster) -> polygon geometry -- default to band # 1
     158 '''Variants'''
     159
     160  1) ST_Polygon(raster, integer) -> polygon geometry
     161  2) ST_Polygon(raster) -> polygon geometry -- default to band # 1
    159162
    160163 '''Implementation details'''
     
    171174
    172175  1) ST_DumpAsPolygons(raster, integer) -> geomval set
    173 
    174176  2) ST_DumpAsPolygons(raster) -> geomval set -- default to band # 1
    175177
     
    214216 '''Variants'''
    215217
    216  1) ST_Intersects(geometry, raster, integer) -> boolean -- the third parameter is the raster band number
    217 
    218  2) ST_Intersects(geometry, raster) -> boolean -- default to band # 1
    219  
    220  3) ST_Intersects(raster, geometry) -> boolean -- default to band # 1
     218  1) ST_Intersects(geometry, raster, integer) -> boolean -- the third parameter is the raster band number
     219  2) ST_Intersects(geometry, raster) -> boolean -- default to band # 1
     220  3) ST_Intersects(raster, geometry) -> boolean -- default to band # 1
    221221
    222222 This function permform a full intersection test and proceed in three steps to determine if the raster intersects with the geometry:
     
    244244'''ST_Intersection(raster, integer, geometry) -> geometry''' - Returns a set of "geomval" value representing the shared portion of the geometry and the raster band areas sharing a common meaningfull values. The integer parameter is the band number of the raster.
    245245
    246  Variants:
     246 '''Variants'''
    247247
    248248  1) ST_Intersection(raster, geometry) -> geometry -- default to band # 1[[BR]]
     
    269269 This function should be implemented as a pl/pgSQL function (possibly only a SQL function) performing the intersection between the provided geometry and the table generated by ST_DumpAsPolygons(raster).
    270270
    271  Priority 1 should be given to the raster/geometry variants (original and variant 1) returning a geometry.
    272 
    273  Priority 2 should be given to the raster/raster variants (5) returning a geometry.
    274 
    275  Priority 3 should be given to the other variants (2, 3 & 4) returning a raster. Variant 2 & 3 should be implemented after the planned ST_AsRaster(geometry) function. What should be the raster result of the intersection of two rasters is still to be specified.
    276 
    277271----
    278272== '''Objective 0.1.6f - Being able to set all the properties of a raster.''' ==
     
    284278'''ST_SetPixelSize(raster, pixelsize)'''
    285279
    286  Variant 1: ST_SetPixelSize(raster, xsize, ysize)
    287 
    288  Set the pixel size (cell size) on the specified raster. The base method sets the X and Y pixel size to the same value. The first variant sets the pixel sizes to the individually specified x and y sizes.
     280 '''Variants'''
     281
     282  1) ST_SetSRID(raster, integer)
     283  2) ST_SetPixelSize(raster, xsize, ysize)
     284
     285 Set the pixel size (cell size) on the specified raster. The base method sets the X and Y pixel size to the same value. Variant 2 sets the pixel sizes to the individually specified x and y sizes.
    289286
    290287'''ST_SetBandNoDataValue(raster, band, value)'''
     
    302299'''ST_SetGeoReference(raster, georef)'''
    303300
    304  Variant 1: ST_SetGeoReference(raster, georef, format)
     301 '''Variants'''
     302
     303  1) ST_SetGeoReference(raster, georef, format)
     304  2) ST_SetGeoReference(raster, georef)
    305305
    306306 Set the georeference fields of the raster (pixel size, skew, upper left location) all in one pass. The 'format' parameter is optional, and defaults to 'GDAL' georeference format if it is not specified.
     
    310310'''ST_SetSkew(raster, skewx, skewy)'''
    311311
    312  Variant 1: ST_SetSkew(raster, skew)
    313 
    314  Set the skewx and the skewy of the raster's georeference. Variant 1 sets the X and Y skew to the same value.
     312 Variants
     313
     314  1) ST_SetSkew(raster, skewx, skewy)
     315  2) ST_SetSkew(raster, skew)
     316
     317 Set the skewx and the skewy of the raster's georeference. Variant 2 sets the X and Y skew to the same value.
    315318
    316319'''ST_SetUpperLeft(raster, left, top)'''