Open lossyrob opened 7 years ago
This would require the corresponding get_data_func
from geopyspark in situations where appropriate, to make it easy for users to start up the server, and pass it in as a TMSData layer with the appropriate data fetching function.
We want to support the functionality of clipping raster data out in a GeoNotebook.
With the TMSData, we'll want to optionally supply a method
get_data
as in here https://github.com/geotrellis/geonotebook/blob/feature/geotrellis/geonotebook/wrappers/raster.py#L120.We can simply allow this to be passed into the TMSData as something like
The next part of this is that the Layer says whether or not it can subset. So in
__init__
forInProcessTileLayer
, we say something likeand also provide the subset method:
See these functions for usage: https://github.com/geotrellis/geonotebook/blob/feature/geotrellis/geonotebook/annotations.py#L58 and https://github.com/geotrellis/geonotebook/blob/feature/geotrellis/geonotebook/annotations.py#L77