Changes between Version 94 and Version 95 of WKTRaster/SpecificationWorking03
- Timestamp:
- 05/30/11 08:20:11 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WKTRaster/SpecificationWorking03
v94 v95 855 855 856 856 857 '''ST_Union(raster|geometry, raster|geometry, ¿raster¿|¿geometry¿) -> raster/geometry'''[[BR]]858 '''ST_Accum(raster set|geometry set, ¿raster¿|¿geometry¿) -> raster/geometry'''857 '''ST_Union(raster|geometry, raster|geometry, 'raster'|'geometry') -> raster/geometry'''[[BR]] 858 '''ST_Accum(raster set|geometry set, 'raster'|'geometry') -> raster/geometry''' 859 859 860 860 … … 1318 1318 The 3rd or 3rd-6th parameters define the pixel size of the resampling operation. For the 3rd parameter variant, the pixel size is taken from the pixel size of the raster parameter. For the 3rd-6th parameter variant, the pixel origin and dimensions are explicitly defined. 1319 1319 1320 '''ST_SelectByValue(raster|geometry, ¿expression¿) -> same type as first argument'''[[BR]]1320 '''ST_SelectByValue(raster|geometry, 'expression') -> same type as first argument'''[[BR]] 1321 1321 ~~'''ST_Reclass(raster|geometry,string) -> same type as first argument'''[[BR]]~~ 1322 1322 1323 1323 ~~Bborie: Implementation has been moved to FV.01 above.~~ 1324 1324 1325 '''ST_MapAlgebra(raster|geometry, [raster|geometry, ¿] ¿mathematical expression¿, ¿raster¿ |¿geometry¿) -> raster/geometry'''1326 1327 Variant 1: ST_MapAlgebra(raster|geometry, [raster|geometry, ¿] ¿mathematical expression¿, ¿raster¿ |¿geometry¿, originx, originy, pixelsizex, pixelsizey) -> raster/geometry1328 1329 Variant 2: ST_MapAlgebra(raster|geometry, [raster|geometry, ¿] 'mathematical expression', 'raster' |'geometry', integer) ->raster/geometry1330 1331 Variant 3: ST_MapAlgebra(raster|geometry, [raster|geometry, ¿] 'mathematical expression', 'raster' |'geometry', raster) ->raster/geometry1325 '''ST_MapAlgebra(raster|geometry, [raster|geometry, ...] 'mathematical expression', 'raster' |'geometry') -> raster/geometry''' 1326 1327 Variant 1: ST_MapAlgebra(raster|geometry, [raster|geometry, ...] 'mathematical expression', 'raster' |'geometry', originx, originy, pixelsizex, pixelsizey) -> raster/geometry 1328 1329 Variant 2: ST_MapAlgebra(raster|geometry, [raster|geometry, ...] 'mathematical expression', 'raster' |'geometry', integer) ->raster/geometry 1330 1331 Variant 3: ST_MapAlgebra(raster|geometry, [raster|geometry, ...] 'mathematical expression', 'raster' |'geometry', raster) ->raster/geometry 1332 1332 1333 1333 ST_MapAlgebra performs the specified mathematical expression on the input rasters, returning a raster or geometry. Both rasters must have the same SRID. If both rasters do not have the same SRID, ST_MapAlgebra will return an error: … … 1339 1339 4 additional parameters are passed specifying the origin, cell size, and raster rotation. 1340 1340 1341 This function implicitly calls ST_Intersects(raster|geometry, [raster|geometry, ¿]) to detect if the rasters are overlapping before performing any computation. Additionally, the resulting raster will have the same extent as the result of ST_Intersection(raster, integer, geometry).1341 This function implicitly calls ST_Intersects(raster|geometry, [raster|geometry, ...]) to detect if the rasters are overlapping before performing any computation. Additionally, the resulting raster will have the same extent as the result of ST_Intersection(raster, integer, geometry). 1342 1342 1343 1343 One of the implications of the ST_Intersects inclusion is that: … … 1348 1348 '''Open Question:''' 1349 1349 DZ: Should ST_MapAlgebra resample rasters internally, or produce a raster that can be processed by ST_Resample? If so, variant 1 and variant 3 can be removed, and all ST_MapAlgebra results can be processed through ST_Resample, like: 1350 ST_Resample(ST_MapAlgebra(raster, [raster, ¿] 'mathematical expression', integer), originx, originy, pixelsizex, pixelsizey)[[BR]]1351 ST_Resample(ST_MapAlgebra(raster, [raster, ¿] 'mathematical expression', integer), rastergrid)1350 ST_Resample(ST_MapAlgebra(raster, [raster, ...] 'mathematical expression', integer), originx, originy, pixelsizex, pixelsizey)[[BR]] 1351 ST_Resample(ST_MapAlgebra(raster, [raster, ...] 'mathematical expression', integer), rastergrid) 1352 1352 PR: I think this would greatly contribute to simplify the API. 1353 1353 1354 1354 '''ST_Clip(raster|geometry,geometry) -> same type as first argument'''[[BR]] 1355 '''ST_Flip(raster|geometry, ¿vertical¿|¿horizontal¿) -> same type as first argument'''1355 '''ST_Flip(raster|geometry, 'vertical'|'horizontal') -> same type as first argument''' 1356 1356 1357 1357 ---- … … 1392 1392 '''ST_Buffer(raster|geometry, double) -> same type as first arg.'''[[BR]] 1393 1393 '''ST_Difference(raster|geometry A, raster|geometry B) -> same type as first argument'''[[BR]] 1394 '''ST_SymDifference(raster|geometry,raster|geometry, ¿raster¿|¿geometry¿) -> raster/geometry'''1394 '''ST_SymDifference(raster|geometry,raster|geometry,'raster'|'geometry') -> raster/geometry''' 1395 1395 1396 1396 ---- … … 1409 1409 == '''Objective FV.13 - Being able to edit a raster''' == 1410 1410 1411 '''ST_Affine(raster|geometry, ¿) -> same type as input'''[[BR]]1412 '''ST_Translate(raster|geometry, ¿) -> same type as input'''[[BR]]1413 '''ST_Scale(raster|geometry, ¿) -> same type as input'''[[BR]]1414 '''ST_TransScale(raster|geometry, ¿) -> same type as input'''[[BR]]1411 '''ST_Affine(raster|geometry, ...) -> same type as input'''[[BR]] 1412 '''ST_Translate(raster|geometry, ...) -> same type as input'''[[BR]] 1413 '''ST_Scale(raster|geometry, ...) -> same type as input'''[[BR]] 1414 '''ST_TransScale(raster|geometry, ...) -> same type as input'''[[BR]] 1415 1415 '''ST_RotateZ,Y,Z(raster|geometry, float8) -> same type as input''' 1416 1416