Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cartografische aanpassingen #606

Merged
merged 1 commit into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions gen_historischebodeminformatie.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def slugify(s: str) -> str:
("Bodemgebruik en obstakels", "Overig", "Overig", ('#d00ee5', False)),
("Bodemgebruik en obstakels", "Spoorwegemplacement", "Spoorwegemplacement", ('#ae95b9', False)),
("Bodemgebruik en obstakels", "Stookruimte/olietank", "Stookruimte/olietank", ('#713dbe', False)),
("Bodemgebruik en obstakels", "Tram- en busremises", "Tram en busremises", ('#3a15e1', False)),
("Bodemgebruik en obstakels", "Tram- en busremises", "Tram- en busremises", ('#3a15e1', False)),
("Bodemgebruik en obstakels", "Volkstuinen", "Volkstuinen", ('#06d3f7', False)),
("Lijnvormige obstakels", "Gasbuis", "Gasbuis", ('#bfb479', True)), #LIJN zit in 'kabels en leidingen'
("Lijnvormige obstakels", "Grondkering", "Grondkering", ('#d7650e',False)),
Expand Down Expand Up @@ -90,6 +90,7 @@ def slugify(s: str) -> str:
with block("STYLE"):
p(f'COLOR "{colors[0]}"')
p("OPACITY", 40)
with block("STYLE"):
p(f'OUTLINECOLOR "{colors[0]}"')
p("WIDTH ", 2)

Expand Down Expand Up @@ -140,12 +141,11 @@ def slugify(s: str) -> str:

with block("STYLE"):
p(f'COLOR "{colors[0]}"')
p("OPACITY", 40)
p(f'OUTLINECOLOR "{colors[0]}"')
p("WIDTH ", 2)
if colors[1] == True:
with block("PATTERN"):
print ("10 5")
print ("3 3")

with block("LABEL"):
p("MAXSCALEDENOM 3000")
Expand Down Expand Up @@ -194,9 +194,12 @@ def slugify(s: str) -> str:
with block("STYLE"):
p(f'COLOR "{colors[0]}"')
p("OPACITY", 40)

#tweede style block om te voorkomen dat de randen ook transparant worden.
with block("STYLE"):
p(f'OUTLINECOLOR "{colors[0]}"')
p("WIDTH ", 2)

#ik verdubbel het label omdat er twee opties zijn, ik krijg het simpeler even niet gefixt..
with block("LABEL"):
p("EXPRESSION ([van_minimaal_jaar] = [van_maximaal_jaar])")
Expand Down
54 changes: 38 additions & 16 deletions historischebodeminformatie.map
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ MAP
STYLE
COLOR "#ebdc56"
OPACITY 40
END
STYLE
OUTLINECOLOR "#ebdc56"
WIDTH 2
END
Expand Down Expand Up @@ -75,6 +77,8 @@ MAP
STYLE
COLOR "#d5587c"
OPACITY 40
END
STYLE
OUTLINECOLOR "#d5587c"
WIDTH 2
END
Expand Down Expand Up @@ -117,6 +121,8 @@ MAP
STYLE
COLOR "#a78409"
OPACITY 40
END
STYLE
OUTLINECOLOR "#a78409"
WIDTH 2
END
Expand Down Expand Up @@ -159,6 +165,8 @@ MAP
STYLE
COLOR "#0e6f99"
OPACITY 40
END
STYLE
OUTLINECOLOR "#0e6f99"
WIDTH 2
END
Expand Down Expand Up @@ -201,6 +209,8 @@ MAP
STYLE
COLOR "#9bca54"
OPACITY 40
END
STYLE
OUTLINECOLOR "#9bca54"
WIDTH 2
END
Expand Down Expand Up @@ -243,6 +253,8 @@ MAP
STYLE
COLOR "#03cea2"
OPACITY 40
END
STYLE
OUTLINECOLOR "#03cea2"
WIDTH 2
END
Expand Down Expand Up @@ -285,6 +297,8 @@ MAP
STYLE
COLOR "#d00ee5"
OPACITY 40
END
STYLE
OUTLINECOLOR "#d00ee5"
WIDTH 2
END
Expand Down Expand Up @@ -327,6 +341,8 @@ MAP
STYLE
COLOR "#ae95b9"
OPACITY 40
END
STYLE
OUTLINECOLOR "#ae95b9"
WIDTH 2
END
Expand Down Expand Up @@ -369,6 +385,8 @@ MAP
STYLE
COLOR "#713dbe"
OPACITY 40
END
STYLE
OUTLINECOLOR "#713dbe"
WIDTH 2
END
Expand All @@ -389,7 +407,7 @@ MAP
LAYER
NAME 'tram_en_busremises'
INCLUDE 'connection/dataservices.inc'
DATA "geometrie from (SELECT * FROM public.historische_bodeminformatie_bodemgebruik_en_obstakels where categorie = 'Tram en busremises') as subquery USING srid=28992 USING UNIQUE id"
DATA "geometrie from (SELECT * FROM public.historische_bodeminformatie_bodemgebruik_en_obstakels where categorie = 'Tram- en busremises') as subquery USING srid=28992 USING UNIQUE id"
GROUP 'bodemgebruik_en_obstakels'
TYPE POLYGON
TEMPLATE 'fooOnlyForWMSGetFeatureInfo.html'
Expand All @@ -411,6 +429,8 @@ MAP
STYLE
COLOR "#3a15e1"
OPACITY 40
END
STYLE
OUTLINECOLOR "#3a15e1"
WIDTH 2
END
Expand Down Expand Up @@ -453,6 +473,8 @@ MAP
STYLE
COLOR "#06d3f7"
OPACITY 40
END
STYLE
OUTLINECOLOR "#06d3f7"
WIDTH 2
END
Expand Down Expand Up @@ -494,11 +516,10 @@ MAP
TITLE 'Gasbuis'
STYLE
COLOR "#bfb479"
OPACITY 40
OUTLINECOLOR "#bfb479"
WIDTH 2
PATTERN
10 5
3 3
END
END
LABEL
Expand Down Expand Up @@ -539,7 +560,6 @@ MAP
TITLE 'Grondkering'
STYLE
COLOR "#d7650e"
OPACITY 40
OUTLINECOLOR "#d7650e"
WIDTH 2
END
Expand Down Expand Up @@ -581,11 +601,10 @@ MAP
TITLE 'Kabel'
STYLE
COLOR "#d67814"
OPACITY 40
OUTLINECOLOR "#d67814"
WIDTH 2
PATTERN
10 5
3 3
END
END
LABEL
Expand Down Expand Up @@ -626,11 +645,10 @@ MAP
TITLE 'Mantelbuis'
STYLE
COLOR "#79e0d4"
OPACITY 40
OUTLINECOLOR "#79e0d4"
WIDTH 2
PATTERN
10 5
3 3
END
END
LABEL
Expand Down Expand Up @@ -671,11 +689,10 @@ MAP
TITLE 'Persleiding'
STYLE
COLOR "#20a620"
OPACITY 40
OUTLINECOLOR "#20a620"
WIDTH 2
PATTERN
10 5
3 3
END
END
LABEL
Expand Down Expand Up @@ -716,11 +733,10 @@ MAP
TITLE 'Riool'
STYLE
COLOR "#0e5129"
OPACITY 40
OUTLINECOLOR "#0e5129"
WIDTH 2
PATTERN
10 5
3 3
END
END
LABEL
Expand Down Expand Up @@ -761,11 +777,10 @@ MAP
TITLE 'Spoorweg'
STYLE
COLOR "#232323"
OPACITY 40
OUTLINECOLOR "#232323"
WIDTH 2
PATTERN
10 5
3 3
END
END
LABEL
Expand Down Expand Up @@ -806,11 +821,10 @@ MAP
TITLE 'Waterleiding'
STYLE
COLOR "#3a15e1"
OPACITY 40
OUTLINECOLOR "#3a15e1"
WIDTH 2
PATTERN
10 5
3 3
END
END
LABEL
Expand Down Expand Up @@ -851,6 +865,8 @@ MAP
STYLE
COLOR "#e4d62e"
OPACITY 40
END
STYLE
OUTLINECOLOR "#e4d62e"
WIDTH 2
END
Expand Down Expand Up @@ -919,6 +935,8 @@ MAP
STYLE
COLOR "#ce7263"
OPACITY 40
END
STYLE
OUTLINECOLOR "#ce7263"
WIDTH 2
END
Expand Down Expand Up @@ -987,6 +1005,8 @@ MAP
STYLE
COLOR "#66b2b1"
OPACITY 40
END
STYLE
OUTLINECOLOR "#66b2b1"
WIDTH 2
END
Expand Down Expand Up @@ -1055,6 +1075,8 @@ MAP
STYLE
COLOR "#8c8c8b"
OPACITY 40
END
STYLE
OUTLINECOLOR "#8c8c8b"
WIDTH 2
END
Expand Down
Loading