| 56 | == '''Objective 0.1.6d - Being able to get all the properties of a raster (all the “Get” functions).''' == |
| 57 | |
| 58 | '''RT_SRID(raster|geometry) -> integer'''[[BR]] |
| 59 | Return the SRID associated with the raster. |
| 60 | |
| 61 | '''RT_Width(raster) -> integer'''[[BR]] |
| 62 | Return the width of the raster. |
| 63 | |
| 64 | '''RT_Height(raster) -> integer'''[[BR]] |
| 65 | Return the height of the raster. |
| 66 | |
| 67 | '''RT_PixelSizeX(raster) -> float64'''[[BR]] |
| 68 | Return the georeference's X pixel size of the raster. [http://en.wikipedia.org/wiki/World_file See]. |
| 69 | |
| 70 | '''RT_PixelSizeY(raster) -> float64'''[[BR]] |
| 71 | Return the georeference's Y pixel size of the raster. [http://en.wikipedia.org/wiki/World_file See]. |
| 72 | |
| 73 | '''RT_RotationX(raster) -> float64'''[[BR]] |
| 74 | Return the georeference's X rotation. |
| 75 | |
| 76 | '''RT_RotationY(raster) -> float64'''[[BR]] |
| 77 | Return the georeference's Y rotation. [http://en.wikipedia.org/wiki/World_file See]. |
| 78 | |
| 79 | '''RT_UpperLeftX(raster) -> float64'''[[BR]] |
| 80 | Return the georeference's X-coordinate of the center of the upper left pixel. [http://en.wikipedia.org/wiki/World_file See]. |
| 81 | |
| 82 | '''RT_UpperLeftY(raster) -> float64'''[[BR]] |
| 83 | Return the georeference's Y-coordinate of the center of the upper left pixel. [http://en.wikipedia.org/wiki/World_file See]. |
| 84 | |
| 85 | '''RT_GeoReference(raster) -> string'''[[BR]] |
| 86 | Return the georeference of the raster as a string representing the 6 doubles of an equivalent world file (including the carriage return). [http://en.wikipedia.org/wiki/World_file See]. |
| 87 | |
| 88 | '''RT_NumBands(raster) -> integer'''[[BR]] |
| 89 | Return the number of band included in the raster. |
| 90 | |
| 91 | '''RT_BandPixelType(raster, integer) -> string'''[[BR]] |
| 92 | Return the pixel type of the specified 1-based Nth band of raster. Band index is 1-based. The function returns one of the following values: |
| 93 | * '''1BB''' - 1-bit boolean |
| 94 | * '''2BUI''' - 2-bit unsigned integer |
| 95 | * '''4BUI''' - 4-bit unsigned integer |
| 96 | * '''8BSI''' - 8-bit signed integer |
| 97 | * '''8BUI''' - 8-bit unsigned integer |
| 98 | * '''16BSI''' - 16-bit signed integer |
| 99 | * '''16BUI''' - 16-bit unsigned integer |
| 100 | * '''32BSI''' - 32-bit signed integer |
| 101 | * '''32BUI''' - 32-bit unsigned integer |
| 102 | * '''16BF''' - 16-bit float |
| 103 | * '''32BF''' - 32-bit float |
| 104 | * '''64BF''' - 64-bit float |
| 105 | |
| 106 | '''RT_BandNoDataValue(raster, integer) -> float32'''[[BR]] |
| 107 | Return the !NoDataValue of the specified 1-based Nth band of raster. Band index is 1-based. The value is always returned as a float32 even if the pixel type is integer. |
| 108 | |
| 109 | ---- |