Skip to content

Commit

Permalink
Add UMN Mapserver config example
Browse files Browse the repository at this point in the history
  • Loading branch information
pka committed Nov 12, 2024
1 parent 796eea0 commit d9a168c
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 6 deletions.
71 changes: 71 additions & 0 deletions assets/mapserver.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
#
# MapServer 8.0 Config File
#
CONFIG

#
# Environment variables (see https://mapserver.org/environment_variables.html)
#
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"

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

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

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

#
# Response Control
#
# suppress version information in reponses, recommended for production deployments
# MS_NO_VERSION "1"

#
# Other Options
#
# MS_ENCRYPTION_KEY
# MS_USE_GLOBAL_FT_CACHE
# MS_PDF_CREATION_DATE
# MS_MAPFILE_PATTERN "\.map$"
# MS_XMLMAPFILE_XSLT
# MS_MODE
# MS_OPENLAYERS_JS_URL
# MS_TEMPPATH
# MS_MAX_OPEN_FILES

#
# OGC API
#
# OGCAPI_HTML_TEMPLATE_DIRECTORY "/usr/local/mapserver/share/ogcapi/templates/html-bootstrap4/"
END

#
# Map Aliases
#
MAPS
# TEST_MAPFILE "/opt/mapserver/test/test.map"
END

END
8 changes: 4 additions & 4 deletions assets/ne.map
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,19 @@ MAP
CONNECTIONTYPE OGR
CONNECTION "mvtbench.gpkg"
DATA "ne_10m_admin_0_countries"
#DATA "wkb_geometry from (SELECT ogc_fid, name, adm0_a3, abbrev, mapcolor7, wkb_geometry FROM ne_10m_admin_0_countries) as temp using unique ogc_fid using SRID=3857"
#DATA "wkb_geometry from (SELECT ogc_fid, name, adm0_a3, abbrev, mapcolor7, wkb_geometry FROM ne_10m_admin_0_countries) as temp using unique ogc_fid using SRID=3857"
EXTENT -20037508.342789 -34679773.785951 20037508.342789 18428920.012950
DUMP true
#DUMP true
METADATA
"wms_title" "country"
"wms_srs" "epsg:4326 epsg:3857 epsg:900913"
"wms_feature_info_mime_type" "text/html"
"wms_feature_info_mime_type" "text/html"
"gml_include_items" "adm0_a3,mapcolor7"
"gml_mapcolor7_type" "integer"
END
PROJECTION
"init=epsg:3857"
END
END
CLASS
STYLE
OUTLINECOLOR 200 50 100
Expand Down
3 changes: 1 addition & 2 deletions bbox.toml
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,7 @@ cache = "filecache"
[[tileset]]
name = "ne_umn"
map_service = { project = "ne", suffix = "map", layers = "country", tile_size = 512 }
cache = "mbtilecache"
#cache = "pmtilecache"
#cache = "mbtilecache"

[[tileset]]
name = "gebco"
Expand Down

0 comments on commit d9a168c

Please sign in to comment.