Closed davemfish closed 1 year ago
Here's a number of communication endpoints we envision.
Send: Receive:
Send:
Receive:
Send:
Receive:
Send:
Receive:
Send:
Receive: see example in top post
Send:
Receive:
Send:
Receive:
Send: (I think the pattern catalog is a global database available to all users. So no data in request)
Receive:
{
id: 0,
label: 'medium density residential',
}
Send:
Receive:
Send:
Receive:
Send:
Receive:
Maybe it's better to do this on the client actually
This returns data similar to Get Results of Wallpapering
, but it's for the case where we haven't yet created a scenario, but want to select a parcel and see the baseline LULC values in that parcel.
Send:
Receive:
I just added a missing endpoint for getting all the metadata for saved scenarios. So we can populate the UI when a session loads. In essence I think that boils down to sending the client the data described in the first post of this issue.
@dcdenu4 and @phargogh I just added another endpoint - Create wallpaper pattern
after a conversation with @emlys .
We're building a widget for the user to select an area from the baseline LULC (on the webmap) to use as the wallpapering pattern. We think that extracting the pattern from the raster will be a backend operation. And we envision storing that pattern in a database so it can be used by Do Wallpapering
. And as a side-effect we build up the catalog of patterns that people can reuse!
See also #17
Get LULC table for a parcel not yet in a scenario: Maybe it's better to do this on the client actually This returns data similar to Get Results of Wallpapering, but it's for the case where we haven't yet created a scenario, but want to select a parcel and see the baseline LULC values in that parcel. Send:
parcel geometry Receive:
summary table of baseline lulc in parcel (counts per type)
@dcdenu4 I've gone back and forth on this, but I think I'm concluding that this is best as a server-side operation. There is no "zonal stats" in the OpenLayers API and that's essentially what this is. It's easy enough to get a raster value at a single point, but that's not really adequate for this. Plus it will only work when the raster is visible and I want people to be able to get the landcover summary for a parcel they click even when they're viewing some other basemap besides the landcover raster.
The only catch is that I'm not sure if this would need to go into the job queue, or if it's possible to just await the response. Maybe it doesn't really matter.
The only catch is that I'm not sure if this would need to go into the job queue, or if it's possible to just await the response. Maybe it doesn't really matter.
This should be a quick enough operation that we can just await a response. I'm not sure if you'd see any lag if say, 20 other people were trying to make requests. But, we can also throw it onto the PriorityQueue with highest priority too. We still have a bit of work to do to think out the Queue, Job, Worker pipeline.
Updating the endpoint for receiving Wallpaper results:
Send:
Receive:
I think this issue served it's purpose. We development these endpoints following this design, more or less.
An example of scenario metadata required by the frontend: