No project description provided
Project description
GEO-WKT
Description
GEO-WKT CLI is a Hatch-managed Python command-line utility for converting and reprojecting geospatial geometries. The tool supports converting GeoJSON → WKT, reading geometries from local or remote STAC Item files, and reprojecting WKT → WKT to user-defined EPSG coordinate systems.
Table of Contents
Key Features
-
GeoJSON to WKT Conversion Convert raw GeoJSON input or extract geometry from STAC Items (local JSON files or HTTP URLs).
-
WKT Reprojection Reproject WKT geometries from the default
EPSG:4326to any EPSG code specified by the user.
Installation
Requirements
- Hatch installed:
pip install hatch
You can install the wktgeo package directly from PyPI:
pip install wktgeo
Create the Hatch Environment
hatch shell
Usage
Display Help
hatch run wktgeo --help
1. Convert GeoJSON → WKT
Using a GeoJSON string:
hatch run wktgeo \
--recipe wkt \
--geo '{"type": "Point", "coordinates": [12.5, 41.9]}'
Using a local STAC Item file:
hatch run wktgeo --recipe wkt --stac ./item.json
Using a remote STAC Item:
hatch run wktgeo --recipe wkt --stac https://example.com/stac-item.json
2. Reproject WKT → WKT
Reproject geometry from EPSG:4326 to EPSG:3857:
hatch run wktgeo \
--recipe epsg \
--geo "POINT (12.5 41.9)" \
--target-epsg 3857
Development
Running the CLI During Development
hatch run wktgeo --help
License
wkt is distributed under the terms of the MIT license.
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 wktgeo-0.1.2.tar.gz.
File metadata
- Download URL: wktgeo-0.1.2.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62d7fe0a296e0c45a7f7782fe7f1c8068f1e7b8e9010b0406b2de6d7ab9b7115
|
|
| MD5 |
d383d6fb7f68059d44932b027c3654fe
|
|
| BLAKE2b-256 |
89e74cbea34aaa8d33b7f6c289c9926638a1d7f1afe2198c0b21cba285f1c5bf
|
File details
Details for the file wktgeo-0.1.2-py3-none-any.whl.
File metadata
- Download URL: wktgeo-0.1.2-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c0f30775e6f3747b533f9a99e58085071043b6d1ee5f537bf75015651e276ed
|
|
| MD5 |
96c2c4d119c1a804c1e0252a1a789b3e
|
|
| BLAKE2b-256 |
a0581280b40f74b06e7a76af600f27f0e0e45eb4297f55226804c951960e1dcd
|