From 2c6085d0aa0ccba5de834ed6cab1b9e78efc2c0e Mon Sep 17 00:00:00 2001 From: dbaker50 Date: Mon, 5 Aug 2024 15:15:30 -0600 Subject: [PATCH] Changes to confining margin symbology --- .../qgis/Confinement/confinement_margins.qml | 419 ++++++++++++++---- .../web/Confinement/confinement_margins.json | 14 +- 2 files changed, 339 insertions(+), 94 deletions(-) diff --git a/Symbology/qgis/Confinement/confinement_margins.qml b/Symbology/qgis/Confinement/confinement_margins.qml index d2b4a9d5..c1781887 100644 --- a/Symbology/qgis/Confinement/confinement_margins.qml +++ b/Symbology/qgis/Confinement/confinement_margins.qml @@ -1,20 +1,156 @@ - + 1 1 1 0 - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - - - + 0 0 1 - - - - + + + + - + - + - - - - - - - - - - - - - - - - - - - - - - + - + - + @@ -181,21 +398,21 @@ - + - + - + - - - - + + + + + + + + + + - - - - + + + + - - - - + + + + - - - - + + + + - + - + - @@ -272,17 +495,29 @@ def my_form_open(dialog, layer, feature): + + + - - - - + + + + + + + + + + + + + - "Side" - + "side" + 1 diff --git a/Symbology/web/Confinement/confinement_margins.json b/Symbology/web/Confinement/confinement_margins.json index 6d818a5b..ea85479c 100644 --- a/Symbology/web/Confinement/confinement_margins.json +++ b/Symbology/web/Confinement/confinement_margins.json @@ -1,7 +1,8 @@ { "$schema": "https://xml.riverscapes.net/Symbology/web/vector.schema.json", "legend": [ - ["hsl(325, 73%, 58%)", "Confining Margins"] + ["hsl(325, 73%, 58%)", "Left"], + ["hsl(187, 74%, 49%)", "Right]"] ], "layerStyles": [ { @@ -10,7 +11,16 @@ "source": "composite", "source-layer": "sample_confining_margin-42524p", "layout": {}, - "paint": {"line-color": "hsl(325, 73%, 58%)", "line-width": 0.75} + "paint": { + "line-color": [ + "match", + ["get", "side"], + ["RIGHT"], + "hsl(187, 74%, 49%)", + "hsl(325, 73%, 58%)" + ], + "line-width": 0.75 + } } ] }