locationtech-labs / geopyspark

GeoTrellis for PySpark
Other
179 stars 59 forks source link

Add interface for key/layout computations #671

Closed jpolchlo closed 6 years ago

jpolchlo commented 6 years ago

It is useful at times to be able to relate geometries to grid cells in some layout, and keys to geometries in space wrt the layout. This PR adds that feature, allowing geometries and extents, represented using python-native gps.Extents and shapely geometries to be converted into gps.SpatialKeys and gps.SpatialKeys to be converted into gps.Extents.

Signed-off-by: jpolchlo jpolchlopek@azavea.com

jpolchlo commented 6 years ago

Travis errors are unrelated to the changes in this PR. One is an install error, the rest are linting errors due to geopyspark/geotrellis/rasterio.py. Should be good to merge?