Eventual PR to support exporting Animated Gifs for sites.
Process:
Get single export working with basic drawing of polygons on images
Coloring polygon based on activity label
Add text information (Satellite Source, Time, Obs vs Non Obs)
Get filtering working (Satellite Source, Cloud Cover, Obs vs Non Obs)
Rescaling to center polygon between WV/S2 and different image sizes
Add in options (Rescaling, Speed, Quality)
Generate Model-Run level exporting
Can you annotationExport model for storing the zip until downloaded
Client Side UI for downloading
Component to configure settings (filters, speed, quality, rescaling)
Same component can be used for single site or for model-run downloading
May want to configure a combination of downloading images and creating gifs.
Done:
Basic testing of single export of the cropped images. It creates a GIF of the images but doesn't properly draw polygons or rescale the images.
Draws polygons in basic the scale without the proper coloring for the label
Added simple date text drawing
Rescaling of Images for S2/WV different sizes
Rescaling Border for shrinking sizes
Handling text display with automatic font size to different resolutions
Options to toggle on/off different labels
TODO:
[x] Polygon/Geometry Rescaling
[x] Additional Filters (cloudcover, NoData, obs vs nonobs, activity labels)
[x] Basic dialog for exporting animation from the server
[x] Create model-run task to export multiple sites in parallel into a zip file for downloading
Notes About Rescaling:
The Rescaling option will allow the system to export all of the images while centered with the same spatial view on the bounding box. This means that WV/S2/L8 images of different resolutions can all be used but the polygon remains a similar size on the screen.
This is done by taking the highest-resolution image in the list and using it as a basis. All S2/L8 or other low-resolution images are rescaled so that their polygons and pixels match the highest-resolution image. The polygon/geom is drawn after and not before to make sure it doesn't history too much.
There is a Rescale Border option that will add additional geospatial padding around the highest resolution image so that lower-resolution images have more context. This requires that the highest resolution image add blank NoData or gray data around it and that the lower resolution images now have more padding.
Rescaling Process:
Using the filters for sources, cloud clover, nodata and any other items find the image with the highest resolution - HR.
HR has some space around the geom (point/polygon) we have a mapping of the image bounds to geospatial bounds (geobbox).
If we have a Rescale Border we increase the spatial area around the image by multiplying it by the geobbox and we get a BaseResolution. I.E a Rescale Border values of 2 makes the area 2x the existing image bbox.
All images generate are now the BaseResolution. Images are cropped and draw into the BaseResolution image and need to be properly centered.
Go through the existing satellite images, crop them based on the geospatial bounds and place them inside the Base Resolution in the appropriate location.
Eventual PR to support exporting Animated Gifs for sites.
Process:
Done:
TODO:
Notes About Rescaling:
The Rescaling option will allow the system to export all of the images while centered with the same spatial view on the bounding box. This means that WV/S2/L8 images of different resolutions can all be used but the polygon remains a similar size on the screen.
This is done by taking the highest-resolution image in the list and using it as a basis. All S2/L8 or other low-resolution images are rescaled so that their polygons and pixels match the highest-resolution image. The polygon/geom is drawn after and not before to make sure it doesn't history too much.
There is a Rescale Border option that will add additional geospatial padding around the highest resolution image so that lower-resolution images have more context. This requires that the highest resolution image add blank NoData or gray data around it and that the lower resolution images now have more padding.
Rescaling Process: