Closed sebhan2 closed 4 years ago
I don't have your file to test but I could not reproduce the problem with a simple test with the same example.tif
from rasterio
docs. Closing this but I can test again with your file if you can provide it.
the file is a large raster tiff of approximately 2.5 GB and the file is working with other methoads like average, nearest neighbor etc. Is there a limit on the input file size? Do you have an idea were to look to find such an error?
the file is a large raster tiff of approximately 2.5 GB
OK. We are not sharing that 😄
and the file is working with other methods like average, nearest neighbor etc.
Also, ignore what I mentioned above. It crashes with:
ERROR 1: GDALGetResampleFunction: Unsupported resampling method "UNKNOWN".
I ran it as a script before and I thought it completed but it hid the error message.
Does this happen with the rasterio
wheels?
rasterio
wheels is the version installed via pip with the command pip install rasterio
, correct? If that is the case then no it does not.
Our gdal
build is quite different from the one used to build wheels
, it would be nice to find out what is causing this but unfortunately I do not have the cycles at the moment to investigate this.
Related issue on rasterio repo https://github.com/mapbox/rasterio/issues/1930 Related issue on gdal repo https://github.com/OSGeo/gdal/issues/2587
rasterio
wheels is the version installed via pip with the commandpip install rasterio
, correct? If that is the case then no it does not.
I could reproduce the failure with the Wheels and thanks to @JesseCrocker it is already reported upstream. Also, it seems that a fix is already on the way. Closing this b/c it is not a problem with the conda package.
I want to resample a georeferend raster .tif file with Python using rasterio. Here is the example I found example and the documentaion of the resampling methods.
When I am using the following methods ‘max’, ‘min’, ‘med’, ‘q1’, ‘q3’ which are only supported in GDAL >= 2.0.0 the program fails.
I am using a conda environment and rasterio.gdal_version gives me version 3.0.4.
When I run the following code (i.e. almost the example code):
I am getting the following error:
Segmentation fault: 11
How do I solve the issue and get the example to run without the segmentation fault?