Giter Site home page Giter Site logo

japan-mesh-tool's Issues

Incorrect Mesh code of the Secondary Area Partition

Thank you for making this package. I tried to get the output of the Secondary Area Partition with the python command and found what I think a bug.

Command Sample
python python/japanmesh/main.py 2 -e 134.7510,33.1147 137.7196,37.9844

Problem description
In the case when either or both of the last 2-digits is greater than or equal to 5, the first 4-digit number that indicates the Primary Area Partition seems incorrect.

5236

Expected Output
Please refer to the link: 全国標準地域メッシュ2次メッシュ(約10㎞四方)

mesh 7 code is wrong

on below image, mesh 7 code should starts with 6445...

produced with command

poetry run python src/japanmesh/main.py 7 -e 145,43 145.5,43.25

想定されるテストケース

self.assertEqual(get_mesh(7, 18640, 27760)["code"], "6445526400")  # 根室
image

メッシュコードの割り振り規則(JISX0410に準拠すべきか)

https://qiita.com/Kanahiro/items/78078ef0da47f8280825にて@warenashiさんからいただいたご意見

JISX0410 とルールが違いますね。
以下のページからX0410で検索して確認してみてください。(直接リンク張れないのでので面倒ですけど検索してください)
https://www.jisc.go.jp/app/jis/general/GnrJISSearch.html
JISX0410 に則ったルールの方が望ましいと思います。

  • 3次以下の分割地域メッシュは確かにこれが主流のよう
  • 250m→50mメッシュは同じ規則が通じないので、メッシュサイズごとに異なる規則が必要になる
    • 現状は3次以降は全て同じ規則が適用されている

5mメッシュへの拡張

https://qiita.com/Kanahiro/items/78078ef0da47f8280825 にて@sakuya_izayoiさんよりいただいたご意見

2020-10-21 16:54
すごい。10mメッシュまで完成している。
5mメッシュまで拡張は可能でしょうか?

この点、対応は容易だが、あわせてメッシュ定義および処理の抽象化を行いたい

https://github.com/Kanahiro/japanmesh-js
上記は本リポジトリの処理をもとに作成したnpmモジュールのリポジトリ
こちらではメッシュ定義がより洗練されており、親要素に対する割合を用いてメッシュを計算するようになっている
この処理を逆輸入する形で本issueへの対応をしてみたい

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.