webtrees / geodata

Geographic data for webtrees
9 stars 7 forks source link

Adding Norway, Fylker, municipalities #30

Closed Amgine0 closed 6 years ago

Amgine0 commented 6 years ago

Added Norway, 18 fylke, 422 municipalities

fisharebest commented 6 years ago

Thanks!

fisharebest commented 6 years ago

@Amgine0

I guess you have a script to import from wikipedia?

Two things.

Firstly, in the data.geojson files, the place names have underscores in the names instead of spaces. e.g. "fr": "Comté_d'Østfold", instead of "fr": "Comté d'Østfold",

Secondly, the filenames need to contain ASCII only. Different filesytems have different representations, so we end up with things like:

$ git status
    ...
    modified:   data/Norway/data.geojson
    modified:   "data/Norway/\303\230stfold/data.geojson"

Do you want to create another pull-request for this, or do you want me to do it?

fisharebest commented 6 years ago

The tools/repair command will now replace underscores with spaces. I have used it to update the Norway data.

Amgine0 commented 6 years ago

I have been using tools/wiki-place for importing from wikipedia. I could rig my own script to parse the data via the api, but I do not know the geojson format.

I should mention the translations pulled from en.WP will include a percentage with incorrect names based on mediawiki's title collision.