# HG changeset patch # User Raimund Renkert # Date 1570620583 -7200 # Node ID db4e7fecad0d00f149c7ab7e627c473987f677e1 # Parent acd802a76b9322f6ccd6c6ae28be5699e83264a0 Updated SLD templates for sounding results and differences. diff -r acd802a76b93 -r db4e7fecad0d client/src/components/layers/Layerselect.vue --- a/client/src/components/layers/Layerselect.vue Wed Oct 09 10:22:47 2019 +0200 +++ b/client/src/components/layers/Layerselect.vue Wed Oct 09 13:29:43 2019 +0200 @@ -137,7 +137,7 @@ }, loadLegendImage(layer, storeTarget) { HTTP.get( - `/internal/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&LAYER=${layer}&legend_options=columns:4;fontAntiAliasing:true`, + `/internal/wms?REQUEST=GetLegendGraphic&VERSION=1.3.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&LAYER=${layer}&legend_options=columns:4;fontAntiAliasing:true&SCALE=5000`, { headers: { Accept: "image/png", diff -r acd802a76b93 -r db4e7fecad0d style-templates/sounding_differences.sld-template --- a/style-templates/sounding_differences.sld-template Wed Oct 09 10:22:47 2019 +0200 +++ b/style-templates/sounding_differences.sld-template Wed Oct 09 13:29:43 2019 +0200 @@ -50,74 +50,69 @@ {{- end }} - + 34e3 + + + {{ .Color }} + - {{ .Color }} + #404040 0.5 - + + + + {{- if not .HasLow }} + ≤ {{ printf "%g" .High }} + + + height + {{ printf "%f" .High }} + + + {{- else if not .HasHigh }} + > {{ printf "%g" .Low }} + + + height + {{ printf "%f" .Low }} + + + {{- else }} + ≤ {{ printf "%g" .High }} + + + + height + {{ printf "%f" .Low }} + + + height + {{ printf "%f" .High }} + + + + {{- end }} + 34e3 + + + {{ .Color }} + + {{ end }} - contour_lines_emph - - - FeatureTypeStyle for emphasized contour lines - - - - - - - - - - {{ range . -}} - {{ if .HasHigh -}} - - - 0.000000 - height - - {{ printf "%f" .High }} - - {{ end -}} - {{ end }} - - - 5e3 - - - 1.5 - - - - 0.000000 - height - - {{ range . -}} - {{ if .HasHigh -}} - {{ printf "%f" .High }} - {{ .Color }} - {{ end -}} - {{ end }} - - - - - - - contour_lines_label - FeatureTypeStyle for labels at contour lines + FeatureTypeStyle for labels at color areas 5e3 + 50 diff -r acd802a76b93 -r db4e7fecad0d style-templates/sounding_results_areas_geoserver.sld-template --- a/style-templates/sounding_results_areas_geoserver.sld-template Wed Oct 09 10:22:47 2019 +0200 +++ b/style-templates/sounding_results_areas_geoserver.sld-template Wed Oct 09 13:29:43 2019 +0200 @@ -50,7 +50,8 @@ {{- end }} - + 34e3 + {{ .Color }} @@ -60,6 +61,46 @@ + + {{- if not .HasLow }} + ≤ {{ printf "%g" .High }} + + + height + {{ printf "%f" .High }} + + + {{- else if not .HasHigh }} + > {{ printf "%g" .Low }} + + + height + {{ printf "%f" .Low }} + + + {{- else }} + ≤ {{ printf "%g" .High }} + + + + height + {{ printf "%f" .Low }} + + + height + {{ printf "%f" .High }} + + + + {{- end }} + 34e3 + + + {{ .Color }} + + + + height {{ end }} @@ -70,12 +111,25 @@ - + 10 - height + + + 0.000000 + height + + {{ range . -}} + {{ if .HasHigh -}} + + {{- printf "%f" .High -}} + + {{- printf "%g" .High -}} + + {{ end -}} + {{ end }} + Avenir diff -r acd802a76b93 -r db4e7fecad0d style-templates/sounding_results_contour_lines_geoserver.sld-template --- a/style-templates/sounding_results_contour_lines_geoserver.sld-template Wed Oct 09 10:22:47 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,157 +0,0 @@ - - - - sounding_results_contour_lines - - sounding_results_contour_lines - - contour_line_colours - - - FeatureTypeStyle defining colour classes for height attribute - - - {{ range . -}} - - {{- if not .HasLow }} - ≤ {{ printf "%g" .High }} - - - height - {{ printf "%f" .High }} - - - {{- else if not .HasHigh }} - > {{ printf "%g" .Low }} - - - height - {{ printf "%f" .Low }} - - - {{- else }} - ≤ {{ printf "%g" .High }} - - - - height - {{ printf "%f" .Low }} - - - height - {{ printf "%f" .High }} - - - - {{- end }} - - - {{ .Color }} - 0.5 - - - - {{ end }} - - - contour_lines_emph - - - FeatureTypeStyle for emphasized contour lines - - - - - - - - - - {{ range . -}} - {{ if .HasHigh -}} - - - 0.000000 - height - - {{ printf "%f" .High }} - - {{ end -}} - {{ end }} - - - 5e3 - - - 1.5 - - - - 0.000000 - height - - {{ range . -}} - {{ if .HasHigh -}} - {{ printf "%f" .High }} - {{ .Color }} - {{ end -}} - {{ end }} - - - - - - - - contour_lines_label - - - FeatureTypeStyle for labels at contour lines - - - - 5e3 - - - - - 0.000000 - height - - {{ range . -}} - {{ if .HasHigh -}} - - {{- printf "%f" .High -}} - - {{- printf "%g" .High -}} - - {{ end -}} - {{ end }} - - - - Avenir - Helvetica - Arial - sans-serif - - - - 5 - - - - #070707 - - - - - - -