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
Metadata
Release files for jismeshcode 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jismeshcode-0.1.8.tar.gz | 2.9 kB | Without provenance | Details for jismeshcode-0.1.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jismeshcode-0.1.8-py3-none-any.whl | Python 3 | none | any | Details for jismeshcode-0.1.8-py3-none-any.whl |
Total release size: 6.5 kB
Release files / jismeshcode-0.1.8.tar.gz
| Download URL | jismeshcode-0.1.8.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9494d62966c4f75e8de9c23d022fa9649c2bf6729d0cea1be498f3e701727df4
|
|
BLAKE2b-256 checksum How to use checksums |
3c3dfcfd6616642da6c94db9b0e41804bd05e2d8dfc9ec9f6a1fe5ca47c8c3b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.9.7 Linux/5.10.102.1-microsoft-standard-WSL2
|
Release files / jismeshcode-0.1.8-py3-none-any.whl
| Download URL | jismeshcode-0.1.8-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8cc6d095ba9d762482f357dbad4df755560d8c27d351686805b539aec6d16898
|
|
BLAKE2b-256 checksum How to use checksums |
6ef5399879bd1fd611491b5eaf581fdb08032466bd56768de0240f21ab00325c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.9.7 Linux/5.10.102.1-microsoft-standard-WSL2
|
Security for jismeshcode 0.1.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.