-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathheader.inc
200 lines (167 loc) · 5.43 KB
/
header.inc
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
#==============================================================================
#
# doel: algemene header-informatie dat voor alle map-bestanden gelijk is.
#
#==============================================================================
#=============================================================================
# MAP: debug
#=============================================================================
#CONFIG "MS_ERRORFILE" "/srv/mapserver/ms_error.txt"
# Redirect errors to apache errorstream
# ENABLE for debugging purposes - quite spammy
# CONFIG "MS_ERRORFILE" stderr
#DEBUG 5
# For errors from underlying GDAL (shows SQL query issues) -- is spammy
# CONFIG "CPL_DEBUG" "ON"
# CONFIG "PROJ_DEBUG" "ON"
#=============================================================================
# MAP: algemeen
#=============================================================================
EXTENT 90000 465000 175000 520000
UNITS meters
MAXSIZE 4000
STATUS ON
# VPS06
FONTSET "fonts/fontlist.txt"
SYMBOLSET "symbols/symbollist.txt"
# SHAPEPATH ""
#=============================================================================
# MAP: algemeen uitvoer
#=============================================================================
IMAGETYPE png
WEB
METADATA
"ows_enable_request" "*"
"ows_srs" "EPSG:28992 EPSG:4326 EPSG:3857 EPSG:4258"
"ows_feature_info_mime_type" "application/json"
"wms_format" "image/png"
"wfs_encoding" "UTF-8"
"wfs_maxfeatures" "500000"
"wfs_namespace_prefix" "amsterdam"
"wfs_namespace_uri" "https://amsterdam.nl/"
"wfs_getfeature_formatlist" "gml,geojson,csv,shapezip,spatialzip"
"ows_contactorganization" "Gemeente Amsterdam"
"ows_contactperson" "n/a"
"ows_contactelectronicmailaddress" "[email protected]"
"ows_addresstype" "postal"
"ows_address" "n/a"
"ows_city" "Amsterdam"
"ows_stateorprovince" "North-Holland"
"ows_postcode" "n/a"
"ows_country" "Netherlands"
"ows_fees" "none"
"ows_accessconstraints" "none"
END
IMAGEPATH "/srv/mapserver/tmp_img/"
IMAGEURL "/ms_tmp/"
BROWSEFORMAT "image/svg+xml"
VALIDATION
"MAP_RESOLUTION" "^[0-9]{1,3}$"
"DPI" "^[0-9]{1,3}$"
"default_MAP_RESOLUTION" "91"
"default_DPI" "91"
END
END
RESOLUTION 91
DEFRESOLUTION 91
PROJECTION
"init=epsg:28992"
END
#-------------------------------------------------------------------
# UITVOERFORMATEN
#-------------------------------------------------------------------
OUTPUTFORMAT
NAME png
DRIVER "AGG/PNG"
MIMETYPE "image/png"
IMAGEMODE RGB
EXTENSION "png"
FORMATOPTION "INTERLACE=OFF"
FORMATOPTION "QUANTIZE_FORCE=ON"
END
OUTPUTFORMAT
NAME png8
DRIVER AGG/PNG8
MIMETYPE "image/png; mode=8bit"
IMAGEMODE RGB
EXTENSION "png"
FORMATOPTION "QUANTIZE_FORCE=on"
FORMATOPTION "QUANTIZE_COLORS=256"
FORMATOPTION "GAMMA=0.75"
END
OUTPUTFORMAT
NAME gif
DRIVER GD/GIF
MIMETYPE "image/gif"
IMAGEMODE PC256
EXTENSION "gif"
END
OUTPUTFORMAT
NAME "jpeg"
DRIVER AGG/JPEG
MIMETYPE "image/jpeg"
IMAGEMODE RGB
EXTENSION "jpg"
FORMATOPTION "GAMMA=0.75"
END
OUTPUTFORMAT
NAME svg
DRIVER CAIRO/SVG
MIMETYPE "image/svg+xml"
IMAGEMODE RGB
EXTENSION "svg"
END
OUTPUTFORMAT
NAME kml
DRIVER KML
MIMETYPE "application/vnd.google-earth.kml.xml"
IMAGEMODE RGB
EXTENSION "kml"
END
OUTPUTFORMAT
NAME kmz
DRIVER KMZ
MIMETYPE "application/vnd.google-earth.kmz"
IMAGEMODE RGB
EXTENSION "kmz"
END
OUTPUTFORMAT
NAME shapezip
DRIVER "OGR/ESRI Shapefile"
FORMATOPTION "STORAGE=memory"
FORMATOPTION "FORM=zip"
FORMATOPTION "FILENAME=result.zip"
END
OUTPUTFORMAT
NAME geojson
DRIVER "OGR/GEOJSON"
MIMETYPE "application/json; subtype=geojson; charset=utf-8"
FORMATOPTION "LCO:COORDINATE_PRECISION=7"
FORMATOPTION "STORAGE=stream"
FORMATOPTION "FORM=simple"
END
OUTPUTFORMAT
NAME "csv"
DRIVER "OGR/CSV"
MIMETYPE "text/csv"
FORMATOPTION "LCO:GEOMETRY=AS_WKT"
FORMATOPTION "STORAGE=memory"
FORMATOPTION "FORM=simple"
FORMATOPTION "FILENAME=result.csv"
END
OUTPUTFORMAT
NAME "gml"
DRIVER "OGR/GML"
FORMATOPTION "STORAGE=filesystem"
FORMATOPTION "FORM=multipart"
FORMATOPTION "FILENAME=result.gml"
END
OUTPUTFORMAT
NAME "spatialzip"
DRIVER "OGR/SQLITE"
MIMETYPE "application/zip"
FORMATOPTION "DSCO:SPATIALITE=YES"
FORMATOPTION "STORAGE=memory"
FORMATOPTION "FORM=zip"
FORMATOPTION "FILENAME=result.db.zip"
END