|
Re: Rasterio 1.2a1
+1 LGTM. Light testing of new coordinate transformation and warping with rpcs in WSL 2 Ubuntu 20.04.
Sebastien
+1 LGTM. Light testing of new coordinate transformation and warping with rpcs in WSL 2 Ubuntu 20.04.
Sebastien
|
By
Yann-Sebastien Tremblay-Johnston
·
#662
·
|
|
Rasterio 1.2a1
Hi all,
Some wheels and an sdist for rasterio 1.2a1 are on PyPI today. I'd appreciate some testing by adventurous folks.
The change log is behind the curve, but the new features are listed in
Hi all,
Some wheels and an sdist for rasterio 1.2a1 are on PyPI today. I'd appreciate some testing by adventurous folks.
The change log is behind the curve, but the new features are listed in
|
By
Sean Gillies
·
#661
·
|
|
Re: masking in rio calc
Great, thanks Sean.
As I’m sure you figured out from my original example, but I wasn’t explicit about, was that filling with 255 when the numpy dtype was bool resulted in True, which then gets
Great, thanks Sean.
As I’m sure you figured out from my original example, but I wasn’t explicit about, was that filling with 255 when the numpy dtype was bool resulted in True, which then gets
|
By
Gregory, Matthew
·
#660
·
|
|
Re: masking in rio calc
Update: https://github.com/mapbox/rasterio/issues/2041. Thanks for bringing this up, Matt.
--
Sean Gillies
Update: https://github.com/mapbox/rasterio/issues/2041. Thanks for bringing this up, Matt.
--
Sean Gillies
|
By
Sean Gillies
·
#659
·
|
|
Re: masking in rio calc
Hi Matt,
You may get better results using numpy.where, like "(where (>= (read 1) 0.5) 1 0)".
I'll dig into the filling code, that looks like a bug to me.
--
Sean Gillies
Hi Matt,
You may get better results using numpy.where, like "(where (>= (read 1) 0.5) 1 0)".
I'll dig into the filling code, that looks like a bug to me.
--
Sean Gillies
|
By
Sean Gillies
·
#658
·
|
|
masking in rio calc
Hi all,
I'm wondering if I'm using rio-calc incorrectly to achieve what I'd like to do. I have a floating-point raster that ranges from 0.0-1.0 with areas in the raster that are masked. I'd like to
Hi all,
I'm wondering if I'm using rio-calc incorrectly to achieve what I'd like to do. I have a floating-point raster that ranges from 0.0-1.0 with areas in the raster that are masked. I'd like to
|
By
Gregory, Matthew
·
#657
·
|
|
Re: Sampling from one single point location using sample()
Hey Sean,
I made it work using your tests! Thanks for that ;)
Cheers Alex
Hey Sean,
I made it work using your tests! Thanks for that ;)
Cheers Alex
|
By
Alexander Jüstel
·
#656
·
|
|
Re: Sampling from one single point location using sample()
Hi Alex,
Is your approach any different than the examples in https://github.com/mapbox/rasterio/blob/master/tests/test_sampling.py?
--
Sean Gillies
Hi Alex,
Is your approach any different than the examples in https://github.com/mapbox/rasterio/blob/master/tests/test_sampling.py?
--
Sean Gillies
|
By
Sean Gillies
·
#655
·
|
|
Re: Is it possible to ignore existing overview when performing decimated read?
Hi Loïc,
A test that requires 3.3 would be welcome.
The next time we have a rasterio release I will patch GDAL the GDAL library in the wheels we publish on PyPI.
Hi Loïc,
A test that requires 3.3 would be welcome.
The next time we have a rasterio release I will patch GDAL the GDAL library in the wheels we publish on PyPI.
|
By
Sean Gillies
·
#654
·
|
|
Re: Is it possible to ignore existing overview when performing decimated read?
Many thanks Sean and Even,
So with rasterio compiled against gdal 3.3 I'll be able to force ignore overviews?
If that deserves a new rasterio unit test I'm happy to send a pull request in the coming
Many thanks Sean and Even,
So with rasterio compiled against gdal 3.3 I'll be able to force ignore overviews?
If that deserves a new rasterio unit test I'm happy to send a pull request in the coming
|
By
Loïc Dutrieux
·
#653
·
|
|
Sampling from one single point location using sample()
Hello,
I would like to sample the value of my raster at one single point location. I have passed the coordinates as an iterable to the sample() function. However, I am not able to extract the value
Hello,
I would like to sample the value of my raster at one single point location. I have passed the coordinates as an iterable to the sample() function. However, I am not able to extract the value
|
By
Alexander Jüstel
·
#652
·
|
|
Re: Is it possible to ignore existing overview when performing decimated read?
Hi Even,
Thanks!
--
Sean Gillies
Hi Even,
Thanks!
--
Sean Gillies
|
By
Sean Gillies
·
#651
·
|
|
Re: Is it possible to ignore existing overview when performing decimated read?
Was left as an exercice for a contributor:
https://github.com/OSGeo/gdal/pull/3181
Even
--
Spatialys - Geospatial professional services
http://www.spatialys.com
Was left as an exercice for a contributor:
https://github.com/OSGeo/gdal/pull/3181
Even
--
Spatialys - Geospatial professional services
http://www.spatialys.com
|
By
Even Rouault
·
#650
·
|
|
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
·
|