|
Re: Rasterio.features.geometry_window error when geojson has GeometryCollection
Thanks again Brendan, very helpful.
Thanks again Brendan, very helpful.
|
By
filthyhands@...
·
#523
·
|
|
Re: Rasterio.features.geometry_window error when geojson has GeometryCollection
The target release date that will include this fix is 5/1/2020 (https://github.com/mapbox/rasterio/issues/1911)
If you need changes sooner, you have a few options:
1) clone the repo and checkout the
The target release date that will include this fix is 5/1/2020 (https://github.com/mapbox/rasterio/issues/1911)
If you need changes sooner, you have a few options:
1) clone the repo and checkout the
|
By
Brendan Ward
·
#522
·
|
|
Re: MemoryFile loses Profile information
I think the problem is that I'm trying to do the conversion in memory, not on disk. If I've read your latest reply correctly, I'd convert to JPEG2000 on disk and then copy to S3?
Can I do the
I think the problem is that I'm trying to do the conversion in memory, not on disk. If I've read your latest reply correctly, I'd convert to JPEG2000 on disk and then copy to S3?
Can I do the
|
By
ciaran.evans@...
·
#521
·
|
|
Re: Rasterio.features.geometry_window error when geojson has GeometryCollection
How can I patch my install of Rasterio to incorporate your changes?
How can I patch my install of Rasterio to incorporate your changes?
|
By
filthyhands@...
·
#520
·
|
|
Re: MemoryFile loses Profile information
Hi,
I've only now remembered (not being a regular jp2 user) that JPEG2000 is a create-copy format (see https://gdal.org/drivers/raster/index.html) and as such is not suited for uses cases like
Hi,
I've only now remembered (not being a regular jp2 user) that JPEG2000 is a create-copy format (see https://gdal.org/drivers/raster/index.html) and as such is not suited for uses cases like
|
By
Sean Gillies
·
#519
·
|
|
Re: Rasterio.features.geometry_window error when geojson has GeometryCollection
That's great Brendan, much appreciated.
That's great Brendan, much appreciated.
|
By
filthyhands@...
·
#518
·
|
|
Re: MemoryFile loses Profile information
On mercredi 29 avril 2020 08:40:07 CEST Guillaume Lostis wrote:
> Like Ciaran I'm not very familiar with GDAL's python bindings, but I've
> tried running a little snippet which I believe does the
On mercredi 29 avril 2020 08:40:07 CEST Guillaume Lostis wrote:
> Like Ciaran I'm not very familiar with GDAL's python bindings, but I've
> tried running a little snippet which I believe does the
|
By
Even Rouault
·
#517
·
|
|
Re: Rasterio.features.geometry_window error when geojson has GeometryCollection
This looks like an oversight when we implemented bounds().
Rasterio currently supports FeatureCollection or individual geometry objects in this operation.
Logged here:
This looks like an oversight when we implemented bounds().
Rasterio currently supports FeatureCollection or individual geometry objects in this operation.
Logged here:
|
By
Brendan Ward
·
#516
·
|
|
Re: MemoryFile loses Profile information
Like Ciaran I'm not very familiar with GDAL's python bindings, but I've tried running a little snippet which I believe does the same thing as what was done with rasterio: it writes a JP2 to a vsimem
Like Ciaran I'm not very familiar with GDAL's python bindings, but I've tried running a little snippet which I believe does the same thing as what was done with rasterio: it writes a JP2 to a vsimem
|
By
Guillaume Lostis
·
#515
·
|
|
Re: MemoryFile loses Profile information
Would you say it's worth raising an issue on GDAL then?
I'm also not familiar with the Python GDAL bindings, Rasterio is my window in that haha.
Would you say it's worth raising an issue on GDAL then?
I'm also not familiar with the Python GDAL bindings, Rasterio is my window in that haha.
|
By
ciaran.evans@...
·
#514
·
|
|
Re: Read using multithreading
Hi,
Dataset files can be accessed from multiple threads, but the dataset objects returned by rasterio.open can only be used by a single thread at a time. This is a constraint that we get from GDAL.
Hi,
Dataset files can be accessed from multiple threads, but the dataset objects returned by rasterio.open can only be used by a single thread at a time. This is a constraint that we get from GDAL.
|
By
Sean Gillies
·
#513
·
|
|
Re: MemoryFile loses Profile information
Since there's no JP2 specific code in MemoryFile and things work with the GeoTIFF driver, I suspect there's a subtle bug involving the vsimem system and one of the JP2 drivers. It would be useful to
Since there's no JP2 specific code in MemoryFile and things work with the GeoTIFF driver, I suspect there's a subtle bug involving the vsimem system and one of the JP2 drivers. It would be useful to
|
By
Sean Gillies
·
#512
·
|
|
Rasterio.features.geometry_window error when geojson has GeometryCollection
I'm attempting to isolate areas in a rasterio raster object, using Fiona to open a geojson and then window the parts I want to look at.
Where a geojson entry is a geometry collection
I'm attempting to isolate areas in a rasterio raster object, using Fiona to open a geojson and then window the parts I want to look at.
Where a geojson entry is a geometry collection
|
By
filthyhands@...
·
#511
·
|
|
Read using multithreading
Hello, I have an application that calls rasterio to open rasters in its main process. This application allows me to parallelize the process, so it will call the function where rasterio open is many
Hello, I have an application that calls rasterio to open rasters in its main process. This application allows me to parallelize the process, so it will call the function where rasterio open is many
|
By
Carlos García Rodríguez
·
#510
·
|
|
Re: Speed up reading rasters
I have already fixed it. One of the main problems was that the tiled tiff was configured with size 256 and I was reading with windows of sizes 224. From here comes the disparity of the times of
I have already fixed it. One of the main problems was that the tiled tiff was configured with size 256 and I was reading with windows of sizes 224. From here comes the disparity of the times of
|
By
Carlos García Rodríguez
·
#509
·
|
|
Re: MemoryFile loses Profile information
As with Guillaume's answer, it's a Sentinel 2 band and has no side-car file, when I write straight to a file, the georeferencing is maintained.
As with Guillaume's answer, it's a Sentinel 2 band and has no side-car file, when I write straight to a file, the georeferencing is maintained.
|
By
ciaran.evans@...
·
#508
·
|
|
Re: MemoryFile loses Profile information
Hi,
I guess the B01.jp2 file mentioned is a Sentinel-2 band, which is standalone, there is no side-car file attached to it.
I have tried downloading a single B01.jp2 file from a SAFE and running
Hi,
I guess the B01.jp2 file mentioned is a Sentinel-2 band, which is standalone, there is no side-car file attached to it.
I have tried downloading a single B01.jp2 file from a SAFE and running
|
By
Guillaume Lostis
·
#507
·
|
|
Re: MemoryFile loses Profile information
Hi,
To confirm: you're right, there's no need to seek after writing using mem.write() because the dataset API doesn't change the MemoryFile's stream position. It remains at 0, the beginning of the
Hi,
To confirm: you're right, there's no need to seek after writing using mem.write() because the dataset API doesn't change the MemoryFile's stream position. It remains at 0, the beginning of the
|
By
Sean Gillies
·
#506
·
|
|
Re: MemoryFile loses Profile information
I tried this with GDAL 2.4.2 and GDAL 3.0 too
If anyone can point me to where I might look further to diagnose this, I can create an issue with some useful info, whether that's in Rasterio/GDAL :)
I tried this with GDAL 2.4.2 and GDAL 3.0 too
If anyone can point me to where I might look further to diagnose this, I can create an issue with some useful info, whether that's in Rasterio/GDAL :)
|
By
ciaran.evans@...
·
#505
·
|
|
Re: Speed up reading rasters
I would also like to add that the first tiled read is not necessarily slow...
I would also like to add that the first tiled read is not necessarily slow...
|
By
Carlos García Rodríguez
·
#504
·
|