Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Intersects(polygon: Polygon) in layer query #1623

Closed
lossyrob opened this issue Sep 7, 2016 · 0 comments
Closed

Allow Intersects(polygon: Polygon) in layer query #1623

lossyrob opened this issue Sep 7, 2016 · 0 comments
Milestone

Comments

@lossyrob
Copy link
Member

lossyrob commented Sep 7, 2016

Currently we have a Intersects LayerFilter that allows you to do things like

val layer =
  layerReader.query(LayerId("foo", 3))
    .where(Intersects(multiPolygon: MultiPolygon))
    .result

we can't use a polygon however. This should be a simple delegation call that wraps a polygon as a multipolygon and uses the existing LayerFilter seen here https://github.com/geotrellis/geotrellis/blob/93316a493abde8d9dd96e2dde01a4131d76fd1be/spark/src/main/scala/geotrellis/spark/io/LayerFilter.scala#L123

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant