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
Documentation can be found here
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.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4cf6e4f2ddad7bd83db23f86a50eac20f68753914a2f3487a35a3c47b0787b3 |
|
MD5 | cf564d4269eac60d3dd37b718ca06b92 |
|
BLAKE2b-256 | 9bac434a10eaa651a48f64ad80603eaa157f79791300727dde510c0378579ef6 |
Hashes for coordinates_converter-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 896df6d7f08bf699bd9f2931caed3fa6fb05e4b74a5b748ce8cae13dedc99e41 |
|
MD5 | 2a211eebed8d01b9fc99e32879fa68d1 |
|
BLAKE2b-256 | 9bca9b5667a820b365172ce6237824a7866a2b7b9f07d4c3c7eae91fe65d1f3c |
Hashes for coordinates_converter-0.1.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f1c2e8ad0445ee462a91bccda53b9834889ad62e3d94d3e84aa5402815ce577 |
|
MD5 | 55846dd251abac531fb8497178844a58 |
|
BLAKE2b-256 | b1122321510dbf0373a1dfaf21909c02e1d1aa993af05c5a45aeb762d15da1ee |