Opened 13 years ago
Closed 12 years ago
#1609 closed enhancement (wontfix)
[raster] Implement ST_Merge for ST_Union
Reported by: | pracine | Owned by: | pracine |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 2.1.0 |
Component: | raster | Version: | master |
Keywords: | Cc: |
Description
Tentative signature:
ST_Merge(raster1, band1, raster2, band2, nodataval, pixeltype)
Merge two rasters together by unioning their extent and burning the last raster without taking the other raster pixel values into account. Works on multiple bands. The nodata value, when specified, replace the existing nodata values. SRIDs must be the same for the two rasters.
The goal of this function is to be used by ST_union when unioning rasters with the 'LAST' option.
It could be first easily implemented as a wrapper around ST_MapAlgebra. Ideally it should be a C function that we could actually use to optimize the two rasters ST_MapAlgebra in certain situations (when extentype is INTERSECTION and the expression is 'RAST2' and there is no alternative expressions).
Change History (3)
comment:1 by , 13 years ago
comment:3 by , 12 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
We might as close this as ST_Union does this. Probably a solution looking for a problem…
We could make it internal for 2.0.1 to optimize ST_MapAlgebra and publish it as a function in 2.1.0 for ST_Union.