Changes between Version 24 and Version 25 of WKTRaster/SpecificationWorking02
- Timestamp:
- 09/03/10 14:22:07 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WKTRaster/SpecificationWorking02
v24 v25 31 31 Returns TRUE if the raster width or the raster height is 0. 32 32 33 '''ST_HasNoBand(rast, band) -> boolean''' 33 '''ST_HasNoBand''' 34 35 '''Variants''' 36 37 1) ST_HasNoBand(rast, band) -> boolean 38 39 2) ST_HasNoBand(rast) -> boolean 34 40 35 41 Returns TRUE if the the raster does not have this band. 36 42 43 Variant 2 returns TRUE if the the raster does not have any band. 44 45 '''ST_BandIsNoData''' 46 37 47 '''Variants''' 38 48 39 1) ST_ HasNoBand(rast) -> boolean49 1) ST_BandIsNoData(rast, band) -> boolean 40 50 41 Variant 1 returns TRUE if the the raster does not have any band. 42 43 '''ST_BandIsNoData(rast, band) -> boolean''' 51 2) ST_BandIsNoData(rast) -> boolean 44 52 45 53 Returns TRUE if the specified raster band is only filled with no data value. 46 54 47 '''Variants''' 48 49 1) ST_BandIsNoData(rast) -> boolean 50 51 Variant 1 default to band 1. 55 Variant 2 default to band 1. 52 56 53 57 '''Implementation details''' … … 60 64 '''ST_Clip''' 61 65 66 Returns the subset of a raster as a raster. 67 68 All metadata are copied from the source raster (except ulx, uly, width and height which must be computed). 69 62 70 '''Variants''' 63 71 … … 68 76 3) ST_Clip(raster, geometry, 'EXACT') -> raster 69 77 70 Returns the subset of a raster as a raster.71 78 72 All metadata are copied from the source raster (except ulx, uly, width and height which must be computed).73 79 74 80 Variant 1) takes the upper left and lower left corner of the desired zone. Variant 2) determine the extent of this zone from the extent of a geometry. Variant 3) determine the extent of this zone from the extent of a geometry and set all pixel outside the geometry to no data values. … … 80 86 Implemented as a wrapper around ST_MapAlgebra. 81 87 82 newrast := ST_AddBand(ST_MakeEmptyRaster(x2 - x1, y2 - y1, 83 ST_Raster2WorldCoordX(rast, x1, y2), 84 ST_Raster2WorldCoordY(rast, x1, y2), 85 ST_PixelSizeX(rast), 86 ST_PixelSizeY(rast), 87 ST_SkewX(rast), 88 ST_SkewY(rast), 89 ST_SRID(rast)), ‘1BB’, 1, 0) 88 newrast := ST_AddBand(ST_MakeEmptyRaster(x2 - x1, y2 - y1, ST_Raster2WorldCoordX(rast, x1, y2), ST_Raster2WorldCoordY(rast, x1, y2), ST_PixelSizeX(rast), ST_PixelSizeY(rast),ST_SkewX(rast),ST_SkewY(rast), ST_SRID(rast)), ‘1BB’, 1, 0) 90 89 newrast := ST_MultiBandMapAlgebra(rast, newrast, ‘r1’, ‘INTERSECTION’) 91 90