locationtech / rasterframes

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

Slippy map writing support. #572

Closed metasim closed 2 years ago

metasim commented 2 years ago

Requires #571

Adds ability to write out a RasterFrame as a slippy map for visualization. Provides color compositing and rendering options for tweaking results.

metasim commented 2 years ago

I suspect the build is failing on the "in the wild" use case because of AWS permissions. Runs fine locally.

pomadchin commented 2 years ago

@metasim

Cause: java.lang.NullPointerException:
[info]   at org.locationtech.rasterframes.expressions.aggregates.ProjectedLayerMetadataAggregate.evaluate(ProjectedLayerMetadataAggregate.scala:76)
[info]   at org.apache.spark.sql.execution.aggregate.ScalaUDAF.eval(udaf.scala:446)
[info]   at org.apache.spark.sql.execution.aggregate.AggregationIterator.$anonfun$generateResultProjection$5(AggregationIterator.scala:256)
[info]   at org.apache.spark.sql.execution.aggregate.SortBasedAggregationIterator.next(SortBasedAggregationIterator.scala:151)
[info]   at org.apache.spark.sql.execution.aggregate.SortBasedAggregationIterator.next(SortBasedAggregationIterator.scala:30)
[info]   at org.apache.spark.sql.catalyst.expressions.GeneratedClass$GeneratedIteratorForCodegenStage2.processNext(Unknown Source)
[info]   at org.apache.spark.sql.execution.BufferedRowIterator.hasNext(BufferedRowIterator.java:4

🤔