A few WKT utilities for use elsewhere
Project description
Discovery-WKTUtils
To Install as Package, add the following line to requirements.txt:
git+https://github.com/asfadmin/Discovery-WKTUtils.git@prod#egg=WKTUtils
(The package name will be 'WKTUtils'. You can change 'prod' to desired branch).
Install the requirements file:
python3 -m pip install -r requirements.ext --upgrade
FilesToWKT:
You must open shapefiles in read binary mode, before passing them into the function.
from WKTUtils.FilesToWKT import filesToWKT
f = open("path/to/file.shp", "rb")
# NOTE: f can be a list of files too. filesToWKT([f1, f2, ...]).getWKT()
wkt = filesToWKT(f).getWKT()
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
wktutils-2.0.0.tar.gz
(4.6 MB
view details)
Built Distribution
WKTUtils-2.0.0-py3-none-any.whl
(16.9 kB
view details)
File details
Details for the file wktutils-2.0.0.tar.gz
.
File metadata
- Download URL: wktutils-2.0.0.tar.gz
- Upload date:
- Size: 4.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9bc132e86f4efbe59e7f825de36bb343ec89bdc30dd242e163b5cb398be57fa |
|
MD5 | 6fdf67e76722973b35963aac758d743a |
|
BLAKE2b-256 | a53e57ae381ea2c1ded6e8d5646889d1fdd915fb56faf56b085383a8057334a1 |
File details
Details for the file WKTUtils-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: WKTUtils-2.0.0-py3-none-any.whl
- Upload date:
- Size: 16.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c91ec82c756878c4757bac17db38ac3855eb5fc6ec3a4e43665105926860718 |
|
MD5 | 1327455683e60863ee3790a64f84795f |
|
BLAKE2b-256 | fa4669ea8fa5ffd079a13bf21725cbd13d16ffe99e87125eef7e6c4a5702fff3 |