ariesteam/aries — Issue #55: Add Geoserver URL swapping as a scenario editing option
Author: lambdatronic
Created: 2012-02-14 16:40:24+00:00
State: open

@fvilla When a user presses the + button next to a model/storyline in the ARIES web interface, display a panel with all of the input data layers being used in this model/storyline shown in miniature. When a user clicks on one of these layers, bring up a web form with the fields used in defining its kbox Observation in read-only mode. Present an Edit Layer Definition button, which when pressed, enables the fields to be modified by the user. When in this editing mode, replace the Edit Layer Definition button with two buttons, labeled Save Changes and Discard Changes, which do what their names say. Below is a suggestion for the types of input elements that should be used for the Observation fields.

* Observation type: dropdown box (measurement, ranking, numeric coding, binary coding, categorization)
* Observable: read-only textbox (obviously, they can't change this)
* Protocol: dropdown box (WCS, WFS)
* Service URL: textbox
* Layer ID: textbox (use Javascript to validate this URL with a getCapabilities request to the Service URL or present a dropdown box of all layers available on that server)
* NoData Value: textbox

Use a getCapabilities request to the Service URL when they press Save Changes to collect the XRangeMax, YRangeMax, LatLowerBound, LonLowerBound, LatUpperBound, LonUpperBound, and CoordinateReferenceSystem.

Then add the concept and observation mapping to your local ariesdata database, and attach a super-high Priority to this new Observation (e.g. -20).

With all that done, you should be ready to re-run the model with this new layer overriding the base layer in our Geoserver.

Voila!