Opened 14 years ago
Closed 5 years ago
#3779 closed enhancement (wontfix)
MRSID driver's IRasterIO does not read from the correct overview
Reported by: | ozdemiray | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | closed_because_of_github_migration |
Component: | default | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: |
Description
For some images, while trying to read the full extent of the image into a buffer whose size is equal to one of the overviews, MRSID driver reads data from the previous overview an subsamples data.
For example the size of N-36-35_2000.sid file is 47637 x 39169 pixels and its 6th overview's resolution is 745 x 613. When we try to read the whole image into a 745 x 613 buffer, IRasterIO method chooses the 5th overview (whose size is 1489 x 1225) and subsamples the data. This is because the zoom magnitude (dfZoomMag) is 63.897226 for the 6th overview and the for loop in 810th line in mrsiddataset.cpp file (in v1.7.2) adds 0.1 to dfZoomMag before deciding which overview to read.
Change History (2)
comment:1 by , 9 years ago
comment:2 by , 5 years ago
Milestone: | → closed_because_of_github_migration |
---|---|
Resolution: | → wontfix |
Status: | new → closed |
This ticket has been automatically closed because Trac is no longer used for GDAL bug tracking, since the project has migrated to GitHub. If you believe this ticket is still valid, you may file it to https://github.com/OSGeo/gdal/issues if it is not already reported there.
Is there then an error in the logic that is used in trunk/gdal/frmts/mrsid/mrsiddataset.cpp?