Changes between Version 116 and Version 117 of WKTRaster/SpecificationWorking01


Ignore:
Timestamp:
Apr 1, 2010, 7:06:51 AM (14 years ago)
Author:
pracine
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • WKTRaster/SpecificationWorking01

    v116 v117  
    513513- Create a new WKT Raster in database (in-db/out-db, regular/irregular blocking)[[BR]]
    514514
     515----
     516== '''Objective 0.1.6h - Being able to set all the properties of a raster.''' ==
     517 
     518
     519'''ST_SetSRID(raster|geometry, integer)'''
     520 Set the spatial reference on the specified raster. This corresponds with the ST_SetSRID method in regular PostGIS.
     521
     522'''ST_SetPixelSize(raster, pixelsize)'''
     523 Variant 1: ST_SetPixelSize(raster, xsize, ysize)
     524
     525 ~~Variant 2: ST_SetPixelSize(raster, raster)~~
     526
     527 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.  ~~The second variant sets the pixel size to the pixel size of the 2nd raster parameter.~~
     528
     529 '''Open Question:'''
     530  DZ: Should there be corresponding methods for X/Y sizes?  ST_SetXPixelSize(...) and ST_SetYPixelSize(...)
     531    PR: In addition to ST_SetPixelSize(raster, xsize, ysize) or in replacement of?
     532      DZ: In addition to?[[BR]]
     533      PR: Maybe we are fine with ST_SetPixelSize(raster, xsize, ysize)...
     534
     535  PR: Could you provide a full SQL example of ST_SetPixelSize(raster, raster)? And in general of a function getting arguments for the first raster from another raster (like the below ST_Resample(raster, method, raster))
     536    DZ: A SQL example for this is in the regression tests in patch #431: test/regress/rt_set_properties.sql, line 52. I can come up with some more examples, if needed.
     537      DZ: After discussion, will drop the variant that copies the pixel size from a raster parameter.
     538
     539'''ST_SetNoDataValue(raster, band, value)'''
     540 Set the data value that corresponds to NODATA in the given raster and band.
     541
     542'''ST_HasNoDataValue(raster, band)'''
     543 Return true if the value stored as a NODATA value must be interpreted as a real NODATA value.
     544
     545'''ST_SetGeoReference(raster, georef)'''
     546 Variant 1: ST_SetGeoReference(raster, georef, format)
     547
     548 Set the georeference fields of the raster (pixel size, rotation, upper left location) all in one pass. The 'format' parameter is optional, and defaults to 'GDAL' georeference format if it is not specified.
     549
     550 If this method does not recieve a georeference string with 6 parameters (or if one of the parameters is not numeric), it raises an exception "st_setgeoreference requires a string with 6 floating point values". If this method recieves a null raster, it does nothing, and returns a null raster.
     551
     552'''ST_SetRotation(raster, rotation)'''
     553 Variant 1: ST_SetRotation(raster, rotationx, rotation y)
     554
     555 ~~Variant 2: ST_SetRotation(raster, raster)~~
     556
     557 Set the rotation of the raster. The base method sets the X and Y rotation to the same value. The first variant sets the rotation to the individually specified x and y rotations. ~~The second variant sets the rotation to the rotation taken from the 2nd raster parameter.~~
     558
     559 '''Open Question:'''
     560  DZ: Should there be corresponding methods for X/Y rotations in addition to this general method?  ST_SetXRotation(...) and ST_SetYRotation(...)?
     561    DZ: No, follow the pattern for ST_SetPixelSize
     562
     563'''ST_SetUpperLeft(raster, left, top)'''
     564 ~~Variant 1: ST_SetUpperLeft(raster, raster)~~
     565
     566 Set the location of the upper left pixel (cell). The base method sets the X and Y coordinates to the individually specified left and top coordinates.  ~~The first variant sets the upper left coordinate to the upper left coordinate taken from the 2nd raster parameter.~~
     567
     568 '''Open Question:'''
     569  DZ: Should there be corresponding methods for X/Y rotations in addition to this general method?  ST_SetUpperLeftX(...) and ST_SetUpperLeftY()?
     570    DZ: No, follow the pattern for ST_SetPixelSize
    515571----
    516572