@@ -25,6 +25,7 @@ import geotrellis.proj4.LatLng
2525import geotrellis .raster .{ByteCellType , GridBounds , TileLayout }
2626import geotrellis .spark .tiling .{CRSWorldExtent , LayoutDefinition }
2727import geotrellis .spark .{KeyBounds , SpatialKey , TileLayerMetadata }
28+ import org .apache .spark .sql .Encoders
2829import 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