Mercurial > mxd2map
annotate mapserver/mapfile/mapfile_header.include @ 38:27577294f9ca
Added root element to document and save the filename in the XML tree.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Thu, 14 Apr 2011 11:04:59 +0200 |
parents | e9c10558ee6d |
children | c7c249167817 |
rev | line source |
---|---|
0 | 1 STATUS ON |
2 SIZE 400 400 | |
3 EXTENT 3427000 5787000 3444200 5801000 | |
4 UNITS meters | |
5 IMAGECOLOR -1 -1 -1 #transparent | |
6 #FONTSET "../fonts/fonts.txt" | |
7 FONTSET "../../ttf-fonts/fonts.txt" | |
8 SYMBOLSET "../symbols/symbols.sym" | |
9 SHAPEPATH "../../testdata-frida" | |
10 IMAGETYPE png | |
11 CONFIG "ON_MISSING_DATA" "LOG" # see http://mapserver.org/mapfile/map.html for details | |
12 CONFIG "CPL_DEBUG" "ON" # GDAL-debugging on | |
5
f1b0559df700
Adjusted CONFIG "MS_ERRORFILE". Commented out CONFIG "PROJ_LIB", because it doesn' work.
Bjoern Schilberg <bjoern@intevation.de>
parents:
0
diff
changeset
|
13 CONFIG "MS_ERRORFILE" "/home/intevation/mxd-testbed/mapserver/logs/ms_error.log" |
0 | 14 DEBUG 5 |
15 | |
16 MAXSIZE 2500 # 2500x2500 pixel maximum Site | |
17 | |
18 # Own PROJECTION-file | |
23
e9c10558ee6d
Fixed epsg problem with own epsg file.
Bjoern Schilberg <bjoern@intevation.de>
parents:
5
diff
changeset
|
19 CONFIG "PROJ_LIB" "/home/intevation/mxd-testbed/mapserver/epsg" |
0 | 20 |
21 PROJECTION | |
22 "init=epsg:31467" | |
23 END | |
24 | |
25 #8bit png, supports transparency. | |
26 OUTPUTFORMAT | |
27 NAME aggpng | |
28 DRIVER AGG/PNG | |
29 MIMETYPE "image/png" | |
30 | |
31 ## transparency only with RGBA Image Mode | |
32 ## mapserver had to be compiled -with-experimental-png | |
33 | |
34 IMAGEMODE RGBA | |
35 EXTENSION "png" | |
36 | |
37 ## The next options works with transparency, when requesting another | |
38 ## layer within the same request. When requesting the layer alone, | |
39 ## everything seems black. TODO: Verify if this is a bug or a features. | |
40 ## Anyway, it reduces the PNG-filesize by 70% though! | |
41 FORMATOPTION "QUANTIZE_FORCE=ON" | |
42 FORMATOPTION "QUANTIZE_COLORS=256" | |
43 FORMATOPTION "QUANTIZE_NEW=ON" | |
44 | |
45 | |
46 ## The next options will work with transparency but are incompatible | |
47 ## with the previous quantization options. | |
48 #FORMATOPTION "PALETTE_FORCE=ON" | |
49 #FORMATOPTION "PALETTE=/home/geo4/mapserver/palette.txt" #to be defined | |
50 | |
51 TRANSPARENT ON | |
52 END | |
53 | |
54 #24bit png, supports all colors but does not support transparency. | |
55 OUTPUTFORMAT | |
56 NAME aggpng24 | |
57 DRIVER AGG/PNG | |
58 MIMETYPE "image/png; mode=24bit" | |
59 IMAGEMODE RGBA | |
60 EXTENSION "png" | |
61 END | |
62 | |
63 # 8bit jpeg | |
64 OUTPUTFORMAT | |
65 NAME jpeg | |
66 DRIVER "GD/JPEG" | |
67 MIMETYPE "image/jpeg" | |
68 IMAGEMODE RGB | |
69 EXTENSION "jpg" | |
70 FORMATOPTION "QUALITY=80" | |
71 FORMATOPTION "INTERLACE=ON" | |
72 END |