Skip to main content

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 the file in read binary mode, before passing it 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

WKTUtils-0.0.2-py3-none-any.whl (26.4 kB view details)

Uploaded Python 3

File details

Details for the file WKTUtils-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: WKTUtils-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 26.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5

File hashes

Hashes for WKTUtils-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 779685d0e1e60d3577b7ff29513e4206204bbb74eecf2b7afc4ffc6e1c6274bd
MD5 a764e6fbefa6909a9b8a5ac2109af362
BLAKE2b-256 6cbf5944009b07c0cc075ced8ed1ca0046a213be78c6d38e26fb7922b41e2f5b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page