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

Can't build pyramids for IMG files #12487

Closed
qgib opened this issue Feb 9, 2010 · 4 comments
Closed

Can't build pyramids for IMG files #12487

qgib opened this issue Feb 9, 2010 · 4 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Rasters Related to general raster layer handling (not specific data formats)
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Feb 9, 2010

Author Name: Alexander Bruy (@alexbruy)
Original Redmine Issue: 2427

Redmine category:rasters
Assignee: ersts -


Seems that QGIS can't build pyramids for the ERDAS IMAGINE (IMG) files, even if file don't have buildin pyramids. To reproduce:

  1. Open QGIS and load IMG file without internal and external pyramids

  2. Right click on raster layer and select Properties-Pyramids.

  3. Click on "Build pyramids" button. Nothing happens and no pyramids was builds

But with gdaladdo I can build pyramids on this files.

@qgib
Copy link
Contributor Author

qgib commented Feb 9, 2010

Author Name: Giovanni Manghi (@gioman)


Hi,

if you don't choose the pyramids resolution (up-right), then clicking the "build pyramid" button does nothing. Nevertheless if you choose at least one resolution then the button works, ans in the case of .img files a warning pops up

"Building pyramid overviews is not supported on this type of raster."

This is at least what happens with the .img raster you can find in the qgis sample dataset. Gdal tools also cannot create overviews for this particular file.

Did not tested gdal from the command line.

Closing?

@qgib
Copy link
Contributor Author

qgib commented Feb 9, 2010

Author Name: Alexander Bruy (@alexbruy)


I've test gdal from command line with landcover.img from the qgis sample dataset. Here is output
of gdalinfo (no pyramids)

 gdalinfo -nomd gis-samples/other/landcover.img
Driver: HFA/Erdas Imagine Images (.img)
Files: gis-samples/other/landcover.img
Size is 3663, 1964
....
Band 1 Block=64x64 Type=Byte, [[ColorInterp]]=Palette
  Description = Layer_1
  Color Table (RGB with 14 entries)

now build pyramids

 gdaladdo -r average gis-samples/landcover.img 2 4 8 16 32
0...10...20...30...40...50...60...70...80...90...100 - done.

and look with gdalinfo again

 gdalinfo -nomd gis-samples/other/landcover.img
Driver: HFA/Erdas Imagine Images (.img)
Files: gis-samples/other/landcover.img
Size is 3663, 1964
....
Band 1 Block=64x64 Type=Byte, [[ColorInterp]]=Palette
  Description = Layer_1
  Overviews: 1832x982, 916x491, 458x246, 229x123, 115x62
  Color Table (RGB with 14 entries)

Pyramids was build. When this raster loaded in QGIS in properties all this pyramids are shows as active.

@qgib
Copy link
Contributor Author

qgib commented Feb 9, 2010

Author Name: Giovanni Manghi (@gioman)


So there is a problem in the way that qgis handles .img files/gdal when it comes to create pyramids. And so does the gdal tools plugin.

You may want then to open a ticket also in the gdal tools trac.

@qgib
Copy link
Contributor Author

qgib commented Apr 16, 2011

Author Name: Maxim Dubinin (@simgislab)


it works now.
[[WinXP]], f42443c (SVN r15701)


  • resolution was configured as fixed
  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Rasters Related to general raster layer handling (not specific data formats) labels May 24, 2019
@qgib qgib added this to the Version 1.7.0 milestone May 24, 2019
@qgib qgib closed this as completed May 24, 2019
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! Rasters Related to general raster layer handling (not specific data formats)
Projects
None yet
Development

No branches or pull requests

1 participant