Skip to content

Instantly share code, notes, and snippets.

@naogify
Created September 13, 2024 04:02
Show Gist options
  • Save naogify/46e4a1c89aa3daecc2fc05dbce83d025 to your computer and use it in GitHub Desktop.
Save naogify/46e4a1c89aa3daecc2fc05dbce83d025 to your computer and use it in GitHub Desktop.
避難エリアのFIWAREデータをGeoJSONに変換するスクリプト
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