Metadata-Version: 2.1
Name: demquery
Version: 0.1.0
Summary: Wrapper around rasterio to query points on a Digital Elevation Model
Home-page: https://github.com/kylebarron/demquery
Author: Kyle Barron
Author-email: kylebarron2@gmail.com
License: MIT license
Keywords: demquery
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Python: >=3.5
Description-Content-Type: text/markdown
Requires-Dist: numpy (>=1.16)
Requires-Dist: rasterio (>=1.0)
Requires-Dist: scipy (>=1.0.0)

# demquery


[![Pypi](https://img.shields.io/pypi/v/demquery.svg)](https://pypi.python.org/pypi/demquery) [![Downloads](https://img.shields.io/travis/kylebarron/demquery.svg)](https://travis-ci.org/kylebarron/demquery)

Wrapper around rasterio to query points on a Digital Elevation Model.

## Features

- Use multiple raster files without having to merge them into a new file
- Query many points at once
- Optional 2D interpolation (linear, cubic, or quintic)
- Reasonably performant by reading the minimal data required from raster

## Install

I recommend first installing dependencies with Conda, then installing demquery
itself with pip.

```
conda install gdal rasterio numpy scipy -c conda-forge
```

```
pip install demquery
```

## Documentation

```py
from demquery import Query

dem_paths = ['dem1.tif', 'dem2.tif']
query = Query(dem_paths)

# Points must be in longitude, latitude order!
# These points are in Manhattan, not Antarctica
points = [(-73.985564, 40.757965), (-73.968520, 40.778912)]
elevations = query.query_points(points, interp_kind='linear')
```


# Changelog

## [0.1.0] - 2019-11-27

- Initial release on PyPI


