Mercurial > mxd2map
annotate mapserver/mapfile/mapfile_header.include @ 51:c7c249167817
* mapserver/mapfile/mapfile_header.include, mapserver/mapfile/mxd.map,
mapserver/symbols/symbols.sym: Optimized the mapfile to use as a
template when instantiating the new mapObj.
author | Stephan Holl <stephan.holl@intevation.de> |
---|---|
date | Tue, 10 May 2011 14:40:57 +0200 |
parents | e9c10558ee6d |
children | cd541e73d523 |
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 "../../ttf-fonts/fonts.txt" | |
7 SYMBOLSET "../symbols/symbols.sym" | |
8 IMAGETYPE png | |
9 CONFIG "ON_MISSING_DATA" "LOG" # see http://mapserver.org/mapfile/map.html for details | |
51
c7c249167817
* mapserver/mapfile/mapfile_header.include, mapserver/mapfile/mxd.map,
Stephan Holl <stephan.holl@intevation.de>
parents:
23
diff
changeset
|
10 CONFIG "MS_ERRORFILE" "../../logs/ms_error.log" |
0 | 11 DEBUG 5 |
12 | |
13 MAXSIZE 2500 # 2500x2500 pixel maximum Site | |
14 | |
15 # Own PROJECTION-file | |
51
c7c249167817
* mapserver/mapfile/mapfile_header.include, mapserver/mapfile/mxd.map,
Stephan Holl <stephan.holl@intevation.de>
parents:
23
diff
changeset
|
16 CONFIG "PROJ_LIB" "../../mapserver/epsg" |
0 | 17 |
18 PROJECTION | |
19 "init=epsg:31467" | |
20 END | |
21 | |
22 #8bit png, supports transparency. | |
23 OUTPUTFORMAT | |
24 NAME aggpng | |
25 DRIVER AGG/PNG | |
26 MIMETYPE "image/png" | |
27 | |
28 ## transparency only with RGBA Image Mode | |
29 ## mapserver had to be compiled -with-experimental-png | |
30 | |
31 IMAGEMODE RGBA | |
32 EXTENSION "png" | |
33 | |
34 ## The next options works with transparency, when requesting another | |
35 ## layer within the same request. When requesting the layer alone, | |
36 ## everything seems black. TODO: Verify if this is a bug or a features. | |
37 ## Anyway, it reduces the PNG-filesize by 70% though! | |
38 FORMATOPTION "QUANTIZE_FORCE=ON" | |
39 FORMATOPTION "QUANTIZE_COLORS=256" | |
40 FORMATOPTION "QUANTIZE_NEW=ON" | |
41 | |
42 | |
43 ## The next options will work with transparency but are incompatible | |
44 ## with the previous quantization options. | |
45 #FORMATOPTION "PALETTE_FORCE=ON" | |
46 #FORMATOPTION "PALETTE=/home/geo4/mapserver/palette.txt" #to be defined | |
47 | |
48 TRANSPARENT ON | |
49 END | |
50 | |
51 #24bit png, supports all colors but does not support transparency. | |
52 OUTPUTFORMAT | |
53 NAME aggpng24 | |
54 DRIVER AGG/PNG | |
55 MIMETYPE "image/png; mode=24bit" | |
56 IMAGEMODE RGBA | |
57 EXTENSION "png" | |
58 END | |
59 |