|
Writing ESRI sidecar files
Hi, Correct, those dataset creation options need to be passed into rasterio.open(). One way to do that is to add to your metadata dict below metadata["profile"] = "GeoTIFF" Any extra keyword argument
Hi, Correct, those dataset creation options need to be passed into rasterio.open(). One way to do that is to add to your metadata dict below metadata["profile"] = "GeoTIFF" Any extra keyword argument
|
By
Sean Gillies
· #256
·
|
|
Writing ESRI sidecar files
If you are creating a GeoTIFF it is possible that no XML file will be written. As Even Rouault explains in https://lists.osgeo.org/pipermail/gdal-dev/2010-May/024522.html, the PAM file is only created
If you are creating a GeoTIFF it is possible that no XML file will be written. As Even Rouault explains in https://lists.osgeo.org/pipermail/gdal-dev/2010-May/024522.html, the PAM file is only created
|
By
Sean Gillies
· #253
·
|
|
Writing raster to GeoPackage layer
Hi, Can you tell us how you installed rasterio? If you installed one of the binary wheels from PyPI (which I built), you may be out of luck. I haven't paid any attention to making sure that they have
Hi, Can you tell us how you installed rasterio? If you installed one of the binary wheels from PyPI (which I built), you may be out of luck. I haven't paid any attention to making sure that they have
|
By
Sean Gillies
· #251
·
|
|
Occasional "not recognized as a supported file format" errors when reading from S3
Dion, Jonas: There is a new report in the FIona tracker that may be related: https://github.com/Toblerity/Fiona/issues/761. There I advised turning on CPL_CURL_VERBOSE=YES to see more details about th
Dion, Jonas: There is a new report in the FIona tracker that may be related: https://github.com/Toblerity/Fiona/issues/761. There I advised turning on CPL_CURL_VERBOSE=YES to see more details about th
|
By
Sean Gillies
· #245
·
|
|
gdalinfo's and rasterio's reading problem in LUSTRE FS with NetCDF file (ubuntu:bionic)
Hi Erick, I'm not familiar with Lustre and only slightly familiar with the details of GDAL's netCDF driver. I think, since the problem manifests with gdalinfo as well as rasterio programs, that the be
Hi Erick, I'm not familiar with Lustre and only slightly familiar with the details of GDAL's netCDF driver. I think, since the problem manifests with gdalinfo as well as rasterio programs, that the be
|
By
Sean Gillies
· #235
·
|
|
Occasional "not recognized as a supported file format" errors when reading from S3
I found the VRT multi-threading guidance at https://gdal.org/drivers/raster/vrt.html#multi-threading-issues. It moved during the site migration. This smells like a GDAL bug to me, perhaps a manifestat
I found the VRT multi-threading guidance at https://gdal.org/drivers/raster/vrt.html#multi-threading-issues. It moved during the site migration. This smells like a GDAL bug to me, perhaps a manifestat
|
By
Sean Gillies
· #231
·
|
|
Clipping a raster (grib2), end up with zeros on left edge when cropping with mask
Hi Shane, It looks like your feature geometries extend beyond the extent of your raster, yes? In that case, crop can create an extra row or column of pixels, which will be empty. This seems like a bug
Hi Shane, It looks like your feature geometries extend beyond the extent of your raster, yes? In that case, crop can create an extra row or column of pixels, which will be empty. This seems like a bug
|
By
Sean Gillies
· #227
·
|
|
problem with window sizes when parallelizing a funciton
Alan: the function does indeed write to a new file with blocksizes set appropriately. Javier: the TIFF spec states that tile width (and this goes for height, I presume) must be a multiple of 16. Neith
Alan: the function does indeed write to a new file with blocksizes set appropriately. Javier: the TIFF spec states that tile width (and this goes for height, I presume) must be a multiple of 16. Neith
|
By
Sean Gillies
· #221
·
|
|
Python rasterio for saveing GeoTIFF files and read in ArcGIS or QGIS
Thank you for providing a complete example of your code and the ArcMap error message. Without those details, it can be hard to provide help. When you open the files for writing, there is one thing mis
Thank you for providing a complete example of your code and the ArcMap error message. Without those details, it can be hard to provide help. When you open the files for writing, there is one thing mis
|
By
Sean Gillies
· #217
·
|
|
Can't read in a Landsat geotiff and use multiple threads to write out different windows at the same time
The VRT_SHARED_SOURCE option only affects the connection pool within the VRT driver code and that's not relevant to your code as far as I can see. A single opened rasterio dataset cannot be safely use
The VRT_SHARED_SOURCE option only affects the connection pool within the VRT driver code and that's not relevant to your code as far as I can see. A single opened rasterio dataset cannot be safely use
|
By
Sean Gillies
· #212
·
|
|
WarpedVRT and resampling ?
Hi Vincent, Can you explain what processes produced those images? What program produced the blurry one and what program produced the non-blurry one? Which resampling algorithms were used? Yes, you can
Hi Vincent, Can you explain what processes produced those images? What program produced the blurry one and what program produced the non-blurry one? Which resampling algorithms were used? Yes, you can
|
By
Sean Gillies
· #204
·
|
|
Is it possible to open a binary file with rasterio.open?
Hi, If you pass a Python file object opened in "r" mode to rasterio.open, the contents will be read and stored in a MemoryFile. See https://github.com/mapbox/rasterio/blob/master/rasterio/__init__.py#
Hi, If you pass a Python file object opened in "r" mode to rasterio.open, the contents will be read and stored in a MemoryFile. See https://github.com/mapbox/rasterio/blob/master/rasterio/__init__.py#
|
By
Sean Gillies
· #192
·
|
|
Memory error in rio calc that equivalent gdal_calc.py performs quickly without issue
rio-calc does indeed read the entire file. The requirement to use it on files too large to fit in memory hasn't come up before. Modifying it to work on only one (or several, using a thread or process
rio-calc does indeed read the entire file. The requirement to use it on files too large to fit in memory hasn't come up before. Modifying it to work on only one (or several, using a thread or process
|
By
Sean Gillies
· #190
·
|
|
Rewriting uint16 headers with rasterio / applying rio color makes them unreadable by Preview, Photoshop
For GeoTIFF (at least), the photometric creation option is different from the color interpretation that we can get/set using the GDAL API. The file's layout and compression strategy is influenced by t
For GeoTIFF (at least), the photometric creation option is different from the color interpretation that we can get/set using the GDAL API. The file's layout and compression strategy is influenced by t
|
By
Sean Gillies
· #186
·
|
|
How to extract DATA_ENCODING creation option type from an input grib2 file for use in the output grib2 file
Hi Shane, Before Rasterio 1.0, the project did record creation options in a custom tag (metadata) namespace. We discovered problems when converting from GeoTIFF to other formats: creation options are
Hi Shane, Before Rasterio 1.0, the project did record creation options in a custom tag (metadata) namespace. We discovered problems when converting from GeoTIFF to other formats: creation options are
|
By
Sean Gillies
· #183
·
|
|
Rewriting uint16 headers with rasterio / applying rio color makes them unreadable by Preview, Photoshop
Hi Ed, Can you try the following variation on your first command? $ rio color -j 1 uint16_image.tif uint16_brightened.tif gamma RGB 1.5 --co photometric=RGB Note the addition of "--co photometric=RGB"
Hi Ed, Can you try the following variation on your first command? $ rio color -j 1 uint16_image.tif uint16_brightened.tif gamma RGB 1.5 --co photometric=RGB Note the addition of "--co photometric=RGB"
|
By
Sean Gillies
· #181
·
|
|
Adding internal API reference links to the narrative docs
Hi all, In the Rasterio quickstart guide I've added some links to API documentation. For example, see the "open()" link under the 2nd code block in https://rasterio.readthedocs.io/en/latest/quickstart
Hi all, In the Rasterio quickstart guide I've added some links to API documentation. For example, see the "open()" link under the 2nd code block in https://rasterio.readthedocs.io/en/latest/quickstart
|
By
Sean Gillies
· #180
·
|
|
Rasterio and PROJ.6 ?
Vincent, We haven't been testing with PROJ 6. It might work. This commit https://github.com/mapbox/rasterio/commit/c5b0d911994ade823a7b5a969071c2c1bd860a11 should address the error message printed to
Vincent, We haven't been testing with PROJ 6. It might work. This commit https://github.com/mapbox/rasterio/commit/c5b0d911994ade823a7b5a969071c2c1bd860a11 should address the error message printed to
|
By
Sean Gillies
· #179
·
|
|
cannot find API reference anymore
This issue has been resolved. Check the project issue tracker's recently closed issues for details.
This issue has been resolved. Check the project issue tracker's recently closed issues for details.
|
By
Sean Gillies
· #175
·
|
|
issue with opening/closing datasets
Amine, I'm sorry about the confusion. I would rather not comment on the structure of your application. Your original question was about the warnings being printed in your shell, yes? I pointed out tha
Amine, I'm sorry about the confusion. I would rather not comment on the structure of your application. Your original question was about the warnings being printed in your shell, yes? I pointed out tha
|
By
Sean Gillies
· #174
·
|