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-0.0.15.tar.gz
(14.8 kB
view hashes)
Built Distribution
WKTUtils-0.0.15-py3-none-any.whl
(16.5 kB
view hashes)
Close
Hashes for WKTUtils-0.0.15-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 545a8627675ce4dd4a7f53e636006a7f53f5d5f6990cc9a24bee009a67b7a3d2 |
|
MD5 | 603db8886b98c9c758e0688d21a4855f |
|
BLAKE2b-256 | b775b91cad968f5f44ab217b30498fdce60160f8d4618154e26360c0be951df8 |