Re: [gdal-dev] Confusion regarding GeoPDF composition.xml units

2020-09-21 Thread Nyall Dawson
On Tue, 22 Sep 2020 at 16:36, Andrea Giudiceandrea wrote: > > Nyall Dawson wrote > > Actually it's a bit more complex than this, because regardless of the > > DPI specified for the page, the width/height have to be specified in > > size in inches * 72! (i.e. there's a hardcoded 72 dpi assumption >

[gdal-dev] Confusion regarding GeoPDF composition.xml units

2020-09-21 Thread Nyall Dawson
Hi list, While attempting to fix https://github.com/qgis/QGIS/issues/33465 I'm running into some confusion about the meaning of pdfCoordinateType values in GeoPDF composition.xml files. The example composition.xml from https://gdal.org/drivers/raster/pdf.html includes: 72 10

Re: [gdal-dev] How to return an empty MVT tile with gdal.VectorTranslate in C++

2020-09-21 Thread Even Rouault
> How to get an empty mvt tile file with zero features? or How to create an > empty mvt file with no features using gdal? I don't think you can. As it is written, the driver will avoid generating empty tiles. You'll have to create them with other tools, or add that capability to the driver. Ev

[gdal-dev] How to return an empty MVT tile with gdal.VectorTranslate in C++

2020-09-21 Thread MRRAJESH
Developers, I am using below in C++ GDALVectorTranslate to create MVT files in vsibuf. In this case, the input file in having zero features, hence it is not creating tiles in memory. dst = (GDALDataset *)GDALVectorTranslate(vsibuf, NULL, 1, &hSrcDS, opt, NULL); Whenever we accessing for an