barjacks / Swiss-Singles-Map

Mapping out the male and female single surplus on municipal level in Switzerland
MIT License
1 stars 1 forks source link

D3 files #2

Closed palrogg closed 7 years ago

palrogg commented 7 years ago

This pull request contains material for a D3 map:

A mapping function still needs to be added in the JavaScript.

[The first step was:

capture d ecran 2016-09-21 a 22 35 26

If you'd like to play a bit with this... I'll keep updating it anyway]

palrogg commented 7 years ago

The kmz file wasn't good: the towns aren't polygons, but lines, and most of them aren't complete. The names are only available in another layer as a point inside the lines. See below:

capture d ecran 2016-09-22 a 11 50 36

The shp file is much better. Complete lines and good attributes (OBJECTVAL is the town number):

capture d ecran 2016-09-22 a 15 43 38

But it isn't saved as polygons. Hence some problems. To be continued.

palrogg commented 7 years ago

This crazy result…

capture d ecran 2016-09-22 a 12 22 16

Was because QGIS automatically selected another coordinate system than WGS 84 for the export.

Nota bene: be sure WGS 84 is selected here

capture d ecran 2016-09-22 a 16 06 34
palrogg commented 7 years ago

The topojson is ready! We need to add a "town id" column in the CSV files (done), then use it to merge the geodata and the datasets.

capture d ecran 2016-09-22 a 16 14 11
palrogg commented 7 years ago

New features:

capture d ecran 2016-09-23 a 10 20 36