locationtech / rasterframes

Geospatial Raster support for Spark DataFrames
http://rasterframes.io
Apache License 2.0
247 stars 45 forks source link

RGBComposite throws exception during normalization process. #387

Open metasim opened 5 years ago

metasim commented 5 years ago

Suspicion is this is caused by a NoData tile, or a tile where all the values are zero.

org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 9.0 failed 4 times, most recent failure: Lost task 0.3 in stage 9.0 (TID 12, 10.0.187.204, executor 1): java.lang.RuntimeException: Invalid parameters: 0, 0, 0, 255
    at scala.sys.package$.error(package.scala:27)
    at geotrellis.raster.Tile$class.normalize(Tile.scala:245)
    at org.locationtech.rasterframes.ref.RasterRef$RasterRefTile.normalize(RasterRef.scala:63)
    at geotrellis.raster.Tile$class.rescale(Tile.scala:271)
    at org.locationtech.rasterframes.ref.RasterRef$RasterRefTile.rescale(RasterRef.scala:63)
    at org.locationtech.rasterframes.expressions.transformers.RGBComposite.nullSafeEval(RGBComposite.scala:87)
vpipkt commented 4 years ago

Related #458