PyUTLoc is implemented as a modular Python package designed to address the challenges of heterogeneous spatial location transformation through a unified framework. The implementation follows a layered architecture that separates concerns into distinct functional modules while maintaining interoperability between components. The package consists of three primary modules: annotation, geocoding, and transformation, each serving a specific role in the coordinate processing pipeline.
Project description
# PyUTLoc Usage Guide
## 1. PyPI Installation
Run the following command in your terminal to install the latest stable version:
`bash pip install PyUTLoc `
## 2. Basic Usage Example
The following example demonstrates how to use PyUTLoc to transform a place name (“Addis Ababa”) into a unified DD1 coordinate, and then convert it to UTM1 format:
### Step 1: Import Core Modules
`python from pyutloc.geocoding import arcgis_geocoding from pyutloc.annotation import get_coordinate_type from pyutloc.transformation import DD1toOthers `
### Step 2: Geocode Place Name to DD1 Coordinates
`python placename = "Addis Ababa" dd1_coords, crs = arcgis_geocoding(placename) # Output: (9.01, 38.76), "WGS84" `
### Step 3: Annotate Coordinate Type (Verify DD1)
`python coord_str = f"{dd1_coords[0]} {dd1_coords[1]}" coord_type = get_coordinate_type(coord_str) # Output: "DD1" `
### Step 4: Convert DD1 to UTM1
`python dd1_converter = DD1toOthers(dd1_coords[0], dd1_coords[1]) utm1_coords = dd1_converter.dd1_to_utm1() # Output: "38N 401234 9987654" `
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 Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyutloc-1.0.1.tar.gz.
File metadata
- Download URL: pyutloc-1.0.1.tar.gz
- Upload date:
- Size: 15.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c774f6dbad4e48246663dd2dc030e383ff83d88ae981f800f51e4d6ca7a85e1
|
|
| MD5 |
8eef20c3d1e9014a02daf8e3ff6168af
|
|
| BLAKE2b-256 |
ab49c6604e9f31c8559020b966caa0045a5f22d4bf60a9320b8dba862d69564a
|
File details
Details for the file pyutloc-1.0.1-py2.py3-none-any.whl.
File metadata
- Download URL: pyutloc-1.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 15.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6877a9e987295194ece441643a75676442d01e55814981b320fff18c307a5fd
|
|
| MD5 |
2d867a69452f2451eac4423c5bca4c34
|
|
| BLAKE2b-256 |
21fca8208a13a9ecf4d02d3b3964f3435c0a15a1379602149514c8ad4eccc4ae
|