/
mapserver.map
114 lines (99 loc) · 3.28 KB
/
mapserver.map
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
#
# MapServer Mapfile
#
# Test requests:
#
# WMS GetCapabilities:
# /mapserv?service=wms&version=1.1.1&request=getcapabilities
#
# WMS GetMap:
# /mapserv?service=wms&version=1.1.1&request=getmap&bbox=-180,-90,180,90&layers=countries&width=600&height=400&srs=EPSG:4326&format=image/png
#
# WMS GetFeatureInfo:
# /mapserv?service=wms&version=1.1.1&request=getfeatureinfo&bbox=-180,-90,180,90&layers=countries&query_layers=countries&width=600&height=400&srs=EPSG:4326&format=image/png&x=180&y=90&info_format=application/vnd.ogc.gml
#
MAP
NAME "geostyler-mapfile-parser"
# For Windows users: uncomment this line and adapt it to your
# own mapserver's nad folder (use regular slash "/")
# CONFIG "PROJ_LIB" "C:/path/to/ms4w/proj/nad"
EXTENT -180 -90 180 90
UNITS METERS
# RESOLUTION and DEFRESOLUTION default to 96. If you
# change RESOLUTION to some other value, also change
# DEFRESOLUTION. See
# http://mapserver.org/development/rfc/ms-rfc-55.html
RESOLUTION 96 ## Also set in Openlayers especially for legends
DEFRESOLUTION 96
# MAXSIZE shouldn't be less than 5000 for MF print on A3
MAXSIZE 5000
SHAPEPATH '/etc/mapserver'
IMAGECOLOR 255 255 255
STATUS ON
FONTSET "fonts.conf"
SYMBOLSET "symbols.sym"
OUTPUTFORMAT
NAME jpeg
DRIVER "AGG/JPEG"
MIMETYPE "image/jpeg"
IMAGEMODE RGB
EXTENSION "jpeg"
FORMATOPTION "QUALITY=75,PROGRESSIVE=TRUE"
END
OUTPUTFORMAT
NAME png
DRIVER AGG/PNG
MIMETYPE "image/png"
IMAGEMODE RGBA
EXTENSION "png"
FORMATOPTION "INTERLACE=OFF"
FORMATOPTION "QUANTIZE_DITHER=OFF"
FORMATOPTION "QUANTIZE_FORCE=ON"
FORMATOPTION "QUANTIZE_COLORS=256"
END
OUTPUTFORMAT
NAME "geojson"
DRIVER "OGR/GEOJSON"
MIMETYPE "application/json; subtype=geojson; charset=utf-8"
FORMATOPTION "STORAGE=stream"
FORMATOPTION "FORM=SIMPLE"
END
PROJECTION
"init=epsg:4326"
END
WEB
METADATA
"wms_title" "Geostyler-mapfile-parser"
"wms_abstract" "Geostyler-mapfile-parser"
#"wms_onlineresource" "http://mapserver//mapserv"
"wms_srs" "EPSG:4326"
"wms_extent" "-180 -90 180 90"
"wms_encoding" "UTF-8"
"wms_enable_request" "*"
"wfs_enable_request" "!*"
"wfs_encoding" "UTF-8"
"wfs_getfeature_formatlist" "gml,geojson"
#"wfs_onlineresource" "http://mapserver/mapserv"
END
END
LEGEND
LABEL
ENCODING "UTF-8"
TYPE TRUETYPE
FONT "Arial"
SIZE 9
END
END
INCLUDE "line_simple_line.map"
INCLUDE "line_st_sample_line_style_tags.map"
INCLUDE "point_simple_point_label.map"
INCLUDE "point_simple_point_many_classes_filters.map"
INCLUDE "point_simple_point.map"
INCLUDE "point_st_sample_point_style_tags.map"
INCLUDE "point_st_sample_point_style_tags_single_filter_list.map"
INCLUDE "point_st_sample_point_style_tags_single_filter_regex.map"
INCLUDE "polygon_simple_polygon.map"
INCLUDE "polygon_st_sample_polygon_style_tags.map"
INCLUDE "raster_simple_raster.map"
INCLUDE "raster_st_sample_raster_style_tags.map"
END