Skip to content
Open
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
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:22.04
FROM ubuntu:24.04
LABEL maintainer="datapunt@amsterdam.nl"
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y \
Expand All @@ -20,6 +20,11 @@ RUN a2enmod actions cgid headers rewrite

# Configure localhost in Apache
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf

#config file
COPY mapserver.conf /usr/local/etc/
RUN echo "SetEnv MAPSERVER_CONFIG_FILE \"/usr/local/etc/mapserver.conf\"" >> /etc/apache2/apache2.conf

RUN rm /etc/apache2/mods-enabled/alias.conf
COPY docker/000-default.conf /etc/apache2/sites-available/
COPY docker/docker-entrypoint.sh /bin
Expand Down
8 changes: 7 additions & 1 deletion bag.map
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ MAP
TYPE POLYGON
MINSCALEDENOM 100
MAXSCALEDENOM 40001
OPACITY 50
TEMPLATE "fooOnlyForWMSGetFeatureInfo.html"
PROJECTION
"init=epsg:28992"
Expand All @@ -60,6 +59,7 @@ MAP
COLOR 200 200 200
OUTLINECOLOR 172 172 172
WIDTH 1
OPACITY 50
END
END

Expand All @@ -71,6 +71,7 @@ MAP
COLOR 100 200 255
OUTLINECOLOR 172 172 172
WIDTH 1
OPACITY 50
END
END

Expand All @@ -82,6 +83,7 @@ MAP
COLOR 150 150 150
OUTLINECOLOR 172 172 172
WIDTH 1
OPACITY 50
END
END

Expand All @@ -93,6 +95,7 @@ MAP
COLOR 100 255 100
OUTLINECOLOR 172 172 172
WIDTH 1
OPACITY 50
END
END

Expand All @@ -104,6 +107,7 @@ MAP
COLOR 255 175 100
OUTLINECOLOR 172 172 172
WIDTH 1
OPACITY 50
END
END

Expand All @@ -115,6 +119,7 @@ MAP
COLOR 200 100 255
OUTLINECOLOR 172 172 172
WIDTH 1
OPACITY 50
END
END

Expand All @@ -126,6 +131,7 @@ MAP
COLOR 255 255 100
OUTLINECOLOR 172 172 172
WIDTH 1
OPACITY 50
END
END

Expand Down
3 changes: 2 additions & 1 deletion gebieden.map
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,6 @@ MAP
TYPE POLYGON
MINSCALEDENOM 100
MAXSCALEDENOM 20001
OPACITY 60
TEMPLATE "fooOnlyForWMSGetFeatureInfo.html"
PROJECTION
"init=epsg:28992"
Expand All @@ -291,6 +290,7 @@ MAP
COLOR 255 140 40
OUTLINECOLOR 172 172 172
WIDTH 1
OPACITY 60
END
END

Expand All @@ -301,6 +301,7 @@ MAP
COLOR 255 200 150
OUTLINECOLOR 172 172 172
WIDTH 1
OPACITY 60
END
END

Expand Down
58 changes: 58 additions & 0 deletions mapserver.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
#
# Sample MapServer 8.0 Config File
#
CONFIG

#
# Environment variables
#
ENV
#
# Limit Mapfile Access
#
# MS_MAP_NO_PATH "1"
MS_MAP_PATTERN "^/" ## required when referencing mapfiles by path
MS_MAP_BAD_PATTERN "[/\\]{2}|[/\\]?\\.+[/\\]|,"

#
# Global Log/Debug Setup
#
MS_DEBUGLEVEL "5"
# MS_ERRORFILE "/opt/mapserver/logs/mapserver.log"

#
# Proj Library
#
# PROJ_DATA "/usr/local/share/proj"

#
# Default Map
#
# MS_MAPFILE "/opt/mapserver/test/test.map"

# disable POST requests (allowed by default, any value will do)
# MS_NO_POST "1"

#
# Other Options
#
# MS_ENCRYPTION_KEY "/opt/mapserver/mykey.txt"
# MS_USE_GLOBAL_FT_CACHE 1 # use a global font cache
# MS_PDF_CREATION_DATE "01/02/2022" # PDF create date metadata
# MS_MAPFILE_PATTERN "\.map$"
# MS_XMLMAPFILE_XSLT "/path/to/mapfile.xsl"
# MS_MODE "BROWSE" # default mode for CGI calls
# MS_OPENLAYERS_JS_URL "http://openlayers.org/api/OpenLayers.js"
# MS_TEMPPATH "/tmp"
# MS_MAX_OPEN_FILES 200 # maximum number of open files allowed on Windows
# MS_WMS_ERROR_STATUS_CODE "ON" # enable HTTP status code 4xx and 5xx in case of errors on WMS requests
END

#
# Map aliases
#
MAPS
TEST_MAPFILE "/opt/mapserver/water.map"
END

END
Loading