Skip to content

Added CollectNeighbors - #1859

Merged
lossyrob merged 3 commits into
locationtech:masterfrom
lossyrob:feature/buffer-with-neighbors
Dec 6, 2016
Merged

lossyrob merged 3 commits into
locationtech:masterfrom
lossyrob:feature/buffer-with-neighbors

Conversation

@lossyrob

@lossyrob lossyrob commented Dec 1, 2016

Copy link
Copy Markdown
Member

This feature allows you to connect generic values that are keyed on something with a spatial component.

@lossyrob lossyrob added this to the 1.0 milestone Dec 1, 2016
@lossyrob
lossyrob force-pushed the feature/buffer-with-neighbors branch from e39751c to 6199dd4 Compare December 1, 2016 20:58
@echeipesh

Copy link
Copy Markdown
Contributor

👍

Only comment is a suggestion: In cases like this I increasingly find it handy to nest the enumerating objects like this:

sealed trait Direction

object Direction {
  case object CenterDirection extends Direction
  case object TopDirection extends Direction
  case object TopRight extends Direction
  case object Right extends Direction
  case object BottomRight extends Direction
  case object Bottom extends Direction
  case object BottomLeft extends Direction
  case object Left extends Direction
  case object TopLeft extends Direction
}

Keeps the silly names down, namespaces the super generic name, which is what I think you're after, and still allows for import geotrellis.spark.buffer.Direction._ when you need to use it a lot.

@lossyrob
lossyrob merged commit 25691da into locationtech:master Dec 6, 2016
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.

2 participants