Skip to content

Commit 4201692

Browse files
committed
Regression fix.
1 parent 92d9a1a commit 4201692

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/src/test/scala/org/locationtech/rasterframes/ExtensionMethodSpec.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import geotrellis.proj4.LatLng
2525
import geotrellis.raster.{ByteCellType, GridBounds, TileLayout}
2626
import geotrellis.spark.tiling.{CRSWorldExtent, LayoutDefinition}
2727
import geotrellis.spark.{KeyBounds, SpatialKey, TileLayerMetadata}
28+
import org.apache.spark.sql.Encoders
2829
import org.locationtech.rasterframes.util.SubdivideSupport
2930

3031
/**
@@ -61,6 +62,8 @@ class ExtensionMethodSpec extends TestEnvironment with TestData with SubdivideSu
6162
df.extentColumns.size should be(2)
6263
}
6364
it("should find multiple crs columns") {
65+
// Not sure why implicit resolution isn't handling this properly.
66+
implicit val enc = Encoders.tuple(crsEncoder, Encoders.STRING, crsEncoder, Encoders.scalaDouble)
6467
val df = Seq((pe.crs, "fred", pe.crs, 34.0)).toDF("c1", "s", "c2", "n")
6568
df.crsColumns.size should be (2)
6669
}
@@ -70,7 +73,6 @@ class ExtensionMethodSpec extends TestEnvironment with TestData with SubdivideSu
7073
assert(tl1.subdivide(1) === tl1)
7174
assert(tl1.subdivide(2) === TileLayout(4, 6, 5, 5))
7275
assertThrows[IllegalArgumentException](tl1.subdivide(-1))
73-
7476
}
7577
it("should split KeyBounds[SpatialKey]") {
7678
val grid = GridBounds(0, 0, 9, 9)

0 commit comments

Comments
 (0)