-
Notifications
You must be signed in to change notification settings - Fork 46
/
highways.map
959 lines (859 loc) · 20.7 KB
/
highways.map
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
#if _display_railways == 1
LAYER
GROUP "default"
STATUS ON
CONNECTIONTYPE POSTGIS
PROJECTION
"init=epsg:OSM_SRID"
END
CONNECTION "OSM_DB_CONNECTION"
#if OSM_FORCE_POSTGIS_EXTENT == 1
EXTENT OSM_EXTENT
#endif
MINSCALEDENOM _minscale
MAXSCALEDENOM _maxscale
TYPE LINE
NAME layername(railways,_layer_suffix)
DATA _railways_data
CLASSITEM "tunnel"
CLASS
EXPRESSION "0"
STYLE
WIDTH _railway_width
COLOR _railway_clr
OUTLINEWIDTH _railway_ol_width
OUTLINECOLOR _railway_ol_clr
PATTERN _railway_pattern END
LINECAP BUTT
END
END
CLASS
STYLE
WIDTH _railway_width
COLOR _railway_clr
PATTERN _railway_pattern END
OPACITY _railway_tunnel_opacity
LINECAP BUTT
END
END
END
#endif
#if _display_highways == 1
LAYER
GROUP "default"
STATUS ON
TYPE LINE
MINSCALEDENOM _minscale
MAXSCALEDENOM _maxscale
NAME layername(roads,_layer_suffix)
PROJECTION
"init=epsg:OSM_SRID"
END
CONNECTIONTYPE postgis
CONNECTION "OSM_DB_CONNECTION"
#if OSM_FORCE_POSTGIS_EXTENT == 1
EXTENT OSM_EXTENT
#endif
DATA _roads_data
LABELITEM "name"
CLASSITEM "type"
########################################
## small roads, no tunnels or bridges ##
########################################
#if _display_other_roads == 1
CLASS
#if _display_bridges == 1
EXPRESSION {unclassified00,residential00,service00,road00,living_street00}
#else
EXPRESSION {unclassified,residential,service,road,living_street}
#endif
#if _display_other_outline
STYLE
WIDTH _other_width
OUTLINEWIDTH _other_ol_width
OUTLINECOLOR _other_ol_clr
END
#endif
STYLE
WIDTH _other_width
COLOR _other_clr
END
#if _label_other_roads == 1
LABEL
TYPE TRUETYPE
PARTIALS FALSE
FONT _other_font
SIZE _other_lbl_size
MINDISTANCE 200
REPEATDISTANCE 400
ANGLE FOLLOW
COLOR _other_lbl_clr
OUTLINECOLOR _other_lbl_ol_clr
OUTLINEWIDTH _other_lbl_ol_width
ENCODING "UTF-8"
MINFEATURESIZE AUTO
BUFFER 3
END
#endif
END
#endif
##################################################
## tracks ##
##################################################
#if _display_tracks == 1
CLASS
#if _display_bridges == 1
EXPRESSION "track00"
#else
EXPRESSION "track"
#endif
#if _display_track_outline
STYLE
WIDTH _track_width
OUTLINEWIDTH _track_ol_width
OUTLINECOLOR _track_ol_clr
END
#endif
STYLE
PATTERN _track_pattern END
WIDTH _track_width
COLOR _track_clr
END
#if _label_track == 1
LABEL
TYPE TRUETYPE
PARTIALS FALSE
FONT _track_font
SIZE _track_lbl_size
MINDISTANCE 200
REPEATDISTANCE 400
ANGLE FOLLOW
COLOR _track_lbl_clr
OUTLINECOLOR _track_lbl_ol_clr
OUTLINEWIDTH _track_lbl_ol_width
MINFEATURESIZE AUTO
BUFFER 3
ENCODING "UTF-8"
END
#endif
END
#endif
##################################################
## tertiary roads, simple ##
##################################################
#if _display_tertiaries == 1
CLASS
#if _display_bridges == 1
EXPRESSION {tertiary00,tertiary_link00}
#else
EXPRESSION {tertiary,tertiary_link}
#endif
#if _display_tertiary_outline
STYLE
WIDTH _tertiary_width
OUTLINEWIDTH _tertiary_ol_width
OUTLINECOLOR _tertiary_ol_clr
END
#endif
STYLE
WIDTH _tertiary_width
COLOR _tertiary_clr
END
#if _label_tertiaries == 1
LABEL
TYPE TRUETYPE
PARTIALS FALSE
FONT _tertiary_font
SIZE _tertiary_lbl_size
MINDISTANCE 200
REPEATDISTANCE 400
ANGLE FOLLOW
COLOR _tertiary_lbl_clr
OUTLINECOLOR _tertiary_lbl_ol_clr
OUTLINEWIDTH _tertiary_lbl_ol_width
MINFEATURESIZE AUTO
BUFFER 3
ENCODING "UTF-8"
END
#endif
END
#endif
##################################################
## secondary roads, simple ##
##################################################
#if _display_secondaries == 1
CLASS
#if _display_bridges == 1
EXPRESSION {secondary00,secondary_link00}
#else
EXPRESSION {secondary,secondary_link}
#endif
#if _display_secondary_outline
STYLE
WIDTH _secondary_width
OUTLINEWIDTH _secondary_ol_width
OUTLINECOLOR _secondary_ol_clr
END
#endif
STYLE
WIDTH _secondary_width
COLOR _secondary_clr
END
#if _label_secondaries == 1
LABEL
TYPE TRUETYPE
PARTIALS FALSE
FONT _secondary_font
SIZE _secondary_lbl_size
MINDISTANCE 200
REPEATDISTANCE 400
ANGLE FOLLOW
COLOR _secondary_lbl_clr
OUTLINECOLOR _secondary_lbl_ol_clr
OUTLINEWIDTH _secondary_lbl_ol_width
MINFEATURESIZE AUTO
BUFFER 3
ENCODING "UTF-8"
END
#endif
END
#endif
########################################
## cycleway ##
########################################
#if _display_cycleways == 1
CLASS
#if _display_bridges == 1
EXPRESSION "cycleway00"
#else
EXPRESSION "cycleway"
#endif
#if _display_other_outline
STYLE
WIDTH _cycleway_width
OUTLINEWIDTH _cycleway_ol_width
OUTLINECOLOR _cycleway_ol_clr
END
#endif
STYLE
PATTERN _cycleway_pattern END
WIDTH _cycleway_width
COLOR _cycleway_clr
END
END
#endif
##################################################
## footways ##
##################################################
#if _display_footways == 1
CLASS
#if _display_bridges == 1
EXPRESSION {footway00,path00}
#else
EXPRESSION {footway,path}
#endif
#if _display_footway_outline
STYLE
WIDTH _footway_width
OUTLINEWIDTH _footway_ol_width
OUTLINECOLOR _footway_ol_clr
END
#endif
STYLE
PATTERN _footway_pattern END
WIDTH _footway_width
COLOR _footway_clr
END
END
#endif
##################################################
## piers ##
##################################################
#if _display_piers == 1
CLASS
EXPRESSION {pier,pier00,pier10}
#if _display_pier_outline
STYLE
WIDTH _pier_width
OUTLINEWIDTH _pier_ol_width
OUTLINECOLOR _pier_ol_clr
END
#endif
STYLE
WIDTH _pier_width
COLOR _pier_clr
END
END
#endif
##################################################
## primary roads, simple ##
##################################################
#if _display_primaries == 1
CLASS
#if _display_bridges == 1
EXPRESSION {primary00,primary_link00}
#else
EXPRESSION {primary,primary_link}
#endif
#if _display_primary_outline
STYLE
WIDTH _primary_width
OUTLINEWIDTH _primary_ol_width
OUTLINECOLOR _primary_ol_clr
END
#endif
STYLE
WIDTH _primary_width
COLOR _primary_clr
END
#if _label_primaries == 1
LABEL
TYPE TRUETYPE
PARTIALS FALSE
FONT _primary_font
SIZE _primary_lbl_size
MINDISTANCE 200
REPEATDISTANCE 400
MINFEATURESIZE AUTO
COLOR _primary_lbl_clr
OUTLINECOLOR _primary_lbl_ol_clr
OUTLINEWIDTH _primary_lbl_ol_width
ANGLE FOLLOW
BUFFER 3
ENCODING "UTF-8"
END
#endif
END
#endif
##################################################
## pedestrian streets, simple ##
##################################################
#if _display_pedestrian == 1
CLASS
#if _display_bridges == 1
EXPRESSION 'pedestrian00'
#else
EXPRESSION 'pedestrian'
#endif
#if _display_pedestrian_outline
STYLE
WIDTH _pedestrian_width
OUTLINEWIDTH _pedestrian_ol_width
OUTLINECOLOR _pedestrian_ol_clr
END
#endif
STYLE
WIDTH _pedestrian_width
COLOR _pedestrian_clr
END
#if _label_pedestrian == 1
LABEL
TYPE TRUETYPE
PARTIALS FALSE
FONT _pedestrian_font
SIZE _pedestrian_lbl_size
MINDISTANCE 200
REPEATDISTANCE 400
ANGLE FOLLOW
COLOR _pedestrian_lbl_clr
OUTLINECOLOR _pedestrian_lbl_ol_clr
OUTLINEWIDTH _pedestrian_lbl_ol_width
MINFEATURESIZE AUTO
BUFFER 3
ENCODING "UTF-8"
END
#endif
END
#endif
##################################################
## motorways, simple ##
##################################################
#if _display_motorways == 1
CLASS
#if _display_bridges == 1
EXPRESSION "motorway00"
#else
EXPRESSION "motorway"
#endif
TEXT ("[ref]")
#if _display_motorway_outline
STYLE
WIDTH _motorway_width
OUTLINEWIDTH _motorway_ol_width
OUTLINECOLOR _motorway_ol_clr
END
#endif
STYLE
WIDTH _motorway_width
COLOR _motorway_clr
END
#if _display_motorway_centerline
STYLE
WIDTH _motorway_centerline_width
COLOR _motorway_centerline_clr
END
#endif
#if _label_motorways == 1
LABEL
TYPE TRUETYPE
PARTIALS FALSE
PRIORITY 1
FONT _motorway_font
SIZE _motorway_lbl_size
MINDISTANCE 200
REPEATDISTANCE 400
MINFEATURESIZE AUTO
COLOR _motorway_lbl_clr
ANGLE FOLLOW
BUFFER 3
ENCODING "UTF-8"
END
#endif
END
#endif
##################################################
## motorway links, simple ##
##################################################
#if _display_motorway_links == 1
CLASS
#if _display_bridges == 1
EXPRESSION "motorway_link00"
#else
EXPRESSION "motorway_link"
#endif
#if _display_motorway_outline
STYLE
WIDTH _primary_width
OUTLINEWIDTH _motorway_ol_width
OUTLINECOLOR _motorway_ol_clr
END
#endif
STYLE
WIDTH _primary_width
COLOR _motorway_clr
END
END
#endif
##################################################
## trunks, simple ##
##################################################
#if _display_trunks == 1
CLASS
#if _display_bridges == 1
EXPRESSION "trunk00"
#else
EXPRESSION "trunk"
#endif
TEXT ("[ref]")
#if _display_trunk_outline
STYLE
WIDTH _trunk_width
OUTLINEWIDTH _trunk_ol_width
OUTLINECOLOR _trunk_ol_clr
END
#endif
STYLE
WIDTH _trunk_width
COLOR _trunk_clr
END
#if _display_trunk_centerline
STYLE
WIDTH _trunk_centerline_width
COLOR _trunk_centerline_clr
END
#endif
#if _label_trunks == 1
LABEL
TYPE TRUETYPE
PARTIALS FALSE
FONT _trunk_font
SIZE _trunk_lbl_size
MINDISTANCE 200
REPEATDISTANCE 400
MINFEATURESIZE AUTO
COLOR _trunk_lbl_clr
ANGLE FOLLOW
BUFFER 3
ENCODING "UTF-8"
END
#endif
END
#endif
##################################################
## trunk links, simple ##
##################################################
#if _display_trunk_links == 1
CLASS
#if _display_bridges == 1
EXPRESSION "trunk_link00"
#else
EXPRESSION "trunk_link"
#endif
#if _display_trunk_outline
STYLE
WIDTH _primary_width
OUTLINEWIDTH _trunk_ol_width
OUTLINECOLOR _trunk_ol_clr
END
#endif
STYLE
WIDTH _primary_width
COLOR _trunk_clr
END
END
#endif
###########################################################
## ##
## Bridges and tunnels ##
## ##
###########################################################
#if _display_bridges == 1
##########################
## other roads, bridges ##
##########################
#if _display_other_roads == 1
CLASS
EXPRESSION {unclassified10,residential10,service10,road10,living_street10}
#if _display_other_outline
STYLE
END
#endif
STYLE
WIDTH _other_width
OUTLINECOLOR _other_bridge_clr
OUTLINEWIDTH _other_bridge_width
LINECAP BUTT
END
STYLE
WIDTH _other_width
COLOR _other_clr
END
END
#endif
##########################
## tertiaries, bridges ##
##########################
#if _display_tertiaries == 1
CLASS
EXPRESSION {tertiary10,tertiary_link10}
#if _display_tertiary_outline
STYLE
END
#endif
STYLE
WIDTH _tertiary_width
OUTLINECOLOR _tertiary_bridge_clr
OUTLINEWIDTH _tertiary_bridge_width
LINECAP BUTT
END
STYLE
WIDTH _tertiary_width
COLOR _tertiary_clr
END
END
#endif
###########################
## secondaries, bridges ##
###########################
#if _display_secondaries == 1
CLASS
EXPRESSION {secondary10,secondary_link10}
#if _display_secondary_outline
STYLE
END
#endif
STYLE
WIDTH _secondary_width
OUTLINECOLOR _secondary_bridge_clr
OUTLINEWIDTH _secondary_bridge_width
LINECAP BUTT
END
STYLE
WIDTH _secondary_width
COLOR _secondary_clr
END
END
#endif
########################
## primaries, bridges ##
########################
#if _display_primaries == 1
CLASS
EXPRESSION {primary10,primary_link10}
#if _display_primary_outline
STYLE
END
#endif
STYLE
WIDTH _primary_width
OUTLINECOLOR _primary_bridge_clr
OUTLINEWIDTH _primary_bridge_width
LINECAP BUTT
END
STYLE
WIDTH _primary_width
COLOR _primary_clr
END
END
#endif
########################
## pedestrian bridges ##
########################
#if _display_pedestrian == 1
CLASS
EXPRESSION {pedestrian10,footway10,path10}
#if _display_pedestrian_outline
STYLE
END
#endif
STYLE
WIDTH _pedestrian_width
OUTLINECOLOR _pedestrian_bridge_clr
OUTLINEWIDTH _pedestrian_bridge_width
LINECAP BUTT
END
STYLE
WIDTH _pedestrian_width
COLOR _pedestrian_clr
END
END
#endif
########################
## motorways, bridges ##
########################
#if _display_motorways == 1
CLASS
EXPRESSION "motorway10"
#if _display_motorway_outline
STYLE
END
#endif
STYLE
WIDTH _motorway_width
OUTLINECOLOR _motorway_bridge_clr
OUTLINEWIDTH _motorway_bridge_width
LINECAP BUTT
END
STYLE
WIDTH _motorway_width
COLOR _motorway_clr
END
END
#endif
#if _display_motorway_links == 1
CLASS
EXPRESSION "motorway_link10"
#if _display_motorway_outline
STYLE
END
#endif
STYLE
WIDTH _primary_width
OUTLINECOLOR _motorway_bridge_clr
OUTLINEWIDTH _primary_bridge_width
LINECAP BUTT
END
STYLE
WIDTH _primary_width
COLOR _motorway_clr
END
END
#endif
####################
## trunk, bridges ##
####################
#if _display_trunks == 1
CLASS
EXPRESSION "trunk10"
#if _display_trunk_outline
STYLE
END
#endif
STYLE
WIDTH _trunk_width
OUTLINECOLOR _trunk_bridge_clr
OUTLINEWIDTH _trunk_bridge_width
LINECAP BUTT
END
STYLE
WIDTH _trunk_width
COLOR _trunk_clr
END
END
#endif
#if _display_trunk_links == 1
CLASS
EXPRESSION "trunk_link10"
#if _display_trunk_outline
STYLE
END
#endif
STYLE
WIDTH _primary_width
OUTLINECOLOR _trunk_bridge_clr
OUTLINEWIDTH _trunk_bridge_width
LINECAP BUTT
END
STYLE
WIDTH _primary_width
COLOR _trunk_clr
END
END
#endif
########################
## small road tunnels ##
########################
#if _display_other_roads == 1
CLASS
EXPRESSION {unclassified01,residential01,service01,living_street01}
STYLE
WIDTH _other_width
COLOR _other_clr
OPACITY _tunnel_opacity
END
END
#endif
########################
## pedestrian tunnels ##
########################
#if _display_pedestrian == 1
CLASS
EXPRESSION {pedestrian01,footway01,path01}
STYLE
WIDTH _pedestrian_width
COLOR _pedestrian_clr
OPACITY _tunnel_opacity
END
END
#endif
######################
## tertiary tunnels ##
######################
#if _display_tertiaries == 1
CLASS
EXPRESSION {tertiary01,tertiary_link01}
STYLE
WIDTH _tertiary_width
COLOR _tertiary_clr
OPACITY _tunnel_opacity
END
END
#endif
#######################
## secondary tunnels ##
#######################
#if _display_secondaries == 1
CLASS
EXPRESSION {secondary01,secondary_link01}
STYLE
WIDTH _secondary_width
COLOR _secondary_clr
OPACITY _tunnel_opacity
END
END
#endif
#####################
## primary tunnels ##
#####################
#if _display_primaries == 1
CLASS
EXPRESSION {primary01,primary_link01}
STYLE
WIDTH _primary_width
COLOR _primary_clr
OPACITY _tunnel_opacity
END
END
#endif
######################
## motorway tunnels ##
######################
#if _display_motorways == 1
CLASS
EXPRESSION "motorway01"
STYLE
WIDTH _motorway_width
COLOR _motorway_clr
OPACITY _tunnel_opacity
END
END
#endif
#if _display_motorway_links == 1
CLASS
EXPRESSION "motorway_link01"
STYLE
WIDTH _primary_width
COLOR _motorway_clr
OPACITY _tunnel_opacity
END
END
#endif
###################
## trunk tunnels ##
###################
#if _display_trunks == 1
CLASS
EXPRESSION "trunk01"
STYLE
WIDTH _trunk_width
COLOR _trunk_clr
OPACITY _tunnel_opacity
END
END
#endif
#if _display_trunk_links == 1
CLASS
EXPRESSION "trunk_link01"
STYLE
WIDTH _primary_width
COLOR _trunk_clr
OPACITY _tunnel_opacity
END
END
#endif
#endif
##(display_roads_tunnels)
END
#if _display_aeroways == 1
LAYER
GROUP "default"
STATUS ON
MINSCALEDENOM _minscale
MAXSCALEDENOM _maxscale
TYPE LINE
NAME layername(aeroways,_layer_suffix)
PROJECTION
"init=epsg:OSM_SRID"
END
CONNECTIONTYPE postgis
CONNECTION "OSM_DB_CONNECTION"
#if OSM_FORCE_POSTGIS_EXTENT == 1
EXTENT OSM_EXTENT
#endif
DATA "geometry from (select geometry, osm_id, type from OSM_SCHEMA.OSM_PREFIX_aeroways) as foo using unique osm_id using srid=OSM_SRID"
CLASSITEM "type"
CLASS
EXPRESSION "runway"
STYLE
COLOR _runway_clr
WIDTH _runway_width
LINECAP BUTT
LINEJOIN MITER
END
STYLE
COLOR _runway_center_clr
WIDTH _runway_center_width
PATTERN _runway_center_pattern END
LINECAP BUTT
END
END
CLASS
EXPRESSION "taxiway"
STYLE
COLOR _taxiway_clr
WIDTH _taxiway_width
END
END
END
#endif
#endif