Skip to content

Commit fdefb1d

Browse files
committed
Fix incorrect codecs for SpatialKeys
1 parent dfff1b5 commit fdefb1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

layer/src/main/scala/geotrellis/layer/SpatialKey.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ case class SpatialKey(col: Int, row: Int) extends Product2[Int, Int] {
3232

3333
object SpatialKey {
3434
// TODO: revert back to the @JsonCodec once we don't need Shapeless 2.3.3 compatibility
35-
implicit lazy val spatialKeyEncoder: Encoder[Extent] = deriveEncoder
36-
implicit lazy val spatialKeyDecoder: Decoder[Extent] = deriveDecoder
35+
implicit lazy val spatialKeyEncoder: Encoder[SpatialKey] = deriveEncoder
36+
implicit lazy val spatialKeyDecoder: Decoder[SpatialKey] = deriveDecoder
3737

3838
implicit def tupToKey(tup: (Int, Int)): SpatialKey =
3939
SpatialKey(tup._1, tup._2)

0 commit comments

Comments
 (0)