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 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 Distribution

WKTUtils-0.0.7.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

WKTUtils-0.0.7-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: WKTUtils-0.0.7.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1

File hashes

Hashes for WKTUtils-0.0.7.tar.gz
Algorithm Hash digest
SHA256 c3d49fd0357626741dd107d20ade5896dde371f5866e7d5e515e0967b4c0dcff
MD5 c690edaaf58faa2ba2ce0e4b8d8e3270
BLAKE2b-256 cb9cc4b5974f58eca95ae12fb1585a834e5e5bc2f9f3618e95d843c73da138ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: WKTUtils-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 16.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1

File hashes

Hashes for WKTUtils-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 e5ba3be251490661371783a30d243f4210ab90fe1af4f7f2fb3d1ca90f664b7a
MD5 e8704b21866a04676513a128b3818eff
BLAKE2b-256 4c2124aea6204a7410d94466cd24eaff7390f697f8c17bfef26d5a8c9d321c5d

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