Ticket #2620: test.map

File test.map, 2.5 kB (added by skerrick, 6 months ago)
Line 
1 #
2 # Start of map file
3 #
4 NAME TEST
5 STATUS ON
6 SIZE 500 500
7 SYMBOLSET ../symbols/symbols35.sym
8
9 EXTENT 375671 3953650 404519 3982497
10  
11 SHAPEPATH "../data/"
12 IMAGECOLOR 255 255 255
13 FONTSET ../fonts/fonts.list
14
15 WEB 
16  
17   IMAGEPATH '/dev/mapserver/tmp/'
18   LOG "../data/log.txt"
19 END # Every object in MapServer must have an END.;)
20
21 #
22 # Start of legend
23 #
24 LEGEND
25   KEYSIZE 18 12
26   LABEL
27     TYPE BITMAP
28     SIZE MEDIUM
29     COLOR 0 0 89
30   END
31   STATUS ON
32 END
33
34
35 SCALEBAR
36   IMAGECOLOR 0 0 0
37   LABEL
38     COLOR 255 255 255
39     SIZE TINY
40   END
41   STYLE 1
42   SIZE 100 2
43   COLOR 255 255 255
44   UNITS FEET
45   INTERVALS 2
46   TRANSPARENT FALSE
47   STATUS ON
48 END # Scalebar object ends
49
50
51 #
52 # Querymap settings
53 #
54 # Style is one of NORMAL, HILITE, or SELECTED
55 #
56 QUERYMAP
57   SIZE 500 500
58   STATUS ON
59   STYLE HILITE  # SELECTED | NORMAL
60   COLOR 255 0 0     
61 END
62
63 # The reference object is used to define a reference map for your mapping
64 # application.  This typically involves defining a small image that covers
65 # the entire area of the map and defining a box that represents the current
66 # view on in relation to the entire area.
67 REFERENCE
68   IMAGE '../data/ref.png' # The reference image
69   SIZE 155 155 # The size of the reference image in pixels
70   EXTENT 375671 3953650 404519 3982497
71   STATUS ON
72   MINBOXSIZE 10 # How small can the reference box be before it gets drawn as a point, in pixels
73   MAXBOXSIZE 155 # The maximum size of the reference box, in pixels
74   COLOR -1 -1 -1 # The reference box fill color, negative numbers mean transparent
75   OUTLINECOLOR 128 0 0 # The reference box outline color
76   MARKERSIZE 8 # The size of the point marker
77   MARKER 'star' # The marker symbol
78 END
79
80
81 LAYER
82     NAME "RESULT_TEST"
83     STATUS ON
84     TYPE POINT
85     CONNECTIONTYPE OGR 
86     CONNECTION "result_test.ovf"
87 #    CONNECTION "ODBC:decpdb_user/10*faces@DECPDB"
88    
89     TOLERANCE 0
90     LABELITEM    "NAME"
91    
92     DATA "result_test"
93 #       DATA "SELECT * FROM location_hdr WHERE source_org_code='SANI'"
94     TEMPLATE "../../templates/bodytemplate.html"     
95    
96     CLASS
97        NAME "result_test"
98
99        STYLE
100            SYMBOL 'circle'
101            SIZE 8
102            COLOR 255 165 0
103            OUTLINECOLOR 0 0 0
104        END
105        
106       LABEL
107         COLOR 255 255 255
108         OUTLINECOLOR 0 0 0
109         TYPE TRUETYPE
110         FONT arial-bold
111         SIZE 6
112         POSITION CL
113         PARTIALS TRUE
114         BUFFER 4
115       END # end of label           
116     END
117 END 
118
119
120 END # Map