Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slippy map writing support. #572

Merged
merged 3 commits into from
Nov 29, 2021
Merged

Conversation

metasim
Copy link
Member

@metasim metasim commented Oct 19, 2021

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
Copy link
Member Author

metasim commented Oct 20, 2021

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

@pomadchin
Copy link
Member

@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

🤔

rf.select($"green")
.write.slippy
.withUniformColor
.withHTML
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this thing comes with batteries!

build.sbt Outdated Show resolved Hide resolved
@metasim metasim merged commit 44f4072 into locationtech:develop Nov 29, 2021
@metasim metasim deleted the feature/slippy branch November 29, 2021 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants