[gdal-dev] ogr2ogr MVT use of CONF parameter

Even Rouault even.rouault at spatialys.com
Wed Jun 19 03:25:44 PDT 2019


> ogr2ogr -F MVT test6.mbtiles 8-0.0-55.0.sqlite -dsco CONF=conf.json -dsco
> FORMAT=MBTILES
> 

Actually currently, the CONF option only accepts a JSon string, not a 
filename.
So currently, you should provide inline, with proper escaping.
Something like that (but not completely sure of escaping rules in windows 
shells)

-dsco CONF="{ \"poly\": { \"target_name\": \"mypoly\" } }"

That said, I've just added support for accepting a filename as well (in master 
and backported to 3.0 branch), since that is completely reasonable as an 
expectation.

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list