Repository navigation
Example: VoxelKey - #1639
Example: VoxelKey#1639
Conversation
- An English explanation of `VoxelKey.scala`
|
|
||
| And with a `KeyIndex` written, it will of course need its own `JsonFormat`, | ||
| which demands some additional glue to make fully functional. For more | ||
| details, see `ShardingKeyIndex.scala`. |
There was a problem hiding this comment.
Think it is important to add a reference or explanations of how to use custom registrator.
There was a problem hiding this comment.
That's included in custom-keyindex.md.
There was a problem hiding this comment.
yes, sorry; thx for pointing that
There was a problem hiding this comment.
mb all refereneces to make links? ShardingKeyIndex.scala can be a link as well.
|
|
||
| *Want to jump straight to a code example? See:* | ||
| ``` | ||
| doc-examples/src/main/scala/geotrellis/doc/examples/spark/VoxelKey.scala |
| ``` | ||
|
|
||
| Where the pattern `[A: Trait1: Trait2: ...]` means that for whichever `A` | ||
| you end up using, it must have an implicit instance of `Trait1` and `Trait2` |
There was a problem hiding this comment.
Trait1[K] and Trait2[K] as [A: Trait1: Trait2: ...] expands to [A](ev0: Trait1[A], ev1: Trait2[A])
There was a problem hiding this comment.
Right, it's just syntactic sugar.
|
|
||
| And with a `KeyIndex` written, it will of course need its own `JsonFormat`, | ||
| which demands some additional glue to make fully functional. For more | ||
| details, see `ShardingKeyIndex.scala`. |
There was a problem hiding this comment.
mb all refereneces to make links? ShardingKeyIndex.scala can be a link as well.
|
I might be forgetting to implement a |
|
|
||
| *Want to jump straight to a code example? See:* | ||
| ``` | ||
| doc-examples/src/main/scala/geotrellis/doc/examples/spark/VoxelKey.scala |
| } | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
You are missing SpatialComponent
Example documentation on how to implement a new key type, used in
KeyIndexes and many GeoTrellis operations.