Closed sandorkonya closed 1 year ago
Good suggestion. I tested it. The URL is not a TMS tile URL, so we can't visualize it on the fly. The GeoTIFF file needs to be downloaded locally for visualization.
@giswqs nice! Do you happen to have a dwmo script for that?
I will add functions to leafmap to make it easier to download and visualize the data.
For now, you can use leafmap.download_file(url, filename)
to download data.
@giswqs this looks very promising!
For me RGB, Mask, xxxFlux is working like a charm with leafmap.download_file
but the dsm does not.
Description
Google has a Solar API, and the endpoint returns data encoded as GeoTIFF files. One of these is a Surface Model (DSM). It would be awesome to be able to visualise such data with leafmap (which is probably possible). Below a simple snipplet to retrieve the DSM as a bytestring.
Source code
Following sniplet retrieves data for a given lat&long.