geotwd

Conversion from x/y (TWD67 or TWD97) to lat/lon (WGS84)


Keywords
twd67, twd97, wgs84, transform
License
MIT
Install
pip install geotwd==0.1

Documentation

geo-twd

Conversion from x/y (TWD67 or TWD97) to lat/lon (WGS84). The algorithms and parameters are based on Universal Transverse Mercator coordinate system and Taiwan datums. The 2-degree transverse Mercator of TWD67 is transformed to TWD97 first then transformed to latitude and longitude of WGS84.

Installation

$ pip install geotwd

Sample codes

>>> import geotwd
>>> geotwd.to_wgs84(305787.783, 2784799.355)
(25.170699408342106, 121.55344420780119)

>>> geotwd.to_wgs84(304956.927, 2785003.304, twd67=True)
(25.1707037238667, 121.55344252881788)