Re: [gdal-dev] Creation of a new driver from scratch

2023-08-30 Thread Even Rouault
Abel, I am interested in proportionate 3 ways of proceeding when a used calls translation from one format to our format. way 1: force to write V1.1 and stop writing features if the limit is reached. way 2: force to write V2.0 (and stop writing features if the limit is reached (it will no happe

[gdal-dev] Universal raster to rgba?

2023-08-30 Thread Michael Katz via gdal-dev
In our program, we want the user to be able to open and view any raster map. As I understand it, and as we use it in our program, the GDAL API lets you read all sorts of raster files, but it presents them to you in a general form: a certain number of bands, where the bands can have a certain dat

Re: [gdal-dev] Creation of a new driver from scratch

2023-08-30 Thread Abel Pau
Hi again, answering the question of number of features I can see that there is a capability for that! #define OLCFastFeatureCount\ "FastFeatureCount" /**< Layer capability for fast feature count retrieval \ But as Even said it’s not accessi

Re: [gdal-dev] Creation of a new driver from scratch

2023-08-30 Thread Abel Pau
Hi Javier, thanks for your answer. It’s very similar, yes. I’ll try to use it in my driver. While fetching features I have some information in memory (always 64bits variables) and some in memory-disk (it’s a buffer that writes everything in disk when it’s full as many times as needed). If, in th

Re: [gdal-dev] /vsis3/ on NetCDF from Earthdata

2023-08-30 Thread b.coerver--- via gdal-dev
I found a solution in the meantime, so no need to reply anymore: Using gdalmdimtranslate with the -array flag to select the group and array as e.g. “/geolocation_data/longitude” downloads the array and nothing else (bytes transferred around 80MB). Regards,Bert From: gdal-dev on behalf of bcoerver-

Re: [gdal-dev] Creation of a new driver from scratch

2023-08-30 Thread Javier Jimenez Shaw
That sounds very similar to BIGTIFF option in GeoTIFF driver. also a bit like GEOTIFF_VERSION option. https://gdal.org/drivers/raster/gtiff.html You can change that in the middle of the writing? wow. On Wed, 30 Aug 2023 at 06:21, Abel Pau wrote: > Hi again, > I hope you have had nice holidays!

Re: [gdal-dev] /vsis3/ on NetCDF from Earthdata

2023-08-30 Thread b.coerver--- via gdal-dev
Hi Even, Thanks for you response. Is there any way to disable this automatic sampling of the latitude and longitude subdatasets? The file I’m accessing is 182.2MB in size, when I download one of its subdatasets using gdal_translate I can see on my network that the process transfers roughly the same

[gdal-dev] multidim arraySpecs/GetView

2023-08-30 Thread Michael Sumner
Hi, hoping to check my syntax ... or expectations ... I'm expecting this to subset by step the 20x20 array in this netcdf, but getting no change in python MultiDimTranslate or at command line: ds = gdal.OpenEx('gdrivers/data/netcdf/byte_no_cf.nc', gdal.OF_MULTIDIM_RASTER) nds = gdal.MultiDimTrans