[gdal-dev] OGR GeoJSON output

Even Rouault even.rouault at spatialys.com
Sun Dec 17 13:03:42 PST 2017


On lundi 18 décembre 2017 09:36:10 CET Jeremy Palmer wrote:
> I have a table without a geometry field and would like to create a simple
> JSON file containing property key-pairs values without the GeoJSON schema.
> Is this possible with ogr2ogr?

Jeremy,

Given test.csv

id,val
1,100
2,200


$ ogr2ogr -f geojson /vsistdout/ test.csv -oo AUTODETECT_TYPE=YES  | jq  "[.features[].properties]"

[
  {
    "id": 1,
    "val": 100
  },
  {
    "id": 2,
    "val": 200
  }
]


Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20171217/4cd135eb/attachment.html>


More information about the gdal-dev mailing list