Welcome to mirror list, hosted at ThFree Co, Russian Federation.

drules_struct.proto « indexer - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 51977472ab02c9ae3d06121e29bafa0ad4368011 (plain)
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
syntax = "proto3";
option optimize_for = LITE_RUNTIME;

message DashDotProto
{
  repeated double dd = 1;
  double offset = 2;
}

message PathSymProto
{
  string name = 1;
  double step = 2;
  double offset = 3;
}

enum LineJoin
{
  ROUNDJOIN = 0;
  BEVELJOIN = 1;
  NOJOIN = 2;
}

enum LineCap
{
  ROUNDCAP = 0;
  BUTTCAP = 1;
  SQUARECAP = 2;
}

message LineRuleProto
{
  double width = 1;
  uint32 color = 2;
  DashDotProto dashdot = 3;
  int32 priority = 4;
  PathSymProto pathsym = 5;
  LineJoin join = 6;
  LineCap cap = 7;
}

message LineDefProto
{
  double width = 1;
  uint32 color = 2;
  DashDotProto dashdot = 3;
  PathSymProto pathsym = 4;
  LineJoin join = 6;
  LineCap cap = 7;
}

message AreaRuleProto
{
  uint32 color = 1;
  LineDefProto border = 2;
  int32 priority = 3;
}

message SymbolRuleProto
{
  string name = 1;
  int32 apply_for_type = 2;  // 1 - for nodes, 2 - for ways, default - for all
  int32 priority = 3;
  int32 min_distance = 4;
}

message CaptionDefProto
{
  int32 height = 1;
  uint32 color = 2;
  uint32 stroke_color = 3;
  int32 offset_x = 4;
  int32 offset_y = 5;
  string text = 6;
  bool is_optional = 7;
}

message CaptionRuleProto
{
  CaptionDefProto primary = 1;
  CaptionDefProto secondary = 2;
  int32 priority = 3;
}

message CircleRuleProto
{
  double radius = 1;
  uint32 color = 2;
  LineDefProto border = 3;
  int32 priority = 4;
}

message PathTextRuleProto
{
  CaptionDefProto primary = 1;
  CaptionDefProto secondary = 2;
  int32 priority = 3;
}

message ShieldRuleProto
{
  int32 height = 1;
  uint32 color = 2;
  uint32 stroke_color = 3;
  int32 priority = 4;
  int32 min_distance = 5;
  uint32 text_color = 6;
  uint32 text_stroke_color = 7;
}

message DrawElementProto
{
  int32 scale = 1;
  repeated LineRuleProto lines = 2;
  AreaRuleProto area = 3;
  SymbolRuleProto symbol = 4;
  CaptionRuleProto caption = 5;
  CircleRuleProto circle = 6;
  PathTextRuleProto path_text = 7;
  ShieldRuleProto shield = 8;
  repeated string apply_if = 9;
}

message ClassifElementProto
{
  string name = 1;
  repeated DrawElementProto element = 2;
}

message ColorElementProto
{
  string name = 1;
  uint32 color = 2;
  float x = 3;
  float y = 4;
}

message ColorsElementProto
{
  repeated ColorElementProto value = 1;
}

message ContainerProto
{
  repeated ClassifElementProto cont = 1;
  ColorsElementProto colors = 2;
}