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

Added Intersction by Line and MultiLine capability to LayerFilters #2263

Merged
merged 1 commit into from
Jun 29, 2017

Conversation

lossyrob
Copy link
Member

This PR adds the ability to query a GeoTrellis layer by Line and MultiLine, much like we can already query by Polygon and MultiPolygon.

For instance,

val poly: Polygon = ???
val rdd = 
    layerReader
       .query[SpatialKey, Tile, TileLayerMetadata[SpatialKey]](Layer("name", zoom))
       .where(Intersects(poly))
       .result

will give you all tiles that intersect with the polygon, where as now

val poly: Polygon = ???
val rdd = 
    layerReader
       .query[SpatialKey, Tile, TileLayerMetadata[SpatialKey]](Layer("name", zoom))
       .where(Intersects(poly.exterior))
       .result

will give you all tiles that intersect just the exterior of the polygon.

@lossyrob lossyrob added this to the 1.2 milestone Jun 27, 2017
@echeipesh echeipesh merged commit 4991fed into locationtech:master Jun 29, 2017
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

Successfully merging this pull request may close these issues.

None yet

2 participants