Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slow image load visualization for tfw with rotation parameters #13520

Closed
qgib opened this issue Feb 1, 2011 · 10 comments
Closed

slow image load visualization for tfw with rotation parameters #13520

qgib opened this issue Feb 1, 2011 · 10 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Projections/Transformations Related to coordinate reference systems or coordinate transformation

Comments

@qgib
Copy link
Contributor

qgib commented Feb 1, 2011

Author Name: Luca Lanteri (Luca Lanteri)
Original Redmine Issue: 3460
Affected QGIS version: master
Redmine category:projection_support


When I try to load or visualize raster ortophoto with rotation parameter in the header file (tfw) qgis is freezing for 40-50 sec. I have to wait the same time for every pan/refresh operation.
If the rotation parameters is set to zero the image is loaded just in few second.
The same raster (with rotation parameters) works fine with others GIS application, as udig for example.
The italian list suggest me to open a ticket.
I attach a jpg version of the image to limit the size

This is the [[GeoTIFF]] info:

Driver: GTiff/GeoTIFF
Files: 0021_00211001_rgb.tif
Size is 7680, 13824
Coordinate System is:
PROJCS["WGS 84 / UTM zone 32N",
    GEOGCS["WGS 84",
        DATUM["WGS_1984",
            SPHEROID["WGS 84",6378137,298.257223563,
                AUTHORITY[[EPSG""7030]],
            AUTHORITY[[EPSG""6326]],
        PRIMEM[[Greenwich]],
        UNIT[[degree]],
        AUTHORITY[[EPSG""4326]],
    PROJECTION[[Transverse_Mercator]],
    PARAMETER[[latitude_of_origin]],
    PARAMETER[[central_meridian]],
    PARAMETER[[scale_factor]],
    PARAMETER[[false_easting]],
    PARAMETER[[false_northing]],
    UNIT["metre",1,
        AUTHORITY[[EPSG""9001]],
    AUTHORITY[[EPSG""32632]]
[[GeoTransform]] =
  32339334.7755, 0.249, 0.018
  5003594.055500001, 0.018, -0.249
Metadata:
  EXIF_BitsPerSample=16 16 16
  EXIF_Compression=1
  EXIF_PhotometricInterpretation=2
  EXIF_Orientation=1
  EXIF_SamplesPerPixel=3
  EXIF_XResolution=(833.333)
  EXIF_YResolution=(833.333)
  EXIF_PlanarConfiguration=1
  EXIF_ResolutionUnit=3
  EXIF_Software=Adobe Photoshop CS2 Windows
  EXIF_DateTime=2008:10:16 08:59:35
  EXIF_ColorSpace=65535
  EXIF_PixelXDimension=7680
  EXIF_PixelYDimension=13824
  AREA_OR_POINT=Area
Image Structure Metadata:
  COMPRESSION=DEFLATE
  INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  (32339334.776, 5003594.056) (129d24'8.65"W,Invalid angle)
Lower Left  (32339583.608, 5000151.880) ( 78d11'7.42"W,Invalid angle)
Upper Right (32341247.096, 5003732.296) ( 68d14'50.72"W,Invalid angle)
Lower Right (32341495.928, 5000290.120) (  6d30'39.61"W,Invalid angle)
Center      (32340415.352, 5001942.088) (120d44'35.31"E,Invalid angle)
Band 1 Block=256x256 Type=Byte, [[ColorInterp]]=Red
  Overviews: 3840x6912, 1920x3456, 960x1728, 480x864
Band 2 Block=256x256 Type=Byte, [[ColorInterp]]=Green
  Overviews: 3840x6912, 1920x3456, 960x1728, 480x864
Band 3 Block=256x256 Type=Byte, [[ColorInterp]]=Blue
  Overviews: 3840x6912, 1920x3456, 960x1728, 480x864


@qgib
Copy link
Contributor Author

qgib commented Dec 16, 2011

Author Name: Giovanni Manghi (@gioman)


  • fixed_version_id was changed from Version 1.7.0 to Version 1.7.4

@qgib
Copy link
Contributor Author

qgib commented Apr 16, 2012

Author Name: Paolo Cavallini (@pcav)


  • fixed_version_id was changed from Version 1.7.4 to Version 1.8.0
  • version was configured as master
  • crashes_corrupts_data was configured as 0

@qgib
Copy link
Contributor Author

qgib commented Sep 4, 2012

Author Name: Paolo Cavallini (@pcav)


  • fixed_version_id was changed from Version 1.8.0 to Version 2.0.0

@qgib
Copy link
Contributor Author

qgib commented Apr 28, 2013

Author Name: **Novarese  ** (Novarese  )


Moreover, if the second row of the worldfile is negative, then Qgis gets frozen: check the attachment out.

The issue occurs upon loading "lossy" compressed rasters like JPEG and PNG, while all's right with lossless formats as TIF/BMP/GIF.


  • 5626 was configured as bug_3460.zip
  • assigned_to_id removed nobody

@qgib
Copy link
Contributor Author

qgib commented Apr 28, 2013

Author Name: Jürgen Fischer (@jef-n)


  • pull_request_patch_supplied was configured as 0

@qgib
Copy link
Contributor Author

qgib commented Jun 28, 2014

Author Name: Jürgen Fischer (@jef-n)


  • fixed_version_id was changed from Version 2.0.0 to Future Release - Lower Priority

@qgib
Copy link
Contributor Author

qgib commented Jul 12, 2015

Author Name: Nyall Dawson (@nyalldawson)


More info in #13852

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2017

Author Name: Giovanni Manghi (@gioman)


  • regression was configured as 0
  • easy_fix was configured as 0

@qgib
Copy link
Contributor Author

qgib commented Feb 24, 2018

Author Name: Luca Lanteri (Luca Lanteri)


Checked on QGIS 3.0 & QGIS 2.18.16 and all works fine.


  • status_id was changed from Open to Closed

@qgib qgib closed this as completed Feb 24, 2018
@qgib
Copy link
Contributor Author

qgib commented Feb 25, 2018

Author Name: Giovanni Manghi (@gioman)


  • description was changed from When I try to load or visualize raster ortophoto with rotation parameter in the header file (tfw) qgis is freezing for 40-50 sec. I have to wait the same time for every pan/refresh operation.
    If the rotation parameters is set to zero the image is loaded just in few second.
    The same raster (with rotation parameters) works fine with others GIS application, as udig for example.
    The italian list suggest me to open a ticket.
    I attach a jpg version of the image to limit the size

This is the [[GeoTIFF]] info:

Driver: GTiff/GeoTIFF
Files: 0021_00211001_rgb.tif
Size is 7680, 13824
Coordinate System is:
PROJCS["WGS 84 / UTM zone 32N",
    GEOGCS["WGS 84",
        DATUM["WGS_1984",
            SPHEROID["WGS 84",6378137,298.257223563,
                AUTHORITY[[EPSG""7030]],
            AUTHORITY[[EPSG""6326]],
        PRIMEM[[Greenwich]],
        UNIT[[degree]],
        AUTHORITY[[EPSG""4326]],
    PROJECTION[[Transverse_Mercator]],
    PARAMETER[[latitude_of_origin]],
    PARAMETER[[central_meridian]],
    PARAMETER[[scale_factor]],
    PARAMETER[[false_easting]],
    PARAMETER[[false_northing]],
    UNIT["metre",1,
        AUTHORITY[[EPSG""9001]],
    AUTHORITY[[EPSG""32632]]
[[GeoTransform]] =
  32339334.7755, 0.249, 0.018
  5003594.055500001, 0.018, -0.249
Metadata:
  EXIF_BitsPerSample=16 16 16
  EXIF_Compression=1
  EXIF_PhotometricInterpretation=2
  EXIF_Orientation=1
  EXIF_SamplesPerPixel=3
  EXIF_XResolution=(833.333)
  EXIF_YResolution=(833.333)
  EXIF_PlanarConfiguration=1
  EXIF_ResolutionUnit=3
  EXIF_Software=Adobe Photoshop CS2 Windows
  EXIF_DateTime=2008:10:16 08:59:35
  EXIF_ColorSpace=65535
  EXIF_PixelXDimension=7680
  EXIF_PixelYDimension=13824
  AREA_OR_POINT=Area
Image Structure Metadata:
  COMPRESSION=DEFLATE
  INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  (32339334.776, 5003594.056) (129d24'8.65"W,Invalid angle)
Lower Left  (32339583.608, 5000151.880) ( 78d11'7.42"W,Invalid angle)
Upper Right (32341247.096, 5003732.296) ( 68d14'50.72"W,Invalid angle)
Lower Right (32341495.928, 5000290.120) (  6d30'39.61"W,Invalid angle)
Center      (32340415.352, 5001942.088) (120d44'35.31"E,Invalid angle)
Band 1 Block=256x256 Type=Byte, [[ColorInterp]]=Red
  Overviews: 3840x6912, 1920x3456, 960x1728, 480x864
Band 2 Block=256x256 Type=Byte, [[ColorInterp]]=Green
  Overviews: 3840x6912, 1920x3456, 960x1728, 480x864
Band 3 Block=256x256 Type=Byte, [[ColorInterp]]=Blue
  Overviews: 3840x6912, 1920x3456, 960x1728, 480x864

to When I try to load or visualize raster ortophoto with rotation parameter in the header file (tfw) qgis is freezing for 40-50 sec. I have to wait the same time for every pan/refresh operation.
If the rotation parameters is set to zero the image is loaded just in few second.
The same raster (with rotation parameters) works fine with others GIS application, as udig for example.
The italian list suggest me to open a ticket.
I attach a jpg version of the image to limit the size

This is the [[GeoTIFF]] info:

Driver: GTiff/GeoTIFF
Files: 0021_00211001_rgb.tif
Size is 7680, 13824
Coordinate System is:
PROJCS["WGS 84 / UTM zone 32N",
    GEOGCS["WGS 84",
        DATUM["WGS_1984",
            SPHEROID["WGS 84",6378137,298.257223563,
                AUTHORITY[[EPSG""7030]],
            AUTHORITY[[EPSG""6326]],
        PRIMEM[[Greenwich]],
        UNIT[[degree]],
        AUTHORITY[[EPSG""4326]],
    PROJECTION[[Transverse_Mercator]],
    PARAMETER[[latitude_of_origin]],
    PARAMETER[[central_meridian]],
    PARAMETER[[scale_factor]],
    PARAMETER[[false_easting]],
    PARAMETER[[false_northing]],
    UNIT["metre",1,
        AUTHORITY[[EPSG""9001]],
    AUTHORITY[[EPSG""32632]]
[[GeoTransform]] =
  32339334.7755, 0.249, 0.018
  5003594.055500001, 0.018, -0.249
Metadata:
  EXIF_BitsPerSample=16 16 16
  EXIF_Compression=1
  EXIF_PhotometricInterpretation=2
  EXIF_Orientation=1
  EXIF_SamplesPerPixel=3
  EXIF_XResolution=(833.333)
  EXIF_YResolution=(833.333)
  EXIF_PlanarConfiguration=1
  EXIF_ResolutionUnit=3
  EXIF_Software=Adobe Photoshop CS2 Windows
  EXIF_DateTime=2008:10:16 08:59:35
  EXIF_ColorSpace=65535
  EXIF_PixelXDimension=7680
  EXIF_PixelYDimension=13824
  AREA_OR_POINT=Area
Image Structure Metadata:
  COMPRESSION=DEFLATE
  INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  (32339334.776, 5003594.056) (129d24'8.65"W,Invalid angle)
Lower Left  (32339583.608, 5000151.880) ( 78d11'7.42"W,Invalid angle)
Upper Right (32341247.096, 5003732.296) ( 68d14'50.72"W,Invalid angle)
Lower Right (32341495.928, 5000290.120) (  6d30'39.61"W,Invalid angle)
Center      (32340415.352, 5001942.088) (120d44'35.31"E,Invalid angle)
Band 1 Block=256x256 Type=Byte, [[ColorInterp]]=Red
  Overviews: 3840x6912, 1920x3456, 960x1728, 480x864
Band 2 Block=256x256 Type=Byte, [[ColorInterp]]=Green
  Overviews: 3840x6912, 1920x3456, 960x1728, 480x864
Band 3 Block=256x256 Type=Byte, [[ColorInterp]]=Blue
  Overviews: 3840x6912, 1920x3456, 960x1728, 480x864
  • resolution was changed from to fixed/implemented

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Projections/Transformations Related to coordinate reference systems or coordinate transformation labels May 24, 2019
@qgib qgib added this to the Future Release - Lower Priority milestone May 24, 2019
JamesShaeffer pushed a commit to JamesShaeffer/QGIS that referenced this issue Nov 20, 2019
JamesShaeffer pushed a commit to JamesShaeffer/QGIS that referenced this issue Nov 20, 2019
(cherry picked from commit 6dfcf40)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Projections/Transformations Related to coordinate reference systems or coordinate transformation
Projects
None yet
Development

No branches or pull requests

1 participant