locationtech / rasterframes

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

How to make "Unsupervised machine learning" read "GeoTrellis Catalogs"? #536

Closed JenniferYingyiWu2020 closed 3 years ago

JenniferYingyiWu2020 commented 3 years ago

Hi, I have read the "GeoTrellis Catalogs" section of "Reading Raster Data", 22

However, the method of reading raster data used in "Unsupervised machine learning" is from reading 8 (bands) ".tiff" images by using file URI.

24

So, could you pls give me some suggestions on how to modify the codes of "unsupervised machine learning" to read "GeoTrellis Catalogs"? Thanks!
vpipkt commented 3 years ago

What have you tried so far? Have you run into any behavior that you think is a bug?

I would think replace df = spark.read.raster(...) with df = spark.read.geotrellis(...) perhaps. This will depend on the specifics of how the geotrellis catalog has been ingested though. If you can provide additional details on the Gitter.im chat we'll try to help.