Skip to main content

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/


Task specification

Project details


Download files

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

Files for coordinates-converter, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size coordinates_converter-0.1.0-py2-none-any.whl (11.9 kB) File type Wheel Python version py2 Upload date Hashes View hashes
Filename, size coordinates_converter-0.1.0-py3-none-any.whl (11.9 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size coordinates converter-0.1.0.tar.gz (9.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page