| 295 | == '''Objective 0.1.6f - Being able to set all the properties of a raster.''' == |
| 296 | |
| 297 | |
| 298 | '''ST_SetSRID(raster, integer)''' |
| 299 | Set the spatial reference on the specified raster. This is the same as the ST_SetSRID function working on geometries. |
| 300 | |
| 301 | '''ST_SetPixelSize(raster, pixelsize)''' |
| 302 | |
| 303 | Variant 1: ST_SetPixelSize(raster, xsize, ysize) |
| 304 | |
| 305 | 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. |
| 306 | |
| 307 | '''ST_SetBandNoDataValue(raster, band, value)''' |
| 308 | |
| 309 | Set the value that corresponds to NODATA in the given raster's band. |
| 310 | |
| 311 | '''ST_BandHasNoDataValue(raster, band)''' |
| 312 | |
| 313 | Return true if the value stored as a NODATA value for the band must be interpreted as a real NODATA value. |
| 314 | |
| 315 | '''ST_SetBandHasNoDataValue(raster, band)''' |
| 316 | |
| 317 | Set the band NODATA value as a real NODATA value. |
| 318 | |
| 319 | '''ST_SetGeoReference(raster, georef)''' |
| 320 | |
| 321 | Variant 1: ST_SetGeoReference(raster, georef, format) |
| 322 | |
| 323 | 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. |
| 324 | |
| 325 | If this function does not receive 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 receives a NULL raster, it does nothing, and returns a NULL raster. |
| 326 | |
| 327 | '''ST_SetSkew(raster, skewx, skewy)''' |
| 328 | |
| 329 | Variant 1: ST_SetSkew(raster, skew) |
| 330 | |
| 331 | Set the skewx and the skewy of the raster's georeference. Variant 1 sets the X and Y skew to the same value. |
| 332 | |
| 333 | '''ST_SetUpperLeft(raster, left, top)''' |
| 334 | |
| 335 | 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. |
| 336 | |
| 337 | ---- |
| 338 | |