]> mj.ucw.cz Git - leo.git/blob - map.cf
Labelling: Bugfixes in get_closure
[leo.git] / map.cf
1 Map {
2         # Data sources
3         Source {
4                 # Input file
5                 File lada.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         # Projection of our map
18         Projection "+proj=utm +zone=33 +ellps=WGS84"
19
20         # Which part of the map should drawn (in projected coordinates)
21         MinX 466902
22         MaxX 468293
23         MinY 5615902
24         MaxY 5616938
25
26         # Draw on A3 paper
27         PageWidth 420
28         PageHeight 297
29
30         # Draw on A4 paper
31         # PageWidth 297
32         # PageHeight 210
33
34         # Clip output to the requested rectangle
35         Clip 0
36
37         # Rotate the map by 90 degrees
38         Rotate 0
39
40         # Draw blue border around the requested rectangle
41         DrawBorder 1
42
43         # Write SVG output here
44         SVGOutput output.svg
45 }
46
47 Debug {
48         # Dump map data exactly as parsed
49         DumpSource 0
50
51         # Dump map data after projection to Map.Projection
52         DumpAfterProj 0
53
54         # Dump map data after conversion to on-paper coordinates
55         DumpAfterScaling 0
56
57         # Dump intermediate representations of multipolygons
58         DumpMultipolygons 0
59
60         # Dump stylesheet as parsed
61         DumpCSS 0
62
63         # Dump styling decisions
64         DumpStyling 0
65
66         # Dump planning and drawing of symbols
67         DumpSymbols 0
68 }
69
70 Labelling {
71         # Maximal length of line section in milimeters
72         MaxSectionLenght 80
73         # Section's length may exceed limit by at most [mm]
74         MaxSectionOverlay 10
75         # Bitmap granularity (bitmap points per milimeter)
76         BitmapGranularity 1
77 }
78
79 Evolution {
80         # Number of individuals in each generation
81         PopSize 50
82
83         # Enhance number of individuals created by elitisc to fit population size
84         FitSize 1
85
86         # Terminating condition
87         # 1 -- penalty reached, 2 -- stagnation, 3 -- iteration limit
88         TermCond 3
89         PenaltyBound 100
90         StagnationBound 10
91         IterationLimit 200
92
93         # Ranking parameters
94         DistanceWeight  1
95         OmittmentWeight 1
96         OverlapWeight   1
97
98         # Create that part of generation by breeding
99         BreedPopSize 0.45
100         # Use that part of best individuals for parent selection
101         BreedNumBest 0.9
102         # Probability of children mutation
103         MutateChild 0.6
104
105         # Create that part of generation by mutation
106         MutatePopSize 0.45
107         # Use that part of best individuals for individual selection
108         MutateNumBest 0.9
109         # Probability of moving label
110         MutateMoveBound 0.1
111         # Probability of regeneration label coordinates
112         MutateRegenBound 0.05
113         # Probability of changing label variant
114         MutateChvarBound 0.1
115
116         ElitePopSize 0.1
117 }