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-1.0.0.tar.gz
(14.7 kB
view details)
Built Distribution
WKTUtils-1.0.0-py3-none-any.whl
(16.5 kB
view details)
File details
Details for the file WKTUtils-1.0.0.tar.gz
.
File metadata
- Download URL: WKTUtils-1.0.0.tar.gz
- Upload date:
- Size: 14.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06254627126f92d1f963e2f4e98bb2332ffd2470303d1d94f09ea2c5bc54300f |
|
MD5 | 33f5eaa7551d3248765d058c01996a4d |
|
BLAKE2b-256 | 2450f24f2d41c7611b8a839b1e919fa49e6c0c584a946472df1b7c1997f45bcb |
File details
Details for the file WKTUtils-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: WKTUtils-1.0.0-py3-none-any.whl
- Upload date:
- Size: 16.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5618158be370e1188e92cdd5c0f87122d3a779c54e0eab538b4dfdc4d8a82673 |
|
MD5 | 58d2dfefae1682fe7c2f958d97f85b18 |
|
BLAKE2b-256 | 893e80b439399808f13f9bd7e6abf1d6b8cd55ad442c5c81262b979f59b74214 |