Opened 15 years ago

Closed 15 years ago

Last modified 11 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 15 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)

by asgerpetersen, 15 years ago

Attachment: warped.jpg added

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

comment:1 by Even Rouault, 15 years ago

Owner: changed from warmerdam to Even Rouault
Status: newassigned

comment:2 by Even Rouault, 15 years ago

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 by asgerpetersen, 15 years ago

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

Thank you very much!

comment:4 by Even Rouault, 15 years ago

Milestone: 1.5.5
Resolution: fixed
Status: assignedclosed

ok. closing the ticket as fixed then.

comment:5 by Even Rouault, 11 years ago

Milestone: 1.5.5

Milestone 1.5.5 deleted

Note: See TracTickets for help on using tickets.