No project description provided
Project description
jismeshcode
このライブラリは
- 地域メッシュコードを操作するライブラリです
- 現在はメッシュコードに対応する矩形をジオデータ(GeoJSON)に変換する関数が提供されています
インストール
- 環境
- Python 3.8 以上
pip install jismeshcode
使い方
mc2geojson
- 入力
- メッシュコード(4, 6, 8, 9, 10, 11 桁)
- 出力
- メッシュコードで表されるエリアを囲うポリゴンを表す GeoJSON を返す
>>> from jismeshcode.jismeshcode import mc2geojson
>>> mc2geojson(5439)
'{"type": "Feature", "geometry": {"type": "Polygon", "coordinates": [[[139, 36.0], [140, 36.0], [140, 36.666666666666664], [139, 36.666666666666664], [139, 36.0]]]}, "properties": {"meshcode": "5439"}}'
latlon2mc
- 入力
- 緯度, 経度, 返り値としたいメッシュコードの桁数(4, 6, 8, 9, 10, 11 桁)
- 出力
- 緯度経度からメッシュコードを返す
>>> from jismeshcode.jismeshcode import latlon2mc
>>> latlon2mc(36.2010417, 138.415625, 6)
'543823'
ハンズオン
- tutorials/jismeshcode.ipynb
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jismeshcode-0.1.7.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for jismeshcode-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f86ac4f0f08c4cdc571c1e8e188155459766d9ffff2548756e247f742899479 |
|
MD5 | 8409790e436f3157401acac528c80f1d |
|
BLAKE2b-256 | 516cf015bf0a120ef37d18fec5f695289562cfd1a1607f840de1979476ce5711 |