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.3-py3-none-any.whl (26.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: WKTUtils-0.0.3-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/41.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.7

File hashes

Hashes for WKTUtils-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 48ed370deb50ce5b1f8ad29c1ce334d7f6550ff33131593fdec103410f02d9eb
MD5 2fb718f4d0eae6647c3d248ba775568e
BLAKE2b-256 769b53c87c898b95a0a6b34bef47fc46612b97e55a74410436f916289063ce61

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