Skip to content

Commit 45ed7e9

Browse files
committed
Ensure default tile size is applied to raster reader.
1 parent 45ab397 commit 45ed7e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datasource/src/main/scala/org/locationtech/rasterframes/datasource/raster/RasterSourceDataSource.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class RasterSourceDataSource extends DataSourceRegister with RelationProvider {
3737
override def shortName(): String = SHORT_NAME
3838
override def createRelation(sqlContext: SQLContext, parameters: Map[String, String]): BaseRelation = {
3939
val bands = parameters.bandIndexes
40-
val tiling = parameters.tileDims
40+
val tiling = parameters.tileDims.orElse(Some(NOMINAL_TILE_DIMS))
4141
val lazyTiles = parameters.lazyTiles
4242
val spec = parameters.pathSpec
4343
val catRef = spec.fold(_.registerAsTable(sqlContext), identity)

0 commit comments

Comments
 (0)