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 Distribution

WKTUtils-0.0.6.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: WKTUtils-0.0.6.tar.gz
  • Upload date:
  • Size: 14.6 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.6.tar.gz
Algorithm Hash digest
SHA256 6e6515c6452b554c55ec8102ac383cf149645238474f3da8cb80842dfab833f8
MD5 caad126f2ff30151ceb523f8f8def568
BLAKE2b-256 2c882bcf23b8746a85070c09fce6ed9e9bd9c22c602f85b5200f9e86e710efe1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: WKTUtils-0.0.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 83356ae3c6c7d7d69f2d139ce8c342b09d643f74d35ecb4f0e368d564c9f75dc
MD5 b738a9c7fb000be977dc588dfdfa5465
BLAKE2b-256 92843a035986c2d88612b4d072454be4bc1a55ee8f1bb973813d2feb39125033

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