3

I have downloaded a shapefile of Stockholm (files on GitHub). I'm trying to convert the shapefiles to GeoJSON with the ogr2ogr command line tool. It does not work with the following error:

Export to vector file failed. Error: creation of data source failed (OGR error:Failed to create GeoJSON datasource: test.geojson.)

The method that I'm using is as follows:

  1. Open the Adm.shp file as a layer in QGIS
  2. Right click on the layer and select "Save as..."
  3. Save as GeoJSON

I've tried using different projections and such without success. Does anyone have an idea what could be wrong?

underdark
  • 84,148
  • 21
  • 231
  • 413
seb
  • 205
  • 2
  • 7

1 Answers1

5

When I got that error what caused it was that I tried saving the file to a directory I didn't have write permissions (oops!).

I downloaded the linked shapefile and it converted to GeoJSON just fine, projected in EPSG:3011, all features came over in the file.

HeyOverThere
  • 7,861
  • 1
  • 27
  • 41