Skip to main content
6 of 6
Corrected grammar, typos, spelling; added gdal tag.
Steven Kay
  • 20.6k
  • 5
  • 34
  • 82

ogr2ogr : Converting KML to GeoJson

I have a requirement to convert .KML file to GeoJSON or JSON. Can you please recommend open source command line tools on GNU/Linux(2.6.32-358.14.1.el6.x86_64)? I have installed gdal, when I run..

ogr2ogr -f "GeoJSON" geojson.json Areas.kml

I get this error :-

Unable to open datasource `Areas.kml' with the following drivers. -> ESRI Shapefile -> MapInfo File -> UK .NTF -> SDTS -> TIGER -> S57 -> DGN -> VRT -> REC -> Memory -> BNA -> CSV -> GML -> GPX -> KML -> GeoJSON -> GMT -> AVCBin

user3509290
  • 101
  • 1
  • 1
  • 4