Repository navigation
Description
Description
New Identify view type EXTERNAL DATA that drills into a separate spatial/non-spatial WFS table using a CQL filter template built from the clicked feature's properties, then shows the returned attributes. Values render as GeoJSON here (similar to properties); media rendering is a separate issue.
Initially the EXTERNAL DATA will support only WFS but in the future may be extended to support other sources.
Config panel (expanded via the view edit button)
- WFS url input (mandatory)
- layer name input (mandatory; enabled once a valid WFS url is set, populated/validated via
DescribeFeatureType/ GetCapabilities) - CQL filter template input (mandatory): plain text with
${properties['x']}placeholders - Attributes section: per-column show/hide and alias only
Configuration panel for EXTERNAL DATA type showing needed configuration url, layer name and CQL
Configuration panel for EXTERNAL DATA type showing the connected WFS layer. Note this mockup does not include the validate button that needs to be included during the development
Runtime
- the tab lists all features returned for the layer
- one CQL per feature: interpolate the template with each feature's properties (reuse the existing
${}template engine) with CQL value escaping, fire theGetFeaturerequests in parallel, render each feature's block as its result arrives. Let's evaluate possible alternative strategies during the development (e.g.: optimization: batch into a single CQL ((F1) OR (F2) ...) + demultiply rows back to features; requires an explicit join-key config, out of scope here TBD) - render returned attributes (respecting show/hide + alias) as plain values
- lazy: fire only on tab open; cache per (feature, view)
- ensure requests pass into axios and apply the MapStore proxy when needed for route external WFS to handle CORS / mixed-content
Acceptance criteria
- Configuring url + layer + CQL template produces a working tab
- Opening the tab fetches and lists the configured attributes for every returned feature
- One CQL per feature, fired in parallel and cached per feature
- An EXTERNAL DATA view with missing mandatory fields (url / layer / CQL) is flagged invalid and not rendered as a tab until completed.
- CQL values are escaped
- A test action validates the template (syntax + placeholders) and optionally runs it against a sample feature fetched from the source layer, showing the resulting request/response.
- External WFS requests go through the proxy when needed
- Docs and i18n (en/it/fr/de/es) updated
Other useful information
- Out of scope: display-type selector and media renderers (separate issue)
Activity
Identify: EXTERNAL DATA view type #12596 (#12753)