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.1.1.tar.gz
(14.8 kB
view details)
Built Distribution
WKTUtils-0.1.1-py3-none-any.whl
(16.5 kB
view details)
File details
Details for the file WKTUtils-0.1.1.tar.gz
.
File metadata
- Download URL: WKTUtils-0.1.1.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a6556032e9a9c4a04ce2dfe775a5d3955e4012d264fb6d0403fb7a77fe285aa |
|
MD5 | f414cc0a8936e16d70289cf415006617 |
|
BLAKE2b-256 | 1ff1eed7262041980bf5eec05cf54fa0e1b5c60f5fbd139f58eba9cea3d3c622 |
File details
Details for the file WKTUtils-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: WKTUtils-0.1.1-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/3.7.3 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99ed7800d9297ced5fa2647ed98796ed6d008243af1adbd0578410d8b078f7c7 |
|
MD5 | 78d44be57fbd093088e45958b53d0143 |
|
BLAKE2b-256 | c7804ada890d1d21f2241563b742ae3964a5cfa96c80c7e67381113f107f322c |