-
Notifications
You must be signed in to change notification settings - Fork 63
Coordinate calculation
lasalesi edited this page Apr 19, 2021
·
2 revisions
The coordinate calculation allows to convert LV95, LV03 and WGS84/GPS coordinates.
To use the coordinate converter within ERPNext, include it like this
from erpnextswiss.erpnextswiss.swisstopo import GPSConverter
Then, create your instance and use as you like
converter = GPSConverter()
# Coordinates
wgs84 = [47.50564, 8.72413, 0]
# Convert WGS84 to LV03 coordinates
lv03 = converter.WGS84toLV03(wgs84[0], wgs84[1], wgs84[2])
For more information, refer to http://www.swisstopo.admin.ch/internet/swisstopo/en/home/topics/survey/sys/refsys/projections.html