Skip to main content

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

Metadata

Release files for coordinates-converter 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for coordinates-converter 0.1.0
File Size Uploaded
coordinates converter-0.1.0.tar.gz 9.3 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for coordinates-converter 0.1.0
File Interpreter ABI Platform
coordinates_converter-0.1.0-py3-none-any.whl Python 3 none any Details
coordinates_converter-0.1.0-py2-none-any.whl Python 2 none any Details

Total release size: 33.2 kB

Release files / coordinates converter-0.1.0.tar.gz

Download URL coordinates converter-0.1.0.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a4cf6e4f2ddad7bd83db23f86a50eac20f68753914a2f3487a35a3c47b0787b3
BLAKE2b-256 checksum
How to use checksums
9bac434a10eaa651a48f64ad80603eaa157f79791300727dde510c0378579ef6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

Release files / coordinates_converter-0.1.0-py3-none-any.whl

Download URL coordinates_converter-0.1.0-py3-none-any.whl
Size 11.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
896df6d7f08bf699bd9f2931caed3fa6fb05e4b74a5b748ce8cae13dedc99e41
BLAKE2b-256 checksum
How to use checksums
9bca9b5667a820b365172ce6237824a7866a2b7b9f07d4c3c7eae91fe65d1f3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

Release files / coordinates_converter-0.1.0-py2-none-any.whl

Download URL coordinates_converter-0.1.0-py2-none-any.whl
Size 11.9 kB
Tags Python 2
SHA-256 checksum
How to use checksums
6f1c2e8ad0445ee462a91bccda53b9834889ad62e3d94d3e84aa5402815ce577
BLAKE2b-256 checksum
How to use checksums
b1122321510dbf0373a1dfaf21909c02e1d1aa993af05c5a45aeb762d15da1ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.1.0 This release

3 release files

0.0.4

3 release files

0.0.2

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page