Mercurial > gemma
changeset 4689:1653b13e0db6
Updated sounding result wms styles to also reconfigure classbreak labels.
author | Raimund Renkert <raimund@renkert.org> |
---|---|
date | Wed, 16 Oct 2019 14:50:17 +0200 |
parents | ad271887fd8d |
children | b263d9ae0057 |
files | style-templates/sounding_differences.sld-template style-templates/sounding_results_areas_geoserver.sld-template |
diffstat | 2 files changed, 36 insertions(+), 72 deletions(-) [+] |
line wrap: on
line diff
--- a/style-templates/sounding_differences.sld-template Wed Oct 16 13:43:30 2019 +0200 +++ b/style-templates/sounding_differences.sld-template Wed Oct 16 14:50:17 2019 +0200 @@ -121,24 +121,15 @@ <ogc:Literal>0.000000</ogc:Literal> <ogc:PropertyName>height</ogc:PropertyName> </ogc:Function> - <ogc:Literal>1.000000</ogc:Literal><ogc:Literal>1</ogc:Literal> - <ogc:Literal>1.500000</ogc:Literal><ogc:Literal>1.5</ogc:Literal> - <ogc:Literal>1.700000</ogc:Literal><ogc:Literal>1.7</ogc:Literal> - <ogc:Literal>1.900000</ogc:Literal><ogc:Literal>1.9</ogc:Literal> - <ogc:Literal>2.100000</ogc:Literal><ogc:Literal>2.1</ogc:Literal> - <ogc:Literal>2.300000</ogc:Literal><ogc:Literal>2.3</ogc:Literal> - <ogc:Literal>2.500000</ogc:Literal><ogc:Literal>2.5</ogc:Literal> - <ogc:Literal>2.700000</ogc:Literal><ogc:Literal>2.7</ogc:Literal> - <ogc:Literal>2.900000</ogc:Literal><ogc:Literal>2.9</ogc:Literal> - <ogc:Literal>3.100000</ogc:Literal><ogc:Literal>3.1</ogc:Literal> - <ogc:Literal>3.300000</ogc:Literal><ogc:Literal>3.3</ogc:Literal> - <ogc:Literal>3.500000</ogc:Literal><ogc:Literal>3.5</ogc:Literal> - <ogc:Literal>4.000000</ogc:Literal><ogc:Literal>4</ogc:Literal> - <ogc:Literal>4.500000</ogc:Literal><ogc:Literal>4.5</ogc:Literal> - <ogc:Literal>5.000000</ogc:Literal><ogc:Literal>5</ogc:Literal> - <ogc:Literal>5.500000</ogc:Literal><ogc:Literal>5.5</ogc:Literal> - <ogc:Literal>6.000000</ogc:Literal><ogc:Literal>6</ogc:Literal> - <ogc:Literal>7.000000</ogc:Literal><ogc:Literal>7</ogc:Literal> + {{ range . -}} + {{ if .HasHigh -}} + <ogc:Literal> + {{- printf "%f" .High -}} + </ogc:Literal><ogc:Literal> + {{- printf "%g" .High -}} + </ogc:Literal> + {{ end -}} + {{ end }} </ogc:Function> </se:Label> <se:Font> @@ -168,24 +159,15 @@ <ogc:Literal>0.000000</ogc:Literal> <ogc:PropertyName>height</ogc:PropertyName> </ogc:Function> - <ogc:Literal>1.000000</ogc:Literal><ogc:Literal>1</ogc:Literal> - <ogc:Literal>1.500000</ogc:Literal><ogc:Literal>1.5</ogc:Literal> - <ogc:Literal>1.700000</ogc:Literal><ogc:Literal>1.7</ogc:Literal> - <ogc:Literal>1.900000</ogc:Literal><ogc:Literal>1.9</ogc:Literal> - <ogc:Literal>2.100000</ogc:Literal><ogc:Literal>2.1</ogc:Literal> - <ogc:Literal>2.300000</ogc:Literal><ogc:Literal>2.3</ogc:Literal> - <ogc:Literal>2.500000</ogc:Literal><ogc:Literal>2.5</ogc:Literal> - <ogc:Literal>2.700000</ogc:Literal><ogc:Literal>2.7</ogc:Literal> - <ogc:Literal>2.900000</ogc:Literal><ogc:Literal>2.9</ogc:Literal> - <ogc:Literal>3.100000</ogc:Literal><ogc:Literal>3.1</ogc:Literal> - <ogc:Literal>3.300000</ogc:Literal><ogc:Literal>3.3</ogc:Literal> - <ogc:Literal>3.500000</ogc:Literal><ogc:Literal>3.5</ogc:Literal> - <ogc:Literal>4.000000</ogc:Literal><ogc:Literal>4</ogc:Literal> - <ogc:Literal>4.500000</ogc:Literal><ogc:Literal>4.5</ogc:Literal> - <ogc:Literal>5.000000</ogc:Literal><ogc:Literal>5</ogc:Literal> - <ogc:Literal>5.500000</ogc:Literal><ogc:Literal>5.5</ogc:Literal> - <ogc:Literal>6.000000</ogc:Literal><ogc:Literal>6</ogc:Literal> - <ogc:Literal>7.000000</ogc:Literal><ogc:Literal>7</ogc:Literal> + {{ range . -}} + {{ if .HasHigh -}} + <ogc:Literal> + {{- printf "%f" .High -}} + </ogc:Literal><ogc:Literal> + {{- printf "%g" .High -}} + </ogc:Literal> + {{ end -}} + {{ end }} </ogc:Function> </se:Label> <se:Font>
--- a/style-templates/sounding_results_areas_geoserver.sld-template Wed Oct 16 13:43:30 2019 +0200 +++ b/style-templates/sounding_results_areas_geoserver.sld-template Wed Oct 16 14:50:17 2019 +0200 @@ -121,24 +121,15 @@ <ogc:Literal>0.000000</ogc:Literal> <ogc:PropertyName>height</ogc:PropertyName> </ogc:Function> - <ogc:Literal>1.000000</ogc:Literal><ogc:Literal>1</ogc:Literal> - <ogc:Literal>1.500000</ogc:Literal><ogc:Literal>1.5</ogc:Literal> - <ogc:Literal>1.700000</ogc:Literal><ogc:Literal>1.7</ogc:Literal> - <ogc:Literal>1.900000</ogc:Literal><ogc:Literal>1.9</ogc:Literal> - <ogc:Literal>2.100000</ogc:Literal><ogc:Literal>2.1</ogc:Literal> - <ogc:Literal>2.300000</ogc:Literal><ogc:Literal>2.3</ogc:Literal> - <ogc:Literal>2.500000</ogc:Literal><ogc:Literal>2.5</ogc:Literal> - <ogc:Literal>2.700000</ogc:Literal><ogc:Literal>2.7</ogc:Literal> - <ogc:Literal>2.900000</ogc:Literal><ogc:Literal>2.9</ogc:Literal> - <ogc:Literal>3.100000</ogc:Literal><ogc:Literal>3.1</ogc:Literal> - <ogc:Literal>3.300000</ogc:Literal><ogc:Literal>3.3</ogc:Literal> - <ogc:Literal>3.500000</ogc:Literal><ogc:Literal>3.5</ogc:Literal> - <ogc:Literal>4.000000</ogc:Literal><ogc:Literal>4</ogc:Literal> - <ogc:Literal>4.500000</ogc:Literal><ogc:Literal>4.5</ogc:Literal> - <ogc:Literal>5.000000</ogc:Literal><ogc:Literal>5</ogc:Literal> - <ogc:Literal>5.500000</ogc:Literal><ogc:Literal>5.5</ogc:Literal> - <ogc:Literal>6.000000</ogc:Literal><ogc:Literal>6</ogc:Literal> - <ogc:Literal>7.000000</ogc:Literal><ogc:Literal>7</ogc:Literal> + {{ range . -}} + {{ if .HasHigh -}} + <ogc:Literal> + {{- printf "%f" .High -}} + </ogc:Literal><ogc:Literal> + {{- printf "%g" .High -}} + </ogc:Literal> + {{ end -}} + {{ end }} </ogc:Function> </se:Label> <se:Font> @@ -168,24 +159,15 @@ <ogc:Literal>0.000000</ogc:Literal> <ogc:PropertyName>height</ogc:PropertyName> </ogc:Function> - <ogc:Literal>1.000000</ogc:Literal><ogc:Literal>1</ogc:Literal> - <ogc:Literal>1.500000</ogc:Literal><ogc:Literal>1.5</ogc:Literal> - <ogc:Literal>1.700000</ogc:Literal><ogc:Literal>1.7</ogc:Literal> - <ogc:Literal>1.900000</ogc:Literal><ogc:Literal>1.9</ogc:Literal> - <ogc:Literal>2.100000</ogc:Literal><ogc:Literal>2.1</ogc:Literal> - <ogc:Literal>2.300000</ogc:Literal><ogc:Literal>2.3</ogc:Literal> - <ogc:Literal>2.500000</ogc:Literal><ogc:Literal>2.5</ogc:Literal> - <ogc:Literal>2.700000</ogc:Literal><ogc:Literal>2.7</ogc:Literal> - <ogc:Literal>2.900000</ogc:Literal><ogc:Literal>2.9</ogc:Literal> - <ogc:Literal>3.100000</ogc:Literal><ogc:Literal>3.1</ogc:Literal> - <ogc:Literal>3.300000</ogc:Literal><ogc:Literal>3.3</ogc:Literal> - <ogc:Literal>3.500000</ogc:Literal><ogc:Literal>3.5</ogc:Literal> - <ogc:Literal>4.000000</ogc:Literal><ogc:Literal>4</ogc:Literal> - <ogc:Literal>4.500000</ogc:Literal><ogc:Literal>4.5</ogc:Literal> - <ogc:Literal>5.000000</ogc:Literal><ogc:Literal>5</ogc:Literal> - <ogc:Literal>5.500000</ogc:Literal><ogc:Literal>5.5</ogc:Literal> - <ogc:Literal>6.000000</ogc:Literal><ogc:Literal>6</ogc:Literal> - <ogc:Literal>7.000000</ogc:Literal><ogc:Literal>7</ogc:Literal> + {{ range . -}} + {{ if .HasHigh -}} + <ogc:Literal> + {{- printf "%f" .High -}} + </ogc:Literal><ogc:Literal> + {{- printf "%g" .High -}} + </ogc:Literal> + {{ end -}} + {{ end }} </ogc:Function> </se:Label> <se:Font>