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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: WKTUtils-1.1.0.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10

File hashes

Hashes for WKTUtils-1.1.0.tar.gz
Algorithm Hash digest
SHA256 6f48b0161c34dcd5cbfd7269afddaa64b654a1840cb39b4311db15c83c79dfc4
MD5 6d70a11262f9b961506c5429d341b3dc
BLAKE2b-256 f6e03a3e440801732e7e36d202a71b4c434265d4ff4d45105bedd18e42068db3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: WKTUtils-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10

File hashes

Hashes for WKTUtils-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c7201f89fbd1647753781b68c1e61e22f6ce206fe5f534f1b556f91eb2b8498a
MD5 2116ca43d2f1df00cf6baabf9e8feabc
BLAKE2b-256 8d53236c0c57ce83973b45b5e5cff06f1851a5e974484ec956c4e3ca50940595

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