|
Re: Is it possible to ignore existing overview when performing decimated read?
HI Loïc,
I don't think we currently have any option other than to remove the overviews. In theory GDAL's OVERVIEW_LEVEL open option could help us, but the implementation isn't there. For example, if
HI Loïc,
I don't think we currently have any option other than to remove the overviews. In theory GDAL's OVERVIEW_LEVEL open option could help us, but the implementation isn't there. For example, if
|
By
Sean Gillies
·
#649
·
|
|
Re: Is it possible to ignore existing overview when performing decimated read?
Hi Denis,
Thanks for pointing to that issue. I may have misunderstood it but I don't think it helps answering my question.
Cheers,
Loïc
________________________________________
Sent: 10 November
Hi Denis,
Thanks for pointing to that issue. I may have misunderstood it but I don't think it helps answering my question.
Cheers,
Loïc
________________________________________
Sent: 10 November
|
By
Loïc Dutrieux
·
#648
·
|
|
Re: Rasterizing polygon from numpy arrays
Works like a charm, thank you!
Works like a charm, thank you!
|
By
alexisshakas@...
·
#647
·
|
|
Re: Rasterizing polygon from numpy arrays
Yes, you should be able to pass a list / tuple (these are iterables) of Shapely geometries as input to geometry_mask.
Yes, you should be able to pass a list / tuple (these are iterables) of Shapely geometries as input to geometry_mask.
|
By
Brendan Ward
·
#646
·
|
|
Re: Rasterizing polygon from numpy arrays
Hi Brendan and thnk you for the quick response!
The coordinates should not be an issue, since the polygon coordinates are in the same frame as the image.
Can i directly input a Shapely polygon to the
Hi Brendan and thnk you for the quick response!
The coordinates should not be an issue, since the polygon coordinates are in the same frame as the image.
Can i directly input a Shapely polygon to the
|
By
alexisshakas@...
·
#645
·
|
|
Re: Rasterizing polygon from numpy arrays
You need to convert each polygon in your numpy array of coordinates into a GeoJSON-like polygon.
You could use Shapely to do so.
You should then be able to use those as input to rasterize or
You need to convert each polygon in your numpy array of coordinates into a GeoJSON-like polygon.
You could use Shapely to do so.
You should then be able to use those as input to rasterize or
|
By
Brendan Ward
·
#644
·
|
|
Rasterizing polygon from numpy arrays
Hello,
I've been struggling with this for quite some time now, so its time to ask for help.
My problem is set up as follows:
I want to create a binary mask for an image that is quite large (~10k rows
Hello,
I've been struggling with this for quite some time now, so its time to ask for help.
My problem is set up as follows:
I want to create a binary mask for an image that is quite large (~10k rows
|
By
alexisshakas@...
·
#643
·
|
|
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
·
|