Skip to main content
2 of 5
added 6 characters in body; edited tags; edited title
Kadir Şahbaz
  • 78k
  • 57
  • 257
  • 404

Error while converting multiple layers (WFS) to one GeoPackage

When I want to convert this WFS service as GeoPackage using ogr2ogr on macOS, an error occurred with these messages

Warning 6: driver ESRIJSON does not support open option NATIVE_DATA
ERROR 1: Invalid FeatureCollection object. Missing 'fields' member.
ERROR 1: Layer schema generation failed.
ERROR 4: Failed to read ESRIJSON data

The full ogr2ogr command :

ogr2ogr -f GPKG -skipfailures floridaData.gpkg "https://services.arcgis.com/V6ZHFr6zdgNZuVG0/ArcGIS/rest/services/COVID19Surge_Florida_InterventionScenarios/FeatureServer/query?layerDefs=%7B%220%22%3A%22OBJECTID+%3C1000%22%2C%221%22%3A%22OBJECTID+%3C1000%22%7D&geometryType=esriGeometryEnvelope&spatialRel=esriSpatialRelIntersects&outSR=4362&returnGeometry=true&sqlFormat=standard&f=json&maxRecordCountFactor=30&outFields=*&returnExceededLimitFeatures=false&resultType=tile"