Re: [gdal-dev] vsis3/vsicurl allowed-extensions per path?

2018-10-11 Thread Sean Gillies
Hi Rob, On Wed, Oct 10, 2018 at 11:12 AM Robert Coup wrote: > Hi Sean, > > Configuration management doesn't have to be so bad. I have an example of >> how to do Rasterio-style configuration contexts, including reset, using >> GDAL's Python bindings at >> >> >> https://rasterio.readthedocs.io/en/

Re: [gdal-dev] Best method to extract regions from a raster into a memory buffer

2018-10-11 Thread Aurélien Albert
Yes, you're right, I may need some extra pixels on the boundaries (depend on the resampling method). Does not GDAL manage this by itself ? I mean, if you ask for a warp, it doesn't read all necessary pixel to do the resampling ? Since GDAL 2.0, there is some API changes, and I'm looking for t

Re: [gdal-dev] Best method to extract regions from a raster into a memory buffer

2018-10-11 Thread Joaquim Manuel Freire Luís
Hi, I think you need an extra point. If you will be doing resampling than you need extra row/columns for the boundary conditions (one for linear, two for spline/bicubic). Regarding 2) the options are: round to closest node, or to the inner or to the outer node. Joaquim From: gdal-dev On Be

[gdal-dev] Best method to extract regions from a raster into a memory buffer

2018-10-11 Thread Aurélien Albert
Hi, I'm doing C++ applications and I'm familiar with GDAL 1.7 C/C++ API. For a new application, I'm switching to GDAL 2.2. In this application, I have the need to extract a region from a raster : Let's say I have 4000px x 4000px elevation raster, covering the whole earth, in EPSG 4326. No