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-0.1.2.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

WKTUtils-0.1.2-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: WKTUtils-0.1.2.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

Hashes for WKTUtils-0.1.2.tar.gz
Algorithm Hash digest
SHA256 3d27c120f3198deda5971103606f04c72e316940a6966145ea58770b055e8055
MD5 e793d93d5e33df1f29e7bc6f79c2bc7e
BLAKE2b-256 d3a6dfed23b824bae95fb158d308599a40f9c70e62fcad8e1d57dc4c9c59778b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: WKTUtils-0.1.2-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

Hashes for WKTUtils-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bcef9bb1b8f34ceebf7f8c10a1eb83f3558793d43718a4b8a04d24517a4e0e0f
MD5 80f125bbf9cdabcda0979cff5a8ae393
BLAKE2b-256 a4e2d9cb2f8effe305c9ada2e1f2449cb9d618852e2e79d17ef1aefb920b174f

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