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

Raster calculator crashes unexpectedly with moderate sized TIFs #23216

Closed
qgib opened this issue Jul 14, 2016 · 4 comments
Closed

Raster calculator crashes unexpectedly with moderate sized TIFs #23216

qgib opened this issue Jul 14, 2016 · 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)

Comments

@qgib
Copy link
Contributor

qgib commented Jul 14, 2016

Author Name: belg4mit - (belg4mit -)
Original Redmine Issue: 15281
Affected QGIS version: 2.16.0
Redmine category:raster_calculator


I would have thought these were large files, but after seeing #21389 I guess not. I have 4GB and 5GB TIFFs on Windows 7 and I'm trying to do:

TIGER@1 OR WATER@1

and QGIS immediately crashes without warning after I click OK. (I actually want to OR in a third file, but have been waiting 16 hours for the Attribute Table editor to delete multiple columns from a 490Mb DBF before I can prepare it)

The rasters were created with:

gdal_rasterize.exe -burn 40 -tr 10.0 10.0 CENSUS2010TIGERROADS_ARC.shp -l CENSUS2010TIGERROADS_ARC TIGER.tif
gdal_rasterize.exe -burn 1000000000 -tr 10.0 10.0 HYDRO25K_POLY.shp -l HYDRO25K_POLY HYDRO.tif

The source files are available from:

P.S. I also tried to use gdal_calc as a work around without success

gdal_calc.bat -A TIGER.tif -B HYDRO.tif --outfile=CostPath.tif --calc="A|B"
ImportError: No module named site


@qgib
Copy link
Contributor Author

qgib commented Jul 14, 2016

Author Name: belg4mit - (belg4mit -)


Sorry, I forgot to include the minidump.


  • 10199 was configured as RasterCalculatorCrash.zip

@qgib
Copy link
Contributor Author

qgib commented Jul 14, 2016

Author Name: belg4mit - (belg4mit -)


Got gdal_calc.py working after using out that I had to run OSGeo4W.bat first.

I get the following:

Error! Dimensions of file HYDRO.tif (33592, 23330) are different from other files (29593, 18206). Cannot proceed

@qgib
Copy link
Contributor Author

qgib commented Jul 14, 2016

Author Name: belg4mit - (belg4mit -)


I clipped the rasters to be the same size/extent, although that really should not be necessary, and it still crashes.


  • 10200 was configured as RasterCalculatorCrash-matching_extent.zip

@qgib
Copy link
Contributor Author

qgib commented Jul 14, 2016

Author Name: Giovanni Manghi (@gioman)


seems that #21389 is still valid. I confirm on a clean 2.16 installation on linux.

The gdal raster calculator issue must be reported in the gdal bug tracker.


  • resolution was changed from to duplicate
  • 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 25, 2019
@qgib qgib closed this as completed May 25, 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