Skip to main content

toflat: Japanese latlong to xy.

Project description

toflat: Japanese latlon to xy.

toflatは、日本の経度緯度情報を持つGeoDataFrameを、簡単に平面直角座標系(JGD2011)に変換するためのPythonモジュールです。これまでのようにEPSGコードを調べなくても、toflatが調べて、GeoDataFrameにCRSを割り当ててくれます。

toflat is a Python module designed to easily convert GeoDataFrames containing longitude and latitude information of Japan into the plane rectangular coordinate system (JGD2011). Unlike before, there is no need to look up EPSG codes, as toflat does the search and assigns the CRS to the GeoDataFrame for you.

インストール方法 Install

pip install git+https://github.com/mazarimono/toflat.git
pip install toflat

使い方 How to Use

from toflat import toflat
data = {
    'name': ['Kyoto Station', 'Kinkaku temple', 'MK bowl', 'Ginaku_temple'],
    'geometry': [point1, point2, point3, point4]
}
gdf = gpd.GeoDataFrame(data, geometry='geometry').set_crs('EPSG:4326')
tf = toflat.ToFlat(gdf)
kyoto_df = tf.to_flat() # CRS EPSG:6674に設定される

License

MIT

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

toflat-0.1.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

toflat-0.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file toflat-0.1.tar.gz.

File metadata

  • Download URL: toflat-0.1.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for toflat-0.1.tar.gz
Algorithm Hash digest
SHA256 c7b1e9229e83ac50acd17bd257db95a04433f543d6d35fa81e2c3f9dc335be21
MD5 b51eb727f630f532ad03773da1b9429b
BLAKE2b-256 1a7d5b7bc5217c4a9bfb9914fb467837e83c9d810dd11bed95014d4fca2aa889

See more details on using hashes here.

File details

Details for the file toflat-0.1-py3-none-any.whl.

File metadata

  • Download URL: toflat-0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for toflat-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5174ad19519fca5c3f8896501fd96039e9823a1aeee96b3cbffd0a4174bd152c
MD5 3553bcf2707385c342850283e2cf4480
BLAKE2b-256 0469f104dc81e83d8bd6c6fcf61300be7de03edf7871bf9753cb08c8846ed52b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page