Skip to main content

A few WKT utilities for use elsewhere

Project description

Discovery-WKTUtils

image

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


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.1.1.tar.gz (4.6 MB view details)

Uploaded Source

Built Distribution

WKTUtils-1.1.1-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file WKTUtils-1.1.1.tar.gz.

File metadata

  • Download URL: WKTUtils-1.1.1.tar.gz
  • Upload date:
  • Size: 4.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for WKTUtils-1.1.1.tar.gz
Algorithm Hash digest
SHA256 4999f58b0722d4b86da0673c3f156828f2c2b0e3c8a8c823bbdec37f2b57b4c7
MD5 a49e020010623c8a346910accf001277
BLAKE2b-256 9b287966949df71cade69655d67f2326a3da5496aa7fe20b3015f36b76ecfbad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: WKTUtils-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for WKTUtils-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 95fabd5f9cdccaebda8580a91a67d06bb31277ca77bb955e17bc3d4fb09e69a8
MD5 4eb6eaeb45f8aee352d112fc52ffa4b4
BLAKE2b-256 c3c9f139e479f856634f8f4835a4aab0ae720b8b6d946c8699115dcc1a1c8b6e

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