Opened 2 years ago

Closed 2 years ago

#6182 closed defect (fixed)

GDALWarpOperation::ComputeSourceWindow() sometimes returns whole image window whereas it should return empty

Reported by: Even Rouault Owned by: Even Rouault
Priority: normal Milestone: 2.0.2
Component: Algorithms Version: unspecified
Severity: normal Keywords: warp rpc resampling
Cc: warmerdam

Description

In some warp circumstances, for example with RPC, when ComputeSourceWindow?() is called on a target area where the RPC is no longer valid, the computed source window can be very off the [0,0]x[width,height] valid area. For example, only negative big X values. However, when using a resampling kernel such as cubic, this can cause a very big value of nResWinSize radius to be computed, for example much larger than the raster dimensions. So the computed window taking into account this nResWinSize radius covers the whole raster, whereas the "raw" window not taking into account the radius of the resampling kernel is completely off. Which can lead to enormous processing time due to big I/O being done for nothing.

Change History (1)

comment:1 Changed 2 years ago by Even Rouault

Milestone: 2.0.2
Resolution: fixed
Status: newclosed

trunk r31176, branches/2.0 r31177 "Warp: avoid really excessive processing time for some warping with target areas completely off the source raster (especially when involving RPC) (#6182)"

Note: See TracTickets for help on using tickets.