D3 javascript and GeoJSON: lines in Stockholm map very strange

المشرف العام

Administrator
طاقم الإدارة
All the code and shapefiles that I'm using are available in this GitHub repo.

I'm trying to draw a map of Stockholm with D3. The shapefile looks ok in QGIS:



However, drawing the GeoJSON produces something that looks like abstract art:.



Is my shapefile corrupted or am I doing something wrong otherwise?

The steps to produce my GeoJSON are as follows:

  1. Open the Adm.shp file as layer in QGIS
  2. Save the layer as GeoJSON
  3. Drawing GeoJSON using D3 in stockholm.html
I have tried ogr2ogr on the command line as well with the same results.



أكثر...
 
أعلى