Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#6591 closed defect (fixed)

[PATCH] Fix BIP pixel offset in ROI_PAC driver

Reported by: mazhe Owned by: warmerdam
Priority: normal Milestone:
Component: GDAL_Raster Version: unspecified
Severity: normal Keywords: driver, roi_pac, interleave
Cc:

Description

Hello, I'm a bit ashamed that the ROI_PAC driver display the same BIP interleaving offset error as the ISCE driver.

Here's a patch inspired from the ISCE one to fix issue with valid and invalid files.

Sorry for the trouble, and thank you again for your work.

Attachments (1)

roipacdataset_fixbip.diff (3.8 KB ) - added by mazhe 8 years ago.
Fix BIP offset computation, take into account bad files

Download all attachments as: .zip

Change History (11)

by mazhe, 8 years ago

Attachment: roipacdataset_fixbip.diff added

Fix BIP offset computation, take into account bad files

comment:1 by mazhe, 8 years ago

I forgot to mention that the versions affected are 2.0.0 -> 2.0.3, 2.1.0, and 2.1.1RC. Can the corresponding branches get this patch?

Thanks again

comment:2 by Even Rouault, 8 years ago

Resolution: fixed
Status: newclosed

In 34638:

ROI_PAC: fix computation of line offset for multi-band BIP files, and warn if detecting a wrong file produced by GDAL >= 2.0.0 (patch by mahze, fixes #6591)

comment:3 by Even Rouault, 8 years ago

In 34639:

ROI_PAC: fix computation of line offset for multi-band BIP files, and warn if detecting a wrong file produced by GDAL >= 2.0.0 (patch by mahze, fixes #6591)

comment:4 by Even Rouault, 8 years ago

In 34640:

ROI_PAC: fix computation of line offset for multi-band BIP files, and warn if detecting a wrong file produced by GDAL >= 2.0.0 (patch by mahze, fixes #6591)

comment:5 by Even Rouault, 8 years ago

Applied in trunk, 2.1 branch (post 2.1.1RC2) and 2.0 branch (post 2.0.3RC2). I didn't apply the changes in the ISCE driver that were included in the patch.

comment:6 by Even Rouault, 8 years ago

(meaning: the ISCE changes should go to another ticket)

comment:7 by mazhe, 8 years ago

Sorry, I was not clear : the issue was actually fixed in ISCE, and the notification I got actually prompted me to investigate ROI_PAC as well.

Everything's good, thanks!

comment:8 by Even Rouault, 8 years ago

You are clear but if you look at roipacdataset_fixbip.diff you'll see it contains unrelated ISCE changes. Probably a work in progress of yours

comment:9 by mazhe, 8 years ago

Ho, you're right! Yes, you were right to ignore that part, it's really far from being complete. Thanks again.

comment:10 by Even Rouault, 8 years ago

Fix will be included in potential future 2.0.4 / 2.1.2

Note: See TracTickets for help on using tickets.