Opened 13 years ago

Closed 13 years ago

Last modified 8 years ago

#2867 closed defect (fixed)

Blocks of data missing when warping cascaded vrt

Reported by: asgerpetersen Owned by: Even Rouault
Priority: normal Milestone:
Component: default Version: unspecified
Severity: normal Keywords:
Cc:

Description

I have a setup for warping tiles in one crs into tiles in another crs like:

foreach SourceFile.tif 
{
  gdal_translate -of vrt SourceFile.tif SourceFile.vrt
}

gdalbuildvrt SourceMosaic.vrt SourceFile*.vrt

foreach outputtile
{
  gdalwarp -te tilebounds -s_srs srcsrs -t_srs dstsrs  SourceMosaic.vrt outputtile.tif 
}

This produces results as in the attached 'warped.jpg'.

The following setup, however, works as expected:

gdalbuildvrt SourceMosaic.vrt SourceFile*.tif

foreach outputtile
{
  gdalwarp -te tilebounds -s_srs srcsrs -t_srs dstsrs  SourceMosaic.vrt outputtile.tif 
}

So it seems as if warping cascaded vrts is not working.

Attachments (1)

warped.jpg (71.6 KB) - added by asgerpetersen 13 years ago.
VRT mosaic of VRTs warped into another crs. (Result should have been one rotated tile)

Download all attachments as: .zip

Change History (6)

Changed 13 years ago by asgerpetersen

Attachment: warped.jpg added

VRT mosaic of VRTs warped into another crs. (Result should have been one rotated tile)

comment:1 Changed 13 years ago by Even Rouault

Owner: changed from warmerdam to Even Rouault
Status: newassigned

comment:2 Changed 13 years ago by Even Rouault

I *believe* I've hit the same issue you're running into by just displaying with OpenEV a VRT made of 2 VRTs side-to-side. (The cascaded VRT is easy way of showing the issue, but it could have been seen in other circumstances too)

I've fixed the issue for my test case in trunk (r16475), branches/1.6 (r16476) and branches/1.5 (r16477). I've also added a test case in r16478.

If you can build from source, could you test one of those branches and check that it fixes the issue you're observing ?

comment:3 Changed 13 years ago by asgerpetersen

I have built r16479 and it seems to have solved the problem.

Thank you very much!

comment:4 Changed 13 years ago by Even Rouault

Milestone: 1.5.5
Resolution: fixed
Status: assignedclosed

ok. closing the ticket as fixed then.

comment:5 Changed 8 years ago by Even Rouault

Milestone: 1.5.5

Milestone 1.5.5 deleted

Note: See TracTickets for help on using tickets.