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

Uploaded Source

Built Distribution

WKTUtils-1.1.5-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: WKTUtils-1.1.5.tar.gz
  • Upload date:
  • Size: 4.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for WKTUtils-1.1.5.tar.gz
Algorithm Hash digest
SHA256 46b256e227fbccebfc0305a9503c77de9e8dc366269a7132cd4916304eec9f8f
MD5 6e3f4e00ef984a3f4c027074a3ea7177
BLAKE2b-256 73588b74c9f7dc69fce45f9285c16da116360c6ceca48bea386d506af653509e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: WKTUtils-1.1.5-py3-none-any.whl
  • Upload date:
  • Size: 16.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for WKTUtils-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3b53e195edbbf539b7dbc1c75aaf7a2502a6c95703d0e7d180cdda3687fc6c1c
MD5 b3619328f638363173b5070e4c3540ae
BLAKE2b-256 a1925feb05a7bb239f6ee132b8339cb319d0f3d7ee34baba1393f6da5b329775

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