Re: [gdal-dev] Creation of MVT vector tiles with fid

2023-11-25 Thread OpenDEM via gdal-dev
Thanks a lot Even! Best regards, Martin Am 25.11.2023 um 15:14 schrieb Even Rouault: Hi, add -preserve_fid to your ogr2ogr command line. On reading, you'll see it in the mvt_id field (on reading it is not set as a OGR feature id, since a given OGR feature can be split among several tiles,

Re: [gdal-dev] Creation of MVT vector tiles with fid

2023-11-25 Thread Even Rouault via gdal-dev
Hi, add -preserve_fid to your ogr2ogr command line. On reading, you'll see it in the mvt_id field (on reading it is not set as a OGR feature id, since a given OGR feature can be split among several tiles, leading to several features when reading back, hence it is exposed as an attribute field

[gdal-dev] Creation of MVT vector tiles with fid

2023-11-25 Thread OpenDEM via gdal-dev
Can someone please tell me how to prepare the data for the creation of MVT vector tiles with a fid? ogr2ogr -f MVT outputfolder input.geojson (or PostGIS or ...) -dsco MINZOOM=0 -dsco MAXZOOM=6 -dsco COMPRESS=NO Best regards, Martin ___ gdal-dev m