Skip to content

Commit

Permalink
Fix clip.
Browse files Browse the repository at this point in the history
  • Loading branch information
milos.colic committed Oct 12, 2023
1 parent 509cf31 commit bef9f04
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ package com.databricks.labs.mosaic.expressions.raster

import com.databricks.labs.mosaic.core.geometry.api.GeometryAPI
import com.databricks.labs.mosaic.core.raster.operator.clip.RasterClipByVector
import com.databricks.labs.mosaic.core.types.RasterTileType
import com.databricks.labs.mosaic.core.types.model.MosaicRasterTile
import com.databricks.labs.mosaic.expressions.base.{GenericExpressionFactory, WithExpressionInfo}
import com.databricks.labs.mosaic.expressions.raster.base.Raster1ArgExpression
import com.databricks.labs.mosaic.functions.MosaicExpressionConfig
import org.apache.spark.sql.catalyst.analysis.FunctionRegistry.FunctionBuilder
import org.apache.spark.sql.catalyst.expressions.codegen.CodegenFallback
import org.apache.spark.sql.catalyst.expressions.{Expression, NullIntolerant}
import org.apache.spark.sql.types.BinaryType

/**
* Returns a set of new rasters with the specified tile size (tileWidth x
Expand All @@ -22,7 +22,7 @@ case class RST_Clip(
) extends Raster1ArgExpression[RST_Clip](
rastersExpr,
geometryExpr,
BinaryType,
RasterTileType(expressionConfig.getCellIdType),
returnsRaster = true,
expressionConfig = expressionConfig
)
Expand Down

0 comments on commit bef9f04

Please sign in to comment.