Changes between Version 37 and Version 38 of WKTRaster/SpecificationFinal01
- Timestamp:
- 08/27/10 14:29:10 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WKTRaster/SpecificationFinal01
v37 v38 156 156 This polygon geometry might contain holes if some internal areas of the raster contain pixels with NODATA values. 157 157 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 159 162 160 163 '''Implementation details''' … … 171 174 172 175 1) ST_DumpAsPolygons(raster, integer) -> geomval set 173 174 176 2) ST_DumpAsPolygons(raster) -> geomval set -- default to band # 1 175 177 … … 214 216 '''Variants''' 215 217 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 221 221 222 222 This function permform a full intersection test and proceed in three steps to determine if the raster intersects with the geometry: … … 244 244 '''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. 245 245 246 Variants:246 '''Variants''' 247 247 248 248 1) ST_Intersection(raster, geometry) -> geometry -- default to band # 1[[BR]] … … 269 269 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). 270 270 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 277 271 ---- 278 272 == '''Objective 0.1.6f - Being able to set all the properties of a raster.''' == … … 284 278 '''ST_SetPixelSize(raster, pixelsize)''' 285 279 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. 289 286 290 287 '''ST_SetBandNoDataValue(raster, band, value)''' … … 302 299 '''ST_SetGeoReference(raster, georef)''' 303 300 304 Variant 1: ST_SetGeoReference(raster, georef, format) 301 '''Variants''' 302 303 1) ST_SetGeoReference(raster, georef, format) 304 2) ST_SetGeoReference(raster, georef) 305 305 306 306 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. … … 310 310 '''ST_SetSkew(raster, skewx, skewy)''' 311 311 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. 315 318 316 319 '''ST_SetUpperLeft(raster, left, top)'''