|
The us-west-2 location constraint is incompatible for the region specific endpoint this request was sent to.
Hi,
I tried to run the following command from a Jupuyter Hub terminal but failed.
Error:GDAL version: 3.4.0
rasterio version: 1.2.10
The following command works as expected from the same environment
Hi,
I tried to run the following command from a Jupuyter Hub terminal but failed.
Error:GDAL version: 3.4.0
rasterio version: 1.2.10
The following command works as expected from the same environment
|
By
Pritimoy Podder
·
#933
·
|
|
Re: Unable to read COG via /vsicurl using rasterio (but can access via GDAL)
My colleague Sean Harkins is telling me that there was an issue in gdal which was fixed in 3.3 (https://github.com/OSGeo/gdal/pull/4656). Could you make sure conda install gdal>=3.3 or that you are
My colleague Sean Harkins is telling me that there was an issue in gdal which was fixed in 3.3 (https://github.com/OSGeo/gdal/pull/4656). Could you make sure conda install gdal>=3.3 or that you are
|
By
vincent.sarago@...
·
#932
·
|
|
Unable to read COG via /vsicurl using rasterio (but can access via GDAL)
Hello! I am trying to access the Harmonized Landsat Sentinel cloud optimized geotiffs and am struggling to read the files using rasterio. I am running Ubuntu 20.04, and have installed GDAL 3.4.0 from
Hello! I am trying to access the Harmonized Landsat Sentinel cloud optimized geotiffs and am struggling to read the files using rasterio. I am running Ubuntu 20.04, and have installed GDAL 3.4.0 from
|
By
henry@...
·
#931
·
|
|
Re: Question: exporting / writing auxiliary data without writing image data
Hi Loïc,
thank you for posting this workaround - sounds like a reasonable approach.
Best regards,
Sebastian
Hi Loïc,
thank you for posting this workaround - sounds like a reasonable approach.
Best regards,
Sebastian
|
By
sebastian.bullinger@...
·
#930
·
|
|
Re: Question: exporting / writing auxiliary data without writing image data
Hi Sebastian,
Simply open a connection (in r+ mode) and closing it appears to work. See below.
import rasterio
from rasterio.crs import CRS
from affine import Affine
from PIL import Image
import
Hi Sebastian,
Simply open a connection (in r+ mode) and closing it appears to work. See below.
import rasterio
from rasterio.crs import CRS
from affine import Affine
from PIL import Image
import
|
By
Loïc Dutrieux
·
#929
·
|
|
Question: exporting / writing auxiliary data without writing image data
Hi everyone,
while saving a geo-referenced image to disk (using a standard file format like png), rasterio creates not only a file "output.png", but also a file "output.png.aux.xml" containing the
Hi everyone,
while saving a geo-referenced image to disk (using a standard file format like png), rasterio creates not only a file "output.png", but also a file "output.png.aux.xml" containing the
|
By
sebastian.bullinger@...
·
#928
·
|
|
Re: Problem creating
this was the problem, thanks a lot. The error message brings me to
check in the wrong place.
--
ciao
Luca
www.lucadelu.org
this was the problem, thanks a lot. The error message brings me to
check in the wrong place.
--
ciao
Luca
www.lucadelu.org
|
By
Luca Delucchi
·
#927
·
|
|
Re: Problem creating
File you write to must be open in writing mode:
>>> rasterio.open('example.tif', 'w', **profile)
File you write to must be open in writing mode:
>>> rasterio.open('example.tif', 'w', **profile)
|
By
Denis Rykov
·
#926
·
|
|
Re: Problem creating
Instead of `band_number = np.arange(count) + 1` on line 21, try `band_number = range(1, count + 1)`
I didn't test your code specifically, but rasterio won't read a dataset when passed the band indexes
Instead of `band_number = np.arange(count) + 1` on line 21, try `band_number = range(1, count + 1)`
I didn't test your code specifically, but rasterio won't read a dataset when passed the band indexes
|
By
Luke
·
#925
·
|
|
Re: Problem creating
The code is here https://pastebin.com/YSAqsuN2
I have my input array, I mask it with mask_raster_with_geometry
function (it works properly) and after I need to create the tif.
It print the dimensions
The code is here https://pastebin.com/YSAqsuN2
I have my input array, I mask it with mask_raster_with_geometry
function (it works properly) and after I need to create the tif.
It print the dimensions
|
By
Luca Delucchi
·
#924
·
|
|
Re: Problem creating
Yes please share your code.
Yes please share your code.
|
By
Denis Rykov
·
#923
·
|
|
Problem creating
Hi everyone,
I'm trying to create a raster from a numpy array but I get this error
"TypeError: Integer width and height are required." in
rasterio/_io.pyx in
Hi everyone,
I'm trying to create a raster from a numpy array but I get this error
"TypeError: Integer width and height are required." in
rasterio/_io.pyx in
|
By
Luca Delucchi
·
#922
·
|
|
Re: Path to libgdal and libgeos files change
I figured out the issue and it is unrelated to Rasterio. Sorry to take your time!
Zappa was caching an invalid version of Rasterio and never releasing it to Lambda. Anyone finding this in the future,
I figured out the issue and it is unrelated to Rasterio. Sorry to take your time!
Zappa was caching an invalid version of Rasterio and never releasing it to Lambda. Anyone finding this in the future,
|
By
david@...
·
#921
·
|
|
Rasterio 1.3a3
Hi all,
The third 1.3 pre-release is on the package index now. We have bug fixes, new features, and some major upgrades in wheel library versions. See
Hi all,
The third 1.3 pre-release is on the package index now. We have bug fixes, new features, and some major upgrades in wheel library versions. See
|
By
Sean Gillies
·
#920
·
|
|
Re: Path to libgdal and libgeos files change
No, it's downloaded via pip. The errors are happening in AWS Lambda and I can't see the file structure.
I hear you about not guaranteeing library locations. Based on that Django documentation though
No, it's downloaded via pip. The errors are happening in AWS Lambda and I can't see the file structure.
I hear you about not guaranteeing library locations. Based on that Django documentation though
|
By
david@...
·
#919
·
Edited
|
|
Re: Path to libgdal and libgeos files change
Hi,
Is it possible that you downloaded a source distribution for 1.2.10? Are there any .so files in it at all?
I don't recommend making your application depend on the wheel library locations. These
Hi,
Is it possible that you downloaded a source distribution for 1.2.10? Are there any .so files in it at all?
I don't recommend making your application depend on the wheel library locations. These
|
By
Sean Gillies
·
#917
·
|
|
Path to libgdal and libgeos files change
Since upgrading from rasterio 1.1.8 to 1.2.10, our linux process is failing because the paths to libgdal and libgeos are wrong. We need these paths to set GEOS_LIBRARY_PATH and GDAL_LIBRARY_PATH
Since upgrading from rasterio 1.1.8 to 1.2.10, our linux process is failing because the paths to libgdal and libgeos are wrong. We need these paths to set GEOS_LIBRARY_PATH and GDAL_LIBRARY_PATH
|
By
david@...
·
#916
·
|
|
Re: MissingRequired:TIFF directory is missing required "StripOffsets" field
I just tried on Windows and Linux and your code ran fine for me (using the test data you attached). The only other thing I can think of is I'm running rasterio/gdal installed from the conda-forge repo
I just tried on Windows and Linux and your code ran fine for me (using the test data you attached). The only other thing I can think of is I'm running rasterio/gdal installed from the conda-forge repo
|
By
Luke
·
#915
·
|
|
Re: MissingRequired:TIFF directory is missing required "StripOffsets" field
Curious. I downgraded to Gdal 3.4.0 and still get the same error.
```
(geo) T:\ENV.558\scratch\merge-rgb-nir
$ python merge-rgb-nir.py
Traceback (most recent call last):
File
Curious. I downgraded to Gdal 3.4.0 and still get the same error.
```
(geo) T:\ENV.558\scratch\merge-rgb-nir
$ python merge-rgb-nir.py
Traceback (most recent call last):
File
|
By
maphew@...
·
#914
·
|
|
Re: MissingRequired:TIFF directory is missing required "StripOffsets" field
Sorry Matt, I don't know. Even Rouault wrote a bit about the issue a number of years ago, but the re-writing without re-compressing was left in the "Ideas for later..." section.
Sorry Matt, I don't know. Even Rouault wrote a bit about the issue a number of years ago, but the re-writing without re-compressing was left in the "Ideas for later..." section.
|
By
Luke
·
#913
·
|