Mercurial > mxd2map
comparison mapserver/mapfile/mapfile_header.include @ 0:109e10c76841
Initial commit.
author | Bjoern Schilberg <bjoern@intevation.de> |
---|---|
date | Thu, 03 Mar 2011 13:59:08 +0100 |
parents | |
children | f1b0559df700 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:109e10c76841 |
---|---|
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 | |
13 CONFIG "MS_ERRORFILE" "../logs/ms_error.log" | |
14 DEBUG 5 | |
15 | |
16 MAXSIZE 2500 # 2500x2500 pixel maximum Site | |
17 | |
18 # Own PROJECTION-file | |
19 CONFIG "PROJ_LIB" "../epsg/epsg.txt" | |
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 |