L-Est97 to WGS84 coordinates converter with GUI interface
Project description
L-Est97 to WGS84 coordinates converter
Simple application for converting L-Est97 to WGS84 coordinates. This application has GUI, but it can also be used programmatically.
Runs on Python 2.7 and Python 3
Installation
Application can be installed via pip:
pip install coordinates-converter
Usage
To launch GUI application write the following command to the terminal.
coordinates-app
If users want to convert coordinates in the code, then simple api is provided:
from coordinates.converter import CoordinateConverter, WGS84, L_Est97
converter = CoordinateConverter
# converting to L-Est97
wgs_point = WGS84(lat=59.39528, long=24.664104611385)
print(converter.wgs84_to_l_est97(wgs_point))
# converting to WGS84
est97_point = L_Est97(x=6543210.14, y=543210.86)
print(converter.l_est97_to_wgs84(est97_point))
# module can also convert decimal degrees to degree-minute-second system
from coordinates.converter import convert_decimal_to_degrees, convert_degrees_to_decimal
print(convert_decimal_to_degrees(10.51))
print(convert_degrees_to_decimal(10, 30, 36.0))
# L-Est97 system has coordinate boundaries where it can be used.
# These boundaries can be checked with validator
from coordinates.converter import LEst97CoordinatesValidator
validator = LEst97CoordinatesValidator()
print(validator.validate_projected_x(6543210.14))
print(validator.validate_projected_y(543210.86))
print(validator.validate_wgs84_latitude(59.39528))
print(validator.validate_wgs84_longitude(21.09))
Documentation
TODO
Developer guide.
Installation
Sourcecode can be found in GitLab
For building the app from source, run
pip install -editable .
Tests
Tests are written in pytest and for running tests pytest is needed.
To install pytest run:
pip install pytest
To execute test suite:
python -m pytest tests/
Code Quality
Continuous integration environment checks that code complies with PEP8 checcks. For testing code quality flake8 is used.
To install flake8 tests it must be installed:
pip install flake8
Flake8 tests can be run with following command:
flake8 coordinates/
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
Built Distributions
Hashes for coordinates converter-0.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 006dbf7a02895687981de356d6d205844a2ae2bffae3e610b5ba09f6062b786b |
|
MD5 | 9675c267f73989796264b50964038819 |
|
BLAKE2b-256 | bc73900f8df2610e40c317894c5422316484fdb07d96159dcf58492a8c19d2dd |
Hashes for coordinates_converter-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a84eb72dc6305069ee0f56538ef453348544d7b08b1d9bab97576fa48c05306 |
|
MD5 | 126cc5f763f3fea33443765ab81a7e1d |
|
BLAKE2b-256 | 955b36a01a8af9d858313502b7943ac9fc5f592bb65150b783a60b5cf0108555 |
Hashes for coordinates_converter-0.0.4-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd761d72ead835c323564e3b9bd2627803eed69134093251a8e0f76c907a22fd |
|
MD5 | 798669d793f4e26db4d43e5c35c6b2f3 |
|
BLAKE2b-256 | 0aec38b618e97e6b4dd4ada8f53faa207d6cb527e51e6410bb5a549ae4e99de1 |