Ticket #1609 (closed enhancement: wontfix)

Opened 16 months ago

Last modified 7 months ago

[raster] Implement ST_Merge for ST_Union

Reported by: pracine Owned by: pracine
Priority: medium Milestone: PostGIS 2.1.0
Component: raster Version: trunk
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

Changed 16 months ago by pracine

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.

Changed 7 months ago by pracine

Do we still need this since now we have a fast C ST_Union?

Changed 7 months ago by dustymugs

  • status changed from new to closed
  • resolution set to wontfix

We might as close this as ST_Union does this. Probably a solution looking for a problem...

Note: See TracTickets for help on using tickets.