[gdal-dev] GDAL OGR2OGR MVT format multiple layers

rmaddu rajeshreddy_m at yahoo.co.in
Sun Apr 12 12:05:40 PDT 2020


Hi,
I am writing data from json to MVT format using OGR2OGR. My requirement is
to generate multiple layers. When I open metadata.json, layerCount =1
always, i.e., single layer. How to give input as multiple layers?

How to get multiple layers in metadata.json?

I tried with below content as JSON, but not getting- 
[
 "layers": [
 { "type": "FeatureCollection",
    "name" : "Breaker",
    "features": [
      { "type": "Feature",
        "geometry": {"type": "Point", "coordinates": [102.0, 0.5]},
        "properties": {"prop0": "value0"}
        }
       ]
     },
{ "type": "FeatureCollection",
    "name" : "PCond",
    "features": [
      { "type": "Feature",
        "geometry": {"type": "Point", "coordinates": [102.0, 0.5]},
        "properties": {"prop0": "value0"}
        }
       ]
     }
  ]
]


If I place multiple shape files (multiple layers) and write those to MVT,
seeing multiple layers in metadata.json. But I want to use JSON input.

Regards,
Rajesh



--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html


More information about the gdal-dev mailing list