Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert map from CSV to GeoJSON #37

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

HadrienPatte
Copy link
Member

Pourquoi :

  • supprime la dependance a google maps -> les fichiers geojson peuvent etre visualises directement sur github
  • permet egalement de remplacer la framacarte embed sur https://supelec-rezo.github.io/membres
  • j'avais envie de tester geojson + github

Comment verifier la conversion CSV -> geojson :

sed 's#^\([^,]*\),\([^,]*\),\([^,]*\),\([^,]*\),\([^,]*\),\([^,]*\)$#    {\n      "type": "Feature",\n      "geometry": {\n        "type": "Point",\n        "coordinates": [\n          \6,\n          \5\n        ]\n      },\n      "properties": {\n        "pseudo": "\1",\n        "name": "\2",\n        "promo": "\3",\n        "last_update": "\4"\n      }\n    },#g' map.csv

(utiliser gnu-sed sur un mac)

Reste a faire :

  • valider le geojson (avec quelquechose comme ca ou ca)

Choses a tester :

@HadrienPatte HadrienPatte requested a review from remram44 June 29, 2020 06:19
@remram44
Copy link
Member

Si y'a moyen de colorer par promo je suis pour !

@remram44
Copy link
Member

remram44 commented Aug 26, 2020

Ce serait peut-être mieux de générer le JSON à partir du CSV (via CI), sinon c'est quand même galère à maintenir...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants