Created
September 13, 2024 04:02
-
-
Save naogify/46e4a1c89aa3daecc2fc05dbce83d025 to your computer and use it in GitHub Desktop.
避難エリアのFIWAREデータをGeoJSONに変換するスクリプト
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -name "*.json" | while read file; do | |
jq '. | {type: "Feature", geometry: .Location.value, properties: {id: .Identification.value, name: .Name.value}}' "$file" > "${file%.json}.geojson" | |
rm "$file" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment