Skip to content

Commit

Permalink
Changes to enable multiple styles for reference map (#630)
Browse files Browse the repository at this point in the history
* Also mount 'sld' directory into the container for map styling.

* Merge 'binnentuin' layers and remove obsolete filter for 'autosnelweg' (in SQL already).
  • Loading branch information
emacgillavry authored Jan 7, 2025
1 parent 7a6f1d4 commit 367d457
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 85 deletions.
2 changes: 2 additions & 0 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ services:
- ./tools/:/srv/mapserver/tools/
- ./symbols/:/srv/mapserver/symbols/
- ./fonts/:/srv/mapserver/fonts/
- ./sld/:/srv/mapserver/sld/
- ./connection/:/srv/mapserver/connection/
- ./private:/srv/mapserver/

Expand Down Expand Up @@ -122,5 +123,6 @@ services:
- ./tools/:/srv/mapserver/tools/
- ./symbols/:/srv/mapserver/symbols/
- ./fonts/:/srv/mapserver/fonts/
- ./sld/:/srv/mapserver/sld/
- ./connection/:/srv/mapserver/connection/
- ./referentiekaarten/:/srv/mapserver/
49 changes: 6 additions & 43 deletions sld/kbk10_light.xml
Original file line number Diff line number Diff line change
Expand Up @@ -417,24 +417,7 @@
</UserStyle>
</NamedLayer>
<NamedLayer>
<Name>TRN_binnentuin-case</Name>
<UserStyle>
<FeatureTypeStyle>
<Rule>
<MinScaleDenominator>3500</MinScaleDenominator>
<MaxScaleDenominator>8000</MaxScaleDenominator>
<PolygonSymbolizer>
<Stroke>
<CssParameter name="stroke">#C9C7C2</CssParameter>
<CssParameter name="stroke-width">1.5</CssParameter>
</Stroke>
</PolygonSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
<NamedLayer>
<Name>TRN_binnentuin-fill</Name>
<Name>TRN_binnentuin</Name>
<UserStyle>
<FeatureTypeStyle>
<Rule>
Expand All @@ -444,6 +427,10 @@
<Fill>
<CssParameter name="fill">#E5EBD8</CssParameter>
</Fill>
<Stroke>
<CssParameter name="stroke">#C9C7C2</CssParameter>
<CssParameter name="stroke-width">1.5</CssParameter>
</Stroke>
</PolygonSymbolizer>
</Rule>
</FeatureTypeStyle>
Expand Down Expand Up @@ -871,12 +858,6 @@
<UserStyle>
<FeatureTypeStyle>
<Rule>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>TYPEWEG</ogc:PropertyName>
<ogc:Literal>autosnelweg</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<MinScaleDenominator>8000</MinScaleDenominator>
<MaxScaleDenominator>20000</MaxScaleDenominator>
<LineSymbolizer>
Expand All @@ -887,12 +868,6 @@
</LineSymbolizer>
</Rule>
<Rule>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>TYPEWEG</ogc:PropertyName>
<ogc:Literal>autosnelweg</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<MinScaleDenominator>3500</MinScaleDenominator>
<MaxScaleDenominator>8000</MaxScaleDenominator>
<LineSymbolizer>
Expand All @@ -910,12 +885,6 @@
<UserStyle>
<FeatureTypeStyle>
<Rule>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>TYPEWEG</ogc:PropertyName>
<ogc:Literal>autosnelweg</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<MinScaleDenominator>8000</MinScaleDenominator>
<MaxScaleDenominator>20000</MaxScaleDenominator>
<LineSymbolizer>
Expand All @@ -926,12 +895,6 @@
</LineSymbolizer>
</Rule>
<Rule>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>TYPEWEG</ogc:PropertyName>
<ogc:Literal>autosnelweg</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<MinScaleDenominator>3500</MinScaleDenominator>
<MaxScaleDenominator>8000</MaxScaleDenominator>
<LineSymbolizer>
Expand All @@ -944,4 +907,4 @@
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
</StyledLayerDescriptor>
47 changes: 5 additions & 42 deletions sld/kbk10_zw.xml
Original file line number Diff line number Diff line change
Expand Up @@ -417,13 +417,16 @@
</UserStyle>
</NamedLayer>
<NamedLayer>
<Name>TRN_binnentuin-case</Name>
<Name>TRN_binnentuin</Name>
<UserStyle>
<FeatureTypeStyle>
<Rule>
<MinScaleDenominator>3500</MinScaleDenominator>
<MaxScaleDenominator>8000</MaxScaleDenominator>
<PolygonSymbolizer>
<Fill>
<CssParameter name="fill">#F0F0F0</CssParameter>
</Fill>
<Stroke>
<CssParameter name="stroke">#C9C7C2</CssParameter>
<CssParameter name="stroke-width">1.5</CssParameter>
Expand All @@ -433,22 +436,6 @@
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
<NamedLayer>
<Name>TRN_binnentuin-fill</Name>
<UserStyle>
<FeatureTypeStyle>
<Rule>
<MinScaleDenominator>3500</MinScaleDenominator>
<MaxScaleDenominator>10000</MaxScaleDenominator>
<PolygonSymbolizer>
<Fill>
<CssParameter name="fill">#F0F0F0</CssParameter>
</Fill>
</PolygonSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
<NamedLayer>
<Name>WDL_waterbassin</Name>
<UserStyle>
Expand Down Expand Up @@ -871,12 +858,6 @@
<UserStyle>
<FeatureTypeStyle>
<Rule>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>TYPEWEG</ogc:PropertyName>
<ogc:Literal>autosnelweg</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<MinScaleDenominator>8000</MinScaleDenominator>
<MaxScaleDenominator>20000</MaxScaleDenominator>
<LineSymbolizer>
Expand All @@ -887,12 +868,6 @@
</LineSymbolizer>
</Rule>
<Rule>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>TYPEWEG</ogc:PropertyName>
<ogc:Literal>autosnelweg</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<MinScaleDenominator>3500</MinScaleDenominator>
<MaxScaleDenominator>8000</MaxScaleDenominator>
<LineSymbolizer>
Expand All @@ -910,12 +885,6 @@
<UserStyle>
<FeatureTypeStyle>
<Rule>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>TYPEWEG</ogc:PropertyName>
<ogc:Literal>autosnelweg</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<MinScaleDenominator>8000</MinScaleDenominator>
<MaxScaleDenominator>20000</MaxScaleDenominator>
<LineSymbolizer>
Expand All @@ -926,12 +895,6 @@
</LineSymbolizer>
</Rule>
<Rule>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>TYPEWEG</ogc:PropertyName>
<ogc:Literal>autosnelweg</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<MinScaleDenominator>3500</MinScaleDenominator>
<MaxScaleDenominator>8000</MaxScaleDenominator>
<LineSymbolizer>
Expand All @@ -944,4 +907,4 @@
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
</StyledLayerDescriptor>

0 comments on commit 367d457

Please sign in to comment.