Comments (3)
related #26
from shikuchoson-hazardmap-template.
Social Hack Day 36 議論メモ
with @hwakimoto @ei-blue @YutoShiota
課題
fetch-city-osm.js の上記の箇所が問題。
- 比企郡は admin_level が 6
- 上京区は admin_level が 8
そのため、比企郡や上京区は現在のクエリでは取得できない。
また、「比企郡小川町」や「京都市上京区」は完全一致する地物(?)が OSM にないため、引っかからない。
組み合わせずに「比企郡」「小川町」「京都市」「上京区」といった単位でクエリする必要がある。
解決案
- admin_level の指定をなくす
- もともと想定外の事態をなくすために導入していたが、むしろこれが問題になっているので必要なさそう
- 「比企郡小川町」や「京都市上京区」といった入力そのものに対応するのではなく、ドキュメントでカバーする
- 直感としては上記を入力したくなるが、パース等で対応するのが困難なため
from shikuchoson-hazardmap-template.
#20 で OpenStreetMap の Overpass API ではなく、https://nlftp.mlit.go.jp/ksj/gml/datalist/KsjTmplt-N03-v3_0.html から作成した https://github.com/sankichi92/shikuchoson-boundaries を使用するようにしました。
これにより設定項目も以下のように少し厳密になったので、こちらクローズします。
shikuchoson-hazardmap-template/hazardmap-config.jsonc
Lines 2 to 13 in 23d2b72
from shikuchoson-hazardmap-template.
Related Issues (20)
- モバイル端末で左下ボタン・画像がうまく機能しない HOT 5
- 行政区界を OSM ではなく国のデータから取得する HOT 1
- PR に対してビルドが通るかチェックする CI を設定する
- ライセンスの選定 HOT 2
- PWA 化 HOT 1
- scripts 以下のスクリプトの異常系考慮・テスト追加
- テストの追加
- 政令指定都市の区の単位で地図を作成できない HOT 1
- 農水省のため池ハザードマップを追加できるようにしたい HOT 7
- テンプレート利用後のバージョンアップ追従 HOT 1
- チェックボックスをカテゴリ分けしたい
- Bootstrap への依存をなくす HOT 1
- CSV のレイヤのポップアップでリンクを貼れるようにする
- 各レイヤのデフォルトオン・オフを設定できるようにする
- src/generated 以下に生成される JSON について型を書く HOT 1
- 凡例をいい感じにしたい
- CSV で追加したレイヤのうち8番目のマーカーアイコンが表示されない HOT 2
- 初回デプロイに失敗する
- GitHub Actionsの権限設定について HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shikuchoson-hazardmap-template.