]> mj.ucw.cz Git - leo.git/blob - map.cf
Labelling: Evolution parameters can be set in config file
[leo.git] / map.cf
1 Map {
2         # Data sources
3         Source {
4                 # Input file
5                 File dump.osm
6
7                 # File format:
8                 #       osmxml          OpenStreetMap XML
9                 #       fixed           Fixed objects (no File used, see FixedObjects section below)
10                 #       shape           ESRI shape file (partial support only)
11                 Format osmxml
12
13                 # MapCSS stylesheet to apply (multiple style-sheets are allowed)
14                 StyleSheet poskole.css
15         }
16
17         Source {
18                 Format fixed
19                 StyleSheet poskole.css
20         }
21
22         # Projection of our map
23         Projection "+proj=utm +zone=33 +ellps=WGS84"
24
25         # Which part of the map should drawn (in projected coordinates)
26         MinX 464737
27         MaxX 471140
28         MinY 5552849
29         MaxY 5557376
30
31         # Draw on A3 paper
32         PageWidth 420
33         PageHeight 297
34
35         # Draw on A4 paper
36         # PageWidth 297
37         # PageHeight 210
38
39         # Clip output to the requested rectangle
40         Clip 1
41
42         # Rotate the map by 90 degrees
43         Rotate 0
44
45         # Draw blue border around the requested rectangle
46         DrawBorder 0
47
48         # Write SVG output here
49         SVGOutput output.svg
50 }
51
52 FixedObjects {
53         # Fixed objects may be placed at specific positions on the paper
54         # with specific tags. Remember to enable the "fixed" data source.
55         Object {
56                 X 100
57                 Y 100
58                 Tag legend logo
59         }
60 }
61
62 Debug {
63         # Dump map data exactly as parsed
64         DumpSource 0
65
66         # Dump map data after projection to Map.Projection
67         DumpAfterProj 0
68
69         # Dump map data after conversion to on-paper coordinates
70         DumpAfterScaling 0
71
72         # Dump intermediate representations of multipolygons
73         DumpMultipolygons 0
74
75         # Dump stylesheet as parsed
76         DumpCSS 0
77
78         # Dump styling decisions
79         DumpStyling 0
80
81         # Dump planning and drawing of symbols
82         DumpSymbols 0
83 }
84
85 Evolution {
86         # Number of individuals in each generation
87         PopSize 50
88
89         # Enhance number of individuals created by elitisc to fit population size
90         FitSize 1
91
92         # Terminating condition
93         # 1 -- penalty reached, 2 -- stagnation, 3 -- iteration limit
94         TermCond 3
95         PenaltyBound 100
96         StagnationBound 10
97         IterationLimit 200
98
99         # Create that part of generation by breeding
100         BreedPopSize 0.45
101         # Use that part of best individuals for parent selection
102         BreedNumBest 0.9
103         # Probability of children mutation
104         MutateChild 0.6
105
106         # Create that part of generation by mutation
107         MutatePopSize 0.45
108         # Use that part of best individuals for individual selection
109         MutateNumBest 0.9
110         # Probability of moving label
111         MutateMoveBound 0.1
112         # Probability of regeneration label coordinates
113         MutateRegenBound 0.05
114         # Probability of changing label variant
115         MutateChvarBound 0.1
116
117         ElitePopSize 0.1
118
119         # Maximal length of line section in milimeters
120         MaxSectionLenght 80
121         # Section's length may exceed limit by at most [mm]
122         MaxSectionOverlay 10
123 }