Metadata-Version: 2.1
Name: WKTUtils
Version: 2.0.0
Summary: A few WKT utilities for use elsewhere
Home-page: https://github.com/asfadmin/Discovery-WKTUtils.git
Author: ASF Discovery Team
Author-email: uaf-asf-discovery@alaska.edu
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: dateparser
Requires-Dist: defusedxml
Requires-Dist: geomet
Requires-Dist: geopandas
Requires-Dist: kml2geojson
Requires-Dist: pyshp
Requires-Dist: PyYAML
Requires-Dist: Shapely
Provides-Extra: extras
Requires-Dist: requests ; extra == 'extras'
Requires-Dist: scikit-learn ; extra == 'extras'
Provides-Extra: test
Requires-Dist: pytest ==6.2.5 ; extra == 'test'
Requires-Dist: pytest-automation ==1.1.2 ; extra == 'test'
Requires-Dist: pytest-xdist ==2.4.0 ; extra == 'test'

# Discovery-WKTUtils

[![image](https://img.shields.io/pypi/v/wktutils.svg)](https://pypi.python.org/pypi/WKTUtils)

### To Install as Package, add the following line to requirements.txt:

```bash
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:

```bash
python3 -m pip install -r requirements.ext --upgrade
```

### FilesToWKT:
You must open shapefiles in read binary mode, before passing them into the function.

```python
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()
```
