|
Re: Is it possible to ignore existing overview when performing decimated read?
You can find an example how to do that here: https://github.com/mapbox/rasterio/issues/1929.
You can find an example how to do that here: https://github.com/mapbox/rasterio/issues/1929.
|
By
Denis Rykov
·
#642
·
|
|
Is it possible to ignore existing overview when performing decimated read?
Hi everyone,
I'm trying to perform a decimated read of a dataset that already contains overviews. Regardless of which value I pass to the resampling= argument of the read method, it seems that
Hi everyone,
I'm trying to perform a decimated read of a dataset that already contains overviews. Regardless of which value I pass to the resampling= argument of the read method, it seems that
|
By
Loïc Dutrieux
·
#641
·
|
|
Re: Does rasterio.warp.reproject use overviews?
Loïc,
1. Correct. To use overviews, you must pass a dataset explicitly opened on an overview using `rasterio.open("example.tif", OVERVIEW_LEVEL=1)`.
2. Correct again. We'll add an option to use an
Loïc,
1. Correct. To use overviews, you must pass a dataset explicitly opened on an overview using `rasterio.open("example.tif", OVERVIEW_LEVEL=1)`.
2. Correct again. We'll add an option to use an
|
By
Sean Gillies
·
#640
·
|
|
Re: Does rasterio.warp.reproject use overviews?
Hi Sean,
Thank you for your response.
Is it correct to interpret from your explanation that:
1- currently the reproject function will never use overviews of the source file, even when it involves
Hi Sean,
Thank you for your response.
Is it correct to interpret from your explanation that:
1- currently the reproject function will never use overviews of the source file, even when it involves
|
By
Loïc Dutrieux
·
#639
·
|
|
Re: Does rasterio.warp.reproject use overviews?
Hi Loïc,
gdalwarp's logic is found in apps/gdalwarp_lib.cpp, not in gcore, so rasterio.warp.reproject() does not have it. We've got a rasterio ticket about switching over to use the main function in
Hi Loïc,
gdalwarp's logic is found in apps/gdalwarp_lib.cpp, not in gcore, so rasterio.warp.reproject() does not have it. We've got a rasterio ticket about switching over to use the main function in
|
By
Sean Gillies
·
#638
·
|
|
Does rasterio.warp.reproject use overviews?
Hi everyone,
I read that the gdalwarp command line defaults to using the overview level nearest to target resolution. What about `rasterio.warp.reproject()`? Does it use overview at all?
Thank you
Hi everyone,
I read that the gdalwarp command line defaults to using the overview level nearest to target resolution. What about `rasterio.warp.reproject()`? Does it use overview at all?
Thank you
|
By
Loïc Dutrieux
·
#637
·
|
|
Re: HDF4 not recognized as a supported file format
Thank you!
pip3 install rasterio --force-reinstall --no-binary rasterio did the job.
Thank you!
pip3 install rasterio --force-reinstall --no-binary rasterio did the job.
|
By
leonidas_liakos@...
·
#636
·
|
|
Re: HDF4 not recognized as a supported file format
Hi,
In https://github.com/mapbox/rasterio/issues/2026 you reported that you'd previously installed a wheel from PyPI. In that case, I think you need to add an option when reinstalling:
pip3 install
Hi,
In https://github.com/mapbox/rasterio/issues/2026 you reported that you'd previously installed a wheel from PyPI. In that case, I think you need to add an option when reinstalling:
pip3 install
|
By
Sean Gillies
·
#635
·
|
|
HDF4 not recognized as a supported file format
I have install rasterio with pip3 install rasterio --no-binary rasterio
When I'm trying to read an HDF4 MODIS file I get an error:
Matplotlib created a temporary config/cache directory at
I have install rasterio with pip3 install rasterio --no-binary rasterio
When I'm trying to read an HDF4 MODIS file I get an error:
Matplotlib created a temporary config/cache directory at
|
By
leonidas_liakos@...
·
#634
·
|
|
rio-mbtiles 1.5.0
Hi all,
Version 1.5.0 of rio-mbtiles is on PyPI now: https://pypi.org/project/rio-mbtiles/1.5.0/. Special thanks to James McBride for the reviews and feedback.
Share and enjoy,
--
Sean Gillies
Hi all,
Version 1.5.0 of rio-mbtiles is on PyPI now: https://pypi.org/project/rio-mbtiles/1.5.0/. Special thanks to James McBride for the reviews and feedback.
Share and enjoy,
--
Sean Gillies
|
By
Sean Gillies
·
#633
·
|
|
Re: Silencing NotGeoreferencedWarning
Hi Nikos,
(data) vas-y:~ seang$ python -W "ignore:Dataset has no geotransform set" -c "import rasterio; rasterio.open('/Users/seang/Desktop/DSC_1549.jpg')"
(data) vas-y:~ seang$ python -c "import
Hi Nikos,
(data) vas-y:~ seang$ python -W "ignore:Dataset has no geotransform set" -c "import rasterio; rasterio.open('/Users/seang/Desktop/DSC_1549.jpg')"
(data) vas-y:~ seang$ python -c "import
|
By
Sean Gillies
·
#632
·
|
|
Re: Silencing NotGeoreferencedWarning
Thank you for this. It's been bugging for quite some time.
I use it here: https://gitlab.com/thermopolis/public/ecor/-/blob/master/ecor/utilities.py.
I have the same question, as this snippet need to
Thank you for this. It's been bugging for quite some time.
I use it here: https://gitlab.com/thermopolis/public/ecor/-/blob/master/ecor/utilities.py.
I have the same question, as this snippet need to
|
By
Nikos Alexandris
·
#631
·
|
|
rio-mbtiles 1.5b3
Hi all,
1.5b3 is on PyPI now. It adds an option to constrain mbtiles output to only the tiles that cover a web mercator quadkey. See
Hi all,
1.5b3 is on PyPI now. It adds an option to constrain mbtiles output to only the tiles that cover a web mercator quadkey. See
|
By
Sean Gillies
·
#630
·
|
|
Re: Rasterio and GDAL_CACHEMAX
Sean,
Awesome, thanks for the response. There are a couple of places in the docs where the example sets the cache in
Sean,
Awesome, thanks for the response. There are a couple of places in the docs where the example sets the cache in
|
By
Angus Dickey
·
#629
·
|
|
Re: opening file with forced CRS
This should be fixed in 1.1.5 IIRC: #1248
This should be fixed in 1.1.5 IIRC: #1248
|
By
Alan Snow
·
#628
·
|
|
opening file with forced CRS
Hi all: as part of using rasterio for OGC API - Coverages work in pygeoapi, a client can passa bbox parameter as a shortcut to spatially subset a coverage using lat/long coordinates. The idea
Hi all: as part of using rasterio for OGC API - Coverages work in pygeoapi, a client can passa bbox parameter as a shortcut to spatially subset a coverage using lat/long coordinates. The idea
|
By
Tom Kralidis
·
#627
·
|
|
Re: Rasterio and GDAL_CACHEMAX
Hi Angus,
Yes, GDAL_CACHEMAX passed to `Env()` must be in bytes (since https://github.com/mapbox/rasterio/pull/1042/files).
--
Sean Gillies
Hi Angus,
Yes, GDAL_CACHEMAX passed to `Env()` must be in bytes (since https://github.com/mapbox/rasterio/pull/1042/files).
--
Sean Gillies
|
By
Sean Gillies
·
#626
·
|
|
Rasterio and GDAL_CACHEMAX
Does GDAL_CACHEMAX have to be set in bytes when using rasterio? I see in the docs there is an example using MBs but it seems to be causing rasterio to set a very small cache size when I use it. For
Does GDAL_CACHEMAX have to be set in bytes when using rasterio? I see in the docs there is an example using MBs but it seems to be causing rasterio to set a very small cache size when I use it. For
|
By
Angus Dickey
·
#625
·
|
|
rasterio 1.1.8-1 wheels published to PyPI
Hi all,
We found a bug in GDAL versions before 3.2.0 and have patched GDAL 2.4.4 and made new 1.1.8 binary wheels with a "-1" build tag. See https://pypi.org/project/rasterio/1.1.8/#files. If you want
Hi all,
We found a bug in GDAL versions before 3.2.0 and have patched GDAL 2.4.4 and made new 1.1.8 binary wheels with a "-1" build tag. See https://pypi.org/project/rasterio/1.1.8/#files. If you want
|
By
Sean Gillies
·
#624
·
|
|
Re: Best way to sample all data in a raster
I believe that this is what you are looking for: https://rasterio.readthedocs.io/en/latest/topics/resampling.html
I believe that this is what you are looking for: https://rasterio.readthedocs.io/en/latest/topics/resampling.html
|
By
Alan Snow
·
#623
·
|