locationtech / rasterframes

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

How to show "the label GeoJSON shapes (pink)" on output .tiff? How to apply masking to the data, as on lines 113-120 before the join? #541

Closed JenniferYingyiWu2020 closed 3 years ago

JenniferYingyiWu2020 commented 3 years ago

Hi, I have accepted your suggestions on https://github.com/locationtech/rasterframes/issues/539, and modified the codes of "supervised machine learning", however my output ".tiff" is a little difference from yours on "https://github.com/locationtech/rasterframes/issues/539". Moreover, I have uploaded my output ".tiff" on my repo, in comparison with the output result on "https://github.com/locationtech/rasterframes/issues/539", which is here.

show_version 0 2

1

I feel the difference with the above two ".tiff" show is mine lost the "the label GeoJSON shapes (pink)". As on "https://github.com/locationtech/rasterframes/issues/539", you say that "A further refinement would be to apply masking to the data, as on lines 113-120 before the join.", but I am so confused about how to modify the codes?

So, could you pls give me some suggestions? Thanks!

vpipkt commented 3 years ago

The image with the pink GeoJSON shapes is simply showing the GeoJSON and the GeoTIFF together in QGIS. The GeoTiff i wrote out is attached here: unsupervised.zip