Skip to main content

# 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" `

Download files

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

Source Distribution

pyutloc-1.0.1.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyutloc-1.0.1-py2.py3-none-any.whl (15.6 kB view details)

Uploaded Python 2Python 3

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

Hashes for pyutloc-1.0.1.tar.gz
Algorithm Hash digest
SHA256 8c774f6dbad4e48246663dd2dc030e383ff83d88ae981f800f51e4d6ca7a85e1
MD5 8eef20c3d1e9014a02daf8e3ff6168af
BLAKE2b-256 ab49c6604e9f31c8559020b966caa0045a5f22d4bf60a9320b8dba862d69564a

See more details on using hashes here.

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

Hashes for pyutloc-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f6877a9e987295194ece441643a75676442d01e55814981b320fff18c307a5fd
MD5 2d867a69452f2451eac4423c5bca4c34
BLAKE2b-256 21fca8208a13a9ecf4d02d3b3964f3435c0a15a1379602149514c8ad4eccc4ae

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 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