Re: [gdal-dev] Creating a vector mbtile with several layers

2022-08-18 Thread DELEPINE Christophe via gdal-dev
Hello I want to implement a vector mbtile viewer and am considering using gdal to extract the data. I am wondering if gdal public API allows to : - Retrieve metadata such as : o the min and max zoom levels for each layer o the min and max tile indexes for each layer and zoom level

Re: [gdal-dev] Multiproc stub by default

2022-07-04 Thread DELEPINE Christophe via gdal-dev
You are right, Even Sorry for the confusion ! ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] Multiproc stub by default

2022-07-04 Thread DELEPINE Christophe via gdal-dev
Hi Even I have looked at cpl_multiproc.cpp implementation and I believe that I cannot use multithreading for the mbtiles conversion (even if I define GDAL_NUM_THREADS) The compilation of cpl_multiproc.cpp depends on several compilation flags : ·CPL_MULTIPROC_STUB ·CPL_MULT

Re: [gdal-dev] Creating a vector mbtile with several layers

2022-07-01 Thread DELEPINE Christophe via gdal-dev
Hi Even I managed to get it working. There was a bug in my code which prevented features to be added to the second layer. In that case, the driver does not export the empty layer. In the MVT driver documentation, it says : Part of the conversion is multi-threaded by default, using as many threa

Re: [gdal-dev] Creating a vector mbtile with several layers

2022-07-01 Thread DELEPINE Christophe via gdal-dev
I also tried the MVT driver and got the same problem : the output metadata.json only lists one layer. Should I create all layers first before adding features to them ? The C++ API documentation does not explain how to write several layers in the case of a MBTILES/MVT dataset De : DELEPINE Chri

[gdal-dev] Creating a vector mbtile with several layers

2022-06-30 Thread DELEPINE Christophe via gdal-dev
Hello I am trying to create a vector mbtile containing several layers (using C++ GDAL API) but it does not work. My output mbtile only contains one layer (ogrinfo only lists one layer) What I do is the following : GDALDriver* driver = (GDALDriver*)GDALGetDriverByName("MBTiles"); GDALDataset* po