pbf_parser 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/pbf_parser/extconf.rb +2 -2
- data/ext/pbf_parser/fileformat.pb-c.c +89 -88
- data/ext/pbf_parser/fileformat.pb-c.h +53 -46
- data/ext/pbf_parser/osmformat.pb-c.c +584 -583
- data/ext/pbf_parser/osmformat.pb-c.h +272 -264
- data/ext/pbf_parser/pbf_parser.c +33 -33
- data/lib/pbf_parser/version.rb +3 -0
- data/lib/pbf_parser.rb +1 -0
- metadata +4 -2
@@ -1,528 +1,529 @@
|
|
1
1
|
/* Generated by the protocol buffer compiler. DO NOT EDIT! */
|
2
|
+
/* Generated from: osmformat.proto */
|
2
3
|
|
3
4
|
/* Do not generate deprecated warnings for self */
|
4
|
-
#ifndef
|
5
|
-
#define
|
5
|
+
#ifndef PROTOBUF_C__NO_DEPRECATED
|
6
|
+
#define PROTOBUF_C__NO_DEPRECATED
|
6
7
|
#endif
|
7
8
|
|
8
9
|
#include "osmformat.pb-c.h"
|
9
|
-
void
|
10
|
-
(
|
10
|
+
void osmpbf__header_block__init
|
11
|
+
(OSMPBF__HeaderBlock *message)
|
11
12
|
{
|
12
|
-
static
|
13
|
+
static OSMPBF__HeaderBlock init_value = OSMPBF__HEADER_BLOCK__INIT;
|
13
14
|
*message = init_value;
|
14
15
|
}
|
15
|
-
size_t
|
16
|
-
(const
|
16
|
+
size_t osmpbf__header_block__get_packed_size
|
17
|
+
(const OSMPBF__HeaderBlock *message)
|
17
18
|
{
|
18
|
-
|
19
|
+
assert(message->base.descriptor == &osmpbf__header_block__descriptor);
|
19
20
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
20
21
|
}
|
21
|
-
size_t
|
22
|
-
(const
|
22
|
+
size_t osmpbf__header_block__pack
|
23
|
+
(const OSMPBF__HeaderBlock *message,
|
23
24
|
uint8_t *out)
|
24
25
|
{
|
25
|
-
|
26
|
+
assert(message->base.descriptor == &osmpbf__header_block__descriptor);
|
26
27
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
27
28
|
}
|
28
|
-
size_t
|
29
|
-
(const
|
29
|
+
size_t osmpbf__header_block__pack_to_buffer
|
30
|
+
(const OSMPBF__HeaderBlock *message,
|
30
31
|
ProtobufCBuffer *buffer)
|
31
32
|
{
|
32
|
-
|
33
|
+
assert(message->base.descriptor == &osmpbf__header_block__descriptor);
|
33
34
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
34
35
|
}
|
35
|
-
|
36
|
-
|
36
|
+
OSMPBF__HeaderBlock *
|
37
|
+
osmpbf__header_block__unpack
|
37
38
|
(ProtobufCAllocator *allocator,
|
38
39
|
size_t len,
|
39
40
|
const uint8_t *data)
|
40
41
|
{
|
41
|
-
return (
|
42
|
-
protobuf_c_message_unpack (&
|
42
|
+
return (OSMPBF__HeaderBlock *)
|
43
|
+
protobuf_c_message_unpack (&osmpbf__header_block__descriptor,
|
43
44
|
allocator, len, data);
|
44
45
|
}
|
45
|
-
void
|
46
|
-
(
|
46
|
+
void osmpbf__header_block__free_unpacked
|
47
|
+
(OSMPBF__HeaderBlock *message,
|
47
48
|
ProtobufCAllocator *allocator)
|
48
49
|
{
|
49
|
-
|
50
|
+
assert(message->base.descriptor == &osmpbf__header_block__descriptor);
|
50
51
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
51
52
|
}
|
52
|
-
void
|
53
|
-
(
|
53
|
+
void osmpbf__header_bbox__init
|
54
|
+
(OSMPBF__HeaderBBox *message)
|
54
55
|
{
|
55
|
-
static
|
56
|
+
static OSMPBF__HeaderBBox init_value = OSMPBF__HEADER_BBOX__INIT;
|
56
57
|
*message = init_value;
|
57
58
|
}
|
58
|
-
size_t
|
59
|
-
(const
|
59
|
+
size_t osmpbf__header_bbox__get_packed_size
|
60
|
+
(const OSMPBF__HeaderBBox *message)
|
60
61
|
{
|
61
|
-
|
62
|
+
assert(message->base.descriptor == &osmpbf__header_bbox__descriptor);
|
62
63
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
63
64
|
}
|
64
|
-
size_t
|
65
|
-
(const
|
65
|
+
size_t osmpbf__header_bbox__pack
|
66
|
+
(const OSMPBF__HeaderBBox *message,
|
66
67
|
uint8_t *out)
|
67
68
|
{
|
68
|
-
|
69
|
+
assert(message->base.descriptor == &osmpbf__header_bbox__descriptor);
|
69
70
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
70
71
|
}
|
71
|
-
size_t
|
72
|
-
(const
|
72
|
+
size_t osmpbf__header_bbox__pack_to_buffer
|
73
|
+
(const OSMPBF__HeaderBBox *message,
|
73
74
|
ProtobufCBuffer *buffer)
|
74
75
|
{
|
75
|
-
|
76
|
+
assert(message->base.descriptor == &osmpbf__header_bbox__descriptor);
|
76
77
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
77
78
|
}
|
78
|
-
|
79
|
-
|
79
|
+
OSMPBF__HeaderBBox *
|
80
|
+
osmpbf__header_bbox__unpack
|
80
81
|
(ProtobufCAllocator *allocator,
|
81
82
|
size_t len,
|
82
83
|
const uint8_t *data)
|
83
84
|
{
|
84
|
-
return (
|
85
|
-
protobuf_c_message_unpack (&
|
85
|
+
return (OSMPBF__HeaderBBox *)
|
86
|
+
protobuf_c_message_unpack (&osmpbf__header_bbox__descriptor,
|
86
87
|
allocator, len, data);
|
87
88
|
}
|
88
|
-
void
|
89
|
-
(
|
89
|
+
void osmpbf__header_bbox__free_unpacked
|
90
|
+
(OSMPBF__HeaderBBox *message,
|
90
91
|
ProtobufCAllocator *allocator)
|
91
92
|
{
|
92
|
-
|
93
|
+
assert(message->base.descriptor == &osmpbf__header_bbox__descriptor);
|
93
94
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
94
95
|
}
|
95
|
-
void
|
96
|
-
(
|
96
|
+
void osmpbf__primitive_block__init
|
97
|
+
(OSMPBF__PrimitiveBlock *message)
|
97
98
|
{
|
98
|
-
static
|
99
|
+
static OSMPBF__PrimitiveBlock init_value = OSMPBF__PRIMITIVE_BLOCK__INIT;
|
99
100
|
*message = init_value;
|
100
101
|
}
|
101
|
-
size_t
|
102
|
-
(const
|
102
|
+
size_t osmpbf__primitive_block__get_packed_size
|
103
|
+
(const OSMPBF__PrimitiveBlock *message)
|
103
104
|
{
|
104
|
-
|
105
|
+
assert(message->base.descriptor == &osmpbf__primitive_block__descriptor);
|
105
106
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
106
107
|
}
|
107
|
-
size_t
|
108
|
-
(const
|
108
|
+
size_t osmpbf__primitive_block__pack
|
109
|
+
(const OSMPBF__PrimitiveBlock *message,
|
109
110
|
uint8_t *out)
|
110
111
|
{
|
111
|
-
|
112
|
+
assert(message->base.descriptor == &osmpbf__primitive_block__descriptor);
|
112
113
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
113
114
|
}
|
114
|
-
size_t
|
115
|
-
(const
|
115
|
+
size_t osmpbf__primitive_block__pack_to_buffer
|
116
|
+
(const OSMPBF__PrimitiveBlock *message,
|
116
117
|
ProtobufCBuffer *buffer)
|
117
118
|
{
|
118
|
-
|
119
|
+
assert(message->base.descriptor == &osmpbf__primitive_block__descriptor);
|
119
120
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
120
121
|
}
|
121
|
-
|
122
|
-
|
122
|
+
OSMPBF__PrimitiveBlock *
|
123
|
+
osmpbf__primitive_block__unpack
|
123
124
|
(ProtobufCAllocator *allocator,
|
124
125
|
size_t len,
|
125
126
|
const uint8_t *data)
|
126
127
|
{
|
127
|
-
return (
|
128
|
-
protobuf_c_message_unpack (&
|
128
|
+
return (OSMPBF__PrimitiveBlock *)
|
129
|
+
protobuf_c_message_unpack (&osmpbf__primitive_block__descriptor,
|
129
130
|
allocator, len, data);
|
130
131
|
}
|
131
|
-
void
|
132
|
-
(
|
132
|
+
void osmpbf__primitive_block__free_unpacked
|
133
|
+
(OSMPBF__PrimitiveBlock *message,
|
133
134
|
ProtobufCAllocator *allocator)
|
134
135
|
{
|
135
|
-
|
136
|
+
assert(message->base.descriptor == &osmpbf__primitive_block__descriptor);
|
136
137
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
137
138
|
}
|
138
|
-
void
|
139
|
-
(
|
139
|
+
void osmpbf__primitive_group__init
|
140
|
+
(OSMPBF__PrimitiveGroup *message)
|
140
141
|
{
|
141
|
-
static
|
142
|
+
static OSMPBF__PrimitiveGroup init_value = OSMPBF__PRIMITIVE_GROUP__INIT;
|
142
143
|
*message = init_value;
|
143
144
|
}
|
144
|
-
size_t
|
145
|
-
(const
|
145
|
+
size_t osmpbf__primitive_group__get_packed_size
|
146
|
+
(const OSMPBF__PrimitiveGroup *message)
|
146
147
|
{
|
147
|
-
|
148
|
+
assert(message->base.descriptor == &osmpbf__primitive_group__descriptor);
|
148
149
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
149
150
|
}
|
150
|
-
size_t
|
151
|
-
(const
|
151
|
+
size_t osmpbf__primitive_group__pack
|
152
|
+
(const OSMPBF__PrimitiveGroup *message,
|
152
153
|
uint8_t *out)
|
153
154
|
{
|
154
|
-
|
155
|
+
assert(message->base.descriptor == &osmpbf__primitive_group__descriptor);
|
155
156
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
156
157
|
}
|
157
|
-
size_t
|
158
|
-
(const
|
158
|
+
size_t osmpbf__primitive_group__pack_to_buffer
|
159
|
+
(const OSMPBF__PrimitiveGroup *message,
|
159
160
|
ProtobufCBuffer *buffer)
|
160
161
|
{
|
161
|
-
|
162
|
+
assert(message->base.descriptor == &osmpbf__primitive_group__descriptor);
|
162
163
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
163
164
|
}
|
164
|
-
|
165
|
-
|
165
|
+
OSMPBF__PrimitiveGroup *
|
166
|
+
osmpbf__primitive_group__unpack
|
166
167
|
(ProtobufCAllocator *allocator,
|
167
168
|
size_t len,
|
168
169
|
const uint8_t *data)
|
169
170
|
{
|
170
|
-
return (
|
171
|
-
protobuf_c_message_unpack (&
|
171
|
+
return (OSMPBF__PrimitiveGroup *)
|
172
|
+
protobuf_c_message_unpack (&osmpbf__primitive_group__descriptor,
|
172
173
|
allocator, len, data);
|
173
174
|
}
|
174
|
-
void
|
175
|
-
(
|
175
|
+
void osmpbf__primitive_group__free_unpacked
|
176
|
+
(OSMPBF__PrimitiveGroup *message,
|
176
177
|
ProtobufCAllocator *allocator)
|
177
178
|
{
|
178
|
-
|
179
|
+
assert(message->base.descriptor == &osmpbf__primitive_group__descriptor);
|
179
180
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
180
181
|
}
|
181
|
-
void
|
182
|
-
(
|
182
|
+
void osmpbf__string_table__init
|
183
|
+
(OSMPBF__StringTable *message)
|
183
184
|
{
|
184
|
-
static
|
185
|
+
static OSMPBF__StringTable init_value = OSMPBF__STRING_TABLE__INIT;
|
185
186
|
*message = init_value;
|
186
187
|
}
|
187
|
-
size_t
|
188
|
-
(const
|
188
|
+
size_t osmpbf__string_table__get_packed_size
|
189
|
+
(const OSMPBF__StringTable *message)
|
189
190
|
{
|
190
|
-
|
191
|
+
assert(message->base.descriptor == &osmpbf__string_table__descriptor);
|
191
192
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
192
193
|
}
|
193
|
-
size_t
|
194
|
-
(const
|
194
|
+
size_t osmpbf__string_table__pack
|
195
|
+
(const OSMPBF__StringTable *message,
|
195
196
|
uint8_t *out)
|
196
197
|
{
|
197
|
-
|
198
|
+
assert(message->base.descriptor == &osmpbf__string_table__descriptor);
|
198
199
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
199
200
|
}
|
200
|
-
size_t
|
201
|
-
(const
|
201
|
+
size_t osmpbf__string_table__pack_to_buffer
|
202
|
+
(const OSMPBF__StringTable *message,
|
202
203
|
ProtobufCBuffer *buffer)
|
203
204
|
{
|
204
|
-
|
205
|
+
assert(message->base.descriptor == &osmpbf__string_table__descriptor);
|
205
206
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
206
207
|
}
|
207
|
-
|
208
|
-
|
208
|
+
OSMPBF__StringTable *
|
209
|
+
osmpbf__string_table__unpack
|
209
210
|
(ProtobufCAllocator *allocator,
|
210
211
|
size_t len,
|
211
212
|
const uint8_t *data)
|
212
213
|
{
|
213
|
-
return (
|
214
|
-
protobuf_c_message_unpack (&
|
214
|
+
return (OSMPBF__StringTable *)
|
215
|
+
protobuf_c_message_unpack (&osmpbf__string_table__descriptor,
|
215
216
|
allocator, len, data);
|
216
217
|
}
|
217
|
-
void
|
218
|
-
(
|
218
|
+
void osmpbf__string_table__free_unpacked
|
219
|
+
(OSMPBF__StringTable *message,
|
219
220
|
ProtobufCAllocator *allocator)
|
220
221
|
{
|
221
|
-
|
222
|
+
assert(message->base.descriptor == &osmpbf__string_table__descriptor);
|
222
223
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
223
224
|
}
|
224
|
-
void
|
225
|
-
(
|
225
|
+
void osmpbf__info__init
|
226
|
+
(OSMPBF__Info *message)
|
226
227
|
{
|
227
|
-
static
|
228
|
+
static OSMPBF__Info init_value = OSMPBF__INFO__INIT;
|
228
229
|
*message = init_value;
|
229
230
|
}
|
230
|
-
size_t
|
231
|
-
(const
|
231
|
+
size_t osmpbf__info__get_packed_size
|
232
|
+
(const OSMPBF__Info *message)
|
232
233
|
{
|
233
|
-
|
234
|
+
assert(message->base.descriptor == &osmpbf__info__descriptor);
|
234
235
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
235
236
|
}
|
236
|
-
size_t
|
237
|
-
(const
|
237
|
+
size_t osmpbf__info__pack
|
238
|
+
(const OSMPBF__Info *message,
|
238
239
|
uint8_t *out)
|
239
240
|
{
|
240
|
-
|
241
|
+
assert(message->base.descriptor == &osmpbf__info__descriptor);
|
241
242
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
242
243
|
}
|
243
|
-
size_t
|
244
|
-
(const
|
244
|
+
size_t osmpbf__info__pack_to_buffer
|
245
|
+
(const OSMPBF__Info *message,
|
245
246
|
ProtobufCBuffer *buffer)
|
246
247
|
{
|
247
|
-
|
248
|
+
assert(message->base.descriptor == &osmpbf__info__descriptor);
|
248
249
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
249
250
|
}
|
250
|
-
|
251
|
-
|
251
|
+
OSMPBF__Info *
|
252
|
+
osmpbf__info__unpack
|
252
253
|
(ProtobufCAllocator *allocator,
|
253
254
|
size_t len,
|
254
255
|
const uint8_t *data)
|
255
256
|
{
|
256
|
-
return (
|
257
|
-
protobuf_c_message_unpack (&
|
257
|
+
return (OSMPBF__Info *)
|
258
|
+
protobuf_c_message_unpack (&osmpbf__info__descriptor,
|
258
259
|
allocator, len, data);
|
259
260
|
}
|
260
|
-
void
|
261
|
-
(
|
261
|
+
void osmpbf__info__free_unpacked
|
262
|
+
(OSMPBF__Info *message,
|
262
263
|
ProtobufCAllocator *allocator)
|
263
264
|
{
|
264
|
-
|
265
|
+
assert(message->base.descriptor == &osmpbf__info__descriptor);
|
265
266
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
266
267
|
}
|
267
|
-
void
|
268
|
-
(
|
268
|
+
void osmpbf__dense_info__init
|
269
|
+
(OSMPBF__DenseInfo *message)
|
269
270
|
{
|
270
|
-
static
|
271
|
+
static OSMPBF__DenseInfo init_value = OSMPBF__DENSE_INFO__INIT;
|
271
272
|
*message = init_value;
|
272
273
|
}
|
273
|
-
size_t
|
274
|
-
(const
|
274
|
+
size_t osmpbf__dense_info__get_packed_size
|
275
|
+
(const OSMPBF__DenseInfo *message)
|
275
276
|
{
|
276
|
-
|
277
|
+
assert(message->base.descriptor == &osmpbf__dense_info__descriptor);
|
277
278
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
278
279
|
}
|
279
|
-
size_t
|
280
|
-
(const
|
280
|
+
size_t osmpbf__dense_info__pack
|
281
|
+
(const OSMPBF__DenseInfo *message,
|
281
282
|
uint8_t *out)
|
282
283
|
{
|
283
|
-
|
284
|
+
assert(message->base.descriptor == &osmpbf__dense_info__descriptor);
|
284
285
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
285
286
|
}
|
286
|
-
size_t
|
287
|
-
(const
|
287
|
+
size_t osmpbf__dense_info__pack_to_buffer
|
288
|
+
(const OSMPBF__DenseInfo *message,
|
288
289
|
ProtobufCBuffer *buffer)
|
289
290
|
{
|
290
|
-
|
291
|
+
assert(message->base.descriptor == &osmpbf__dense_info__descriptor);
|
291
292
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
292
293
|
}
|
293
|
-
|
294
|
-
|
294
|
+
OSMPBF__DenseInfo *
|
295
|
+
osmpbf__dense_info__unpack
|
295
296
|
(ProtobufCAllocator *allocator,
|
296
297
|
size_t len,
|
297
298
|
const uint8_t *data)
|
298
299
|
{
|
299
|
-
return (
|
300
|
-
protobuf_c_message_unpack (&
|
300
|
+
return (OSMPBF__DenseInfo *)
|
301
|
+
protobuf_c_message_unpack (&osmpbf__dense_info__descriptor,
|
301
302
|
allocator, len, data);
|
302
303
|
}
|
303
|
-
void
|
304
|
-
(
|
304
|
+
void osmpbf__dense_info__free_unpacked
|
305
|
+
(OSMPBF__DenseInfo *message,
|
305
306
|
ProtobufCAllocator *allocator)
|
306
307
|
{
|
307
|
-
|
308
|
+
assert(message->base.descriptor == &osmpbf__dense_info__descriptor);
|
308
309
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
309
310
|
}
|
310
|
-
void
|
311
|
-
(
|
311
|
+
void osmpbf__change_set__init
|
312
|
+
(OSMPBF__ChangeSet *message)
|
312
313
|
{
|
313
|
-
static
|
314
|
+
static OSMPBF__ChangeSet init_value = OSMPBF__CHANGE_SET__INIT;
|
314
315
|
*message = init_value;
|
315
316
|
}
|
316
|
-
size_t
|
317
|
-
(const
|
317
|
+
size_t osmpbf__change_set__get_packed_size
|
318
|
+
(const OSMPBF__ChangeSet *message)
|
318
319
|
{
|
319
|
-
|
320
|
+
assert(message->base.descriptor == &osmpbf__change_set__descriptor);
|
320
321
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
321
322
|
}
|
322
|
-
size_t
|
323
|
-
(const
|
323
|
+
size_t osmpbf__change_set__pack
|
324
|
+
(const OSMPBF__ChangeSet *message,
|
324
325
|
uint8_t *out)
|
325
326
|
{
|
326
|
-
|
327
|
+
assert(message->base.descriptor == &osmpbf__change_set__descriptor);
|
327
328
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
328
329
|
}
|
329
|
-
size_t
|
330
|
-
(const
|
330
|
+
size_t osmpbf__change_set__pack_to_buffer
|
331
|
+
(const OSMPBF__ChangeSet *message,
|
331
332
|
ProtobufCBuffer *buffer)
|
332
333
|
{
|
333
|
-
|
334
|
+
assert(message->base.descriptor == &osmpbf__change_set__descriptor);
|
334
335
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
335
336
|
}
|
336
|
-
|
337
|
-
|
337
|
+
OSMPBF__ChangeSet *
|
338
|
+
osmpbf__change_set__unpack
|
338
339
|
(ProtobufCAllocator *allocator,
|
339
340
|
size_t len,
|
340
341
|
const uint8_t *data)
|
341
342
|
{
|
342
|
-
return (
|
343
|
-
protobuf_c_message_unpack (&
|
343
|
+
return (OSMPBF__ChangeSet *)
|
344
|
+
protobuf_c_message_unpack (&osmpbf__change_set__descriptor,
|
344
345
|
allocator, len, data);
|
345
346
|
}
|
346
|
-
void
|
347
|
-
(
|
347
|
+
void osmpbf__change_set__free_unpacked
|
348
|
+
(OSMPBF__ChangeSet *message,
|
348
349
|
ProtobufCAllocator *allocator)
|
349
350
|
{
|
350
|
-
|
351
|
+
assert(message->base.descriptor == &osmpbf__change_set__descriptor);
|
351
352
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
352
353
|
}
|
353
|
-
void
|
354
|
-
(
|
354
|
+
void osmpbf__node__init
|
355
|
+
(OSMPBF__Node *message)
|
355
356
|
{
|
356
|
-
static
|
357
|
+
static OSMPBF__Node init_value = OSMPBF__NODE__INIT;
|
357
358
|
*message = init_value;
|
358
359
|
}
|
359
|
-
size_t
|
360
|
-
(const
|
360
|
+
size_t osmpbf__node__get_packed_size
|
361
|
+
(const OSMPBF__Node *message)
|
361
362
|
{
|
362
|
-
|
363
|
+
assert(message->base.descriptor == &osmpbf__node__descriptor);
|
363
364
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
364
365
|
}
|
365
|
-
size_t
|
366
|
-
(const
|
366
|
+
size_t osmpbf__node__pack
|
367
|
+
(const OSMPBF__Node *message,
|
367
368
|
uint8_t *out)
|
368
369
|
{
|
369
|
-
|
370
|
+
assert(message->base.descriptor == &osmpbf__node__descriptor);
|
370
371
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
371
372
|
}
|
372
|
-
size_t
|
373
|
-
(const
|
373
|
+
size_t osmpbf__node__pack_to_buffer
|
374
|
+
(const OSMPBF__Node *message,
|
374
375
|
ProtobufCBuffer *buffer)
|
375
376
|
{
|
376
|
-
|
377
|
+
assert(message->base.descriptor == &osmpbf__node__descriptor);
|
377
378
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
378
379
|
}
|
379
|
-
|
380
|
-
|
380
|
+
OSMPBF__Node *
|
381
|
+
osmpbf__node__unpack
|
381
382
|
(ProtobufCAllocator *allocator,
|
382
383
|
size_t len,
|
383
384
|
const uint8_t *data)
|
384
385
|
{
|
385
|
-
return (
|
386
|
-
protobuf_c_message_unpack (&
|
386
|
+
return (OSMPBF__Node *)
|
387
|
+
protobuf_c_message_unpack (&osmpbf__node__descriptor,
|
387
388
|
allocator, len, data);
|
388
389
|
}
|
389
|
-
void
|
390
|
-
(
|
390
|
+
void osmpbf__node__free_unpacked
|
391
|
+
(OSMPBF__Node *message,
|
391
392
|
ProtobufCAllocator *allocator)
|
392
393
|
{
|
393
|
-
|
394
|
+
assert(message->base.descriptor == &osmpbf__node__descriptor);
|
394
395
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
395
396
|
}
|
396
|
-
void
|
397
|
-
(
|
397
|
+
void osmpbf__dense_nodes__init
|
398
|
+
(OSMPBF__DenseNodes *message)
|
398
399
|
{
|
399
|
-
static
|
400
|
+
static OSMPBF__DenseNodes init_value = OSMPBF__DENSE_NODES__INIT;
|
400
401
|
*message = init_value;
|
401
402
|
}
|
402
|
-
size_t
|
403
|
-
(const
|
403
|
+
size_t osmpbf__dense_nodes__get_packed_size
|
404
|
+
(const OSMPBF__DenseNodes *message)
|
404
405
|
{
|
405
|
-
|
406
|
+
assert(message->base.descriptor == &osmpbf__dense_nodes__descriptor);
|
406
407
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
407
408
|
}
|
408
|
-
size_t
|
409
|
-
(const
|
409
|
+
size_t osmpbf__dense_nodes__pack
|
410
|
+
(const OSMPBF__DenseNodes *message,
|
410
411
|
uint8_t *out)
|
411
412
|
{
|
412
|
-
|
413
|
+
assert(message->base.descriptor == &osmpbf__dense_nodes__descriptor);
|
413
414
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
414
415
|
}
|
415
|
-
size_t
|
416
|
-
(const
|
416
|
+
size_t osmpbf__dense_nodes__pack_to_buffer
|
417
|
+
(const OSMPBF__DenseNodes *message,
|
417
418
|
ProtobufCBuffer *buffer)
|
418
419
|
{
|
419
|
-
|
420
|
+
assert(message->base.descriptor == &osmpbf__dense_nodes__descriptor);
|
420
421
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
421
422
|
}
|
422
|
-
|
423
|
-
|
423
|
+
OSMPBF__DenseNodes *
|
424
|
+
osmpbf__dense_nodes__unpack
|
424
425
|
(ProtobufCAllocator *allocator,
|
425
426
|
size_t len,
|
426
427
|
const uint8_t *data)
|
427
428
|
{
|
428
|
-
return (
|
429
|
-
protobuf_c_message_unpack (&
|
429
|
+
return (OSMPBF__DenseNodes *)
|
430
|
+
protobuf_c_message_unpack (&osmpbf__dense_nodes__descriptor,
|
430
431
|
allocator, len, data);
|
431
432
|
}
|
432
|
-
void
|
433
|
-
(
|
433
|
+
void osmpbf__dense_nodes__free_unpacked
|
434
|
+
(OSMPBF__DenseNodes *message,
|
434
435
|
ProtobufCAllocator *allocator)
|
435
436
|
{
|
436
|
-
|
437
|
+
assert(message->base.descriptor == &osmpbf__dense_nodes__descriptor);
|
437
438
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
438
439
|
}
|
439
|
-
void
|
440
|
-
(
|
440
|
+
void osmpbf__way__init
|
441
|
+
(OSMPBF__Way *message)
|
441
442
|
{
|
442
|
-
static
|
443
|
+
static OSMPBF__Way init_value = OSMPBF__WAY__INIT;
|
443
444
|
*message = init_value;
|
444
445
|
}
|
445
|
-
size_t
|
446
|
-
(const
|
446
|
+
size_t osmpbf__way__get_packed_size
|
447
|
+
(const OSMPBF__Way *message)
|
447
448
|
{
|
448
|
-
|
449
|
+
assert(message->base.descriptor == &osmpbf__way__descriptor);
|
449
450
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
450
451
|
}
|
451
|
-
size_t
|
452
|
-
(const
|
452
|
+
size_t osmpbf__way__pack
|
453
|
+
(const OSMPBF__Way *message,
|
453
454
|
uint8_t *out)
|
454
455
|
{
|
455
|
-
|
456
|
+
assert(message->base.descriptor == &osmpbf__way__descriptor);
|
456
457
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
457
458
|
}
|
458
|
-
size_t
|
459
|
-
(const
|
459
|
+
size_t osmpbf__way__pack_to_buffer
|
460
|
+
(const OSMPBF__Way *message,
|
460
461
|
ProtobufCBuffer *buffer)
|
461
462
|
{
|
462
|
-
|
463
|
+
assert(message->base.descriptor == &osmpbf__way__descriptor);
|
463
464
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
464
465
|
}
|
465
|
-
|
466
|
-
|
466
|
+
OSMPBF__Way *
|
467
|
+
osmpbf__way__unpack
|
467
468
|
(ProtobufCAllocator *allocator,
|
468
469
|
size_t len,
|
469
470
|
const uint8_t *data)
|
470
471
|
{
|
471
|
-
return (
|
472
|
-
protobuf_c_message_unpack (&
|
472
|
+
return (OSMPBF__Way *)
|
473
|
+
protobuf_c_message_unpack (&osmpbf__way__descriptor,
|
473
474
|
allocator, len, data);
|
474
475
|
}
|
475
|
-
void
|
476
|
-
(
|
476
|
+
void osmpbf__way__free_unpacked
|
477
|
+
(OSMPBF__Way *message,
|
477
478
|
ProtobufCAllocator *allocator)
|
478
479
|
{
|
479
|
-
|
480
|
+
assert(message->base.descriptor == &osmpbf__way__descriptor);
|
480
481
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
481
482
|
}
|
482
|
-
void
|
483
|
-
(
|
483
|
+
void osmpbf__relation__init
|
484
|
+
(OSMPBF__Relation *message)
|
484
485
|
{
|
485
|
-
static
|
486
|
+
static OSMPBF__Relation init_value = OSMPBF__RELATION__INIT;
|
486
487
|
*message = init_value;
|
487
488
|
}
|
488
|
-
size_t
|
489
|
-
(const
|
489
|
+
size_t osmpbf__relation__get_packed_size
|
490
|
+
(const OSMPBF__Relation *message)
|
490
491
|
{
|
491
|
-
|
492
|
+
assert(message->base.descriptor == &osmpbf__relation__descriptor);
|
492
493
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
493
494
|
}
|
494
|
-
size_t
|
495
|
-
(const
|
495
|
+
size_t osmpbf__relation__pack
|
496
|
+
(const OSMPBF__Relation *message,
|
496
497
|
uint8_t *out)
|
497
498
|
{
|
498
|
-
|
499
|
+
assert(message->base.descriptor == &osmpbf__relation__descriptor);
|
499
500
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
500
501
|
}
|
501
|
-
size_t
|
502
|
-
(const
|
502
|
+
size_t osmpbf__relation__pack_to_buffer
|
503
|
+
(const OSMPBF__Relation *message,
|
503
504
|
ProtobufCBuffer *buffer)
|
504
505
|
{
|
505
|
-
|
506
|
+
assert(message->base.descriptor == &osmpbf__relation__descriptor);
|
506
507
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
507
508
|
}
|
508
|
-
|
509
|
-
|
509
|
+
OSMPBF__Relation *
|
510
|
+
osmpbf__relation__unpack
|
510
511
|
(ProtobufCAllocator *allocator,
|
511
512
|
size_t len,
|
512
513
|
const uint8_t *data)
|
513
514
|
{
|
514
|
-
return (
|
515
|
-
protobuf_c_message_unpack (&
|
515
|
+
return (OSMPBF__Relation *)
|
516
|
+
protobuf_c_message_unpack (&osmpbf__relation__descriptor,
|
516
517
|
allocator, len, data);
|
517
518
|
}
|
518
|
-
void
|
519
|
-
(
|
519
|
+
void osmpbf__relation__free_unpacked
|
520
|
+
(OSMPBF__Relation *message,
|
520
521
|
ProtobufCAllocator *allocator)
|
521
522
|
{
|
522
|
-
|
523
|
+
assert(message->base.descriptor == &osmpbf__relation__descriptor);
|
523
524
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
524
525
|
}
|
525
|
-
static const ProtobufCFieldDescriptor
|
526
|
+
static const ProtobufCFieldDescriptor osmpbf__header_block__field_descriptors[8] =
|
526
527
|
{
|
527
528
|
{
|
528
529
|
"bbox",
|
@@ -530,10 +531,10 @@ static const ProtobufCFieldDescriptor header_block__field_descriptors[8] =
|
|
530
531
|
PROTOBUF_C_LABEL_OPTIONAL,
|
531
532
|
PROTOBUF_C_TYPE_MESSAGE,
|
532
533
|
0, /* quantifier_offset */
|
533
|
-
|
534
|
-
&
|
534
|
+
offsetof(OSMPBF__HeaderBlock, bbox),
|
535
|
+
&osmpbf__header_bbox__descriptor,
|
535
536
|
NULL,
|
536
|
-
0,
|
537
|
+
0, /* flags */
|
537
538
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
538
539
|
},
|
539
540
|
{
|
@@ -541,11 +542,11 @@ static const ProtobufCFieldDescriptor header_block__field_descriptors[8] =
|
|
541
542
|
4,
|
542
543
|
PROTOBUF_C_LABEL_REPEATED,
|
543
544
|
PROTOBUF_C_TYPE_STRING,
|
544
|
-
|
545
|
-
|
545
|
+
offsetof(OSMPBF__HeaderBlock, n_required_features),
|
546
|
+
offsetof(OSMPBF__HeaderBlock, required_features),
|
546
547
|
NULL,
|
547
548
|
NULL,
|
548
|
-
0,
|
549
|
+
0, /* flags */
|
549
550
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
550
551
|
},
|
551
552
|
{
|
@@ -553,11 +554,11 @@ static const ProtobufCFieldDescriptor header_block__field_descriptors[8] =
|
|
553
554
|
5,
|
554
555
|
PROTOBUF_C_LABEL_REPEATED,
|
555
556
|
PROTOBUF_C_TYPE_STRING,
|
556
|
-
|
557
|
-
|
557
|
+
offsetof(OSMPBF__HeaderBlock, n_optional_features),
|
558
|
+
offsetof(OSMPBF__HeaderBlock, optional_features),
|
558
559
|
NULL,
|
559
560
|
NULL,
|
560
|
-
0,
|
561
|
+
0, /* flags */
|
561
562
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
562
563
|
},
|
563
564
|
{
|
@@ -566,10 +567,10 @@ static const ProtobufCFieldDescriptor header_block__field_descriptors[8] =
|
|
566
567
|
PROTOBUF_C_LABEL_OPTIONAL,
|
567
568
|
PROTOBUF_C_TYPE_STRING,
|
568
569
|
0, /* quantifier_offset */
|
569
|
-
|
570
|
+
offsetof(OSMPBF__HeaderBlock, writingprogram),
|
570
571
|
NULL,
|
571
572
|
NULL,
|
572
|
-
0,
|
573
|
+
0, /* flags */
|
573
574
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
574
575
|
},
|
575
576
|
{
|
@@ -578,10 +579,10 @@ static const ProtobufCFieldDescriptor header_block__field_descriptors[8] =
|
|
578
579
|
PROTOBUF_C_LABEL_OPTIONAL,
|
579
580
|
PROTOBUF_C_TYPE_STRING,
|
580
581
|
0, /* quantifier_offset */
|
581
|
-
|
582
|
+
offsetof(OSMPBF__HeaderBlock, source),
|
582
583
|
NULL,
|
583
584
|
NULL,
|
584
|
-
0,
|
585
|
+
0, /* flags */
|
585
586
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
586
587
|
},
|
587
588
|
{
|
@@ -589,11 +590,11 @@ static const ProtobufCFieldDescriptor header_block__field_descriptors[8] =
|
|
589
590
|
32,
|
590
591
|
PROTOBUF_C_LABEL_OPTIONAL,
|
591
592
|
PROTOBUF_C_TYPE_INT64,
|
592
|
-
|
593
|
-
|
593
|
+
offsetof(OSMPBF__HeaderBlock, has_osmosis_replication_timestamp),
|
594
|
+
offsetof(OSMPBF__HeaderBlock, osmosis_replication_timestamp),
|
594
595
|
NULL,
|
595
596
|
NULL,
|
596
|
-
0,
|
597
|
+
0, /* flags */
|
597
598
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
598
599
|
},
|
599
600
|
{
|
@@ -601,11 +602,11 @@ static const ProtobufCFieldDescriptor header_block__field_descriptors[8] =
|
|
601
602
|
33,
|
602
603
|
PROTOBUF_C_LABEL_OPTIONAL,
|
603
604
|
PROTOBUF_C_TYPE_INT64,
|
604
|
-
|
605
|
-
|
605
|
+
offsetof(OSMPBF__HeaderBlock, has_osmosis_replication_sequence_number),
|
606
|
+
offsetof(OSMPBF__HeaderBlock, osmosis_replication_sequence_number),
|
606
607
|
NULL,
|
607
608
|
NULL,
|
608
|
-
0,
|
609
|
+
0, /* flags */
|
609
610
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
610
611
|
},
|
611
612
|
{
|
@@ -614,14 +615,14 @@ static const ProtobufCFieldDescriptor header_block__field_descriptors[8] =
|
|
614
615
|
PROTOBUF_C_LABEL_OPTIONAL,
|
615
616
|
PROTOBUF_C_TYPE_STRING,
|
616
617
|
0, /* quantifier_offset */
|
617
|
-
|
618
|
+
offsetof(OSMPBF__HeaderBlock, osmosis_replication_base_url),
|
618
619
|
NULL,
|
619
620
|
NULL,
|
620
|
-
0,
|
621
|
+
0, /* flags */
|
621
622
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
622
623
|
},
|
623
624
|
};
|
624
|
-
static const unsigned
|
625
|
+
static const unsigned osmpbf__header_block__field_indices_by_name[] = {
|
625
626
|
0, /* field[0] = bbox */
|
626
627
|
2, /* field[2] = optional_features */
|
627
628
|
7, /* field[7] = osmosis_replication_base_url */
|
@@ -631,7 +632,7 @@ static const unsigned header_block__field_indices_by_name[] = {
|
|
631
632
|
4, /* field[4] = source */
|
632
633
|
3, /* field[3] = writingprogram */
|
633
634
|
};
|
634
|
-
static const ProtobufCIntRange
|
635
|
+
static const ProtobufCIntRange osmpbf__header_block__number_ranges[4 + 1] =
|
635
636
|
{
|
636
637
|
{ 1, 0 },
|
637
638
|
{ 4, 1 },
|
@@ -639,22 +640,22 @@ static const ProtobufCIntRange header_block__number_ranges[4 + 1] =
|
|
639
640
|
{ 32, 5 },
|
640
641
|
{ 0, 8 }
|
641
642
|
};
|
642
|
-
const ProtobufCMessageDescriptor
|
643
|
+
const ProtobufCMessageDescriptor osmpbf__header_block__descriptor =
|
643
644
|
{
|
644
|
-
|
645
|
+
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
646
|
+
"OSMPBF.HeaderBlock",
|
645
647
|
"HeaderBlock",
|
646
|
-
"
|
647
|
-
"
|
648
|
-
|
649
|
-
sizeof(HeaderBlock),
|
648
|
+
"OSMPBF__HeaderBlock",
|
649
|
+
"OSMPBF",
|
650
|
+
sizeof(OSMPBF__HeaderBlock),
|
650
651
|
8,
|
651
|
-
|
652
|
-
|
653
|
-
4,
|
654
|
-
(ProtobufCMessageInit)
|
652
|
+
osmpbf__header_block__field_descriptors,
|
653
|
+
osmpbf__header_block__field_indices_by_name,
|
654
|
+
4, osmpbf__header_block__number_ranges,
|
655
|
+
(ProtobufCMessageInit) osmpbf__header_block__init,
|
655
656
|
NULL,NULL,NULL /* reserved[123] */
|
656
657
|
};
|
657
|
-
static const ProtobufCFieldDescriptor
|
658
|
+
static const ProtobufCFieldDescriptor osmpbf__header_bbox__field_descriptors[4] =
|
658
659
|
{
|
659
660
|
{
|
660
661
|
"left",
|
@@ -662,10 +663,10 @@ static const ProtobufCFieldDescriptor header_bbox__field_descriptors[4] =
|
|
662
663
|
PROTOBUF_C_LABEL_REQUIRED,
|
663
664
|
PROTOBUF_C_TYPE_SINT64,
|
664
665
|
0, /* quantifier_offset */
|
665
|
-
|
666
|
+
offsetof(OSMPBF__HeaderBBox, left),
|
666
667
|
NULL,
|
667
668
|
NULL,
|
668
|
-
0,
|
669
|
+
0, /* flags */
|
669
670
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
670
671
|
},
|
671
672
|
{
|
@@ -674,10 +675,10 @@ static const ProtobufCFieldDescriptor header_bbox__field_descriptors[4] =
|
|
674
675
|
PROTOBUF_C_LABEL_REQUIRED,
|
675
676
|
PROTOBUF_C_TYPE_SINT64,
|
676
677
|
0, /* quantifier_offset */
|
677
|
-
|
678
|
+
offsetof(OSMPBF__HeaderBBox, right),
|
678
679
|
NULL,
|
679
680
|
NULL,
|
680
|
-
0,
|
681
|
+
0, /* flags */
|
681
682
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
682
683
|
},
|
683
684
|
{
|
@@ -686,10 +687,10 @@ static const ProtobufCFieldDescriptor header_bbox__field_descriptors[4] =
|
|
686
687
|
PROTOBUF_C_LABEL_REQUIRED,
|
687
688
|
PROTOBUF_C_TYPE_SINT64,
|
688
689
|
0, /* quantifier_offset */
|
689
|
-
|
690
|
+
offsetof(OSMPBF__HeaderBBox, top),
|
690
691
|
NULL,
|
691
692
|
NULL,
|
692
|
-
0,
|
693
|
+
0, /* flags */
|
693
694
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
694
695
|
},
|
695
696
|
{
|
@@ -698,44 +699,44 @@ static const ProtobufCFieldDescriptor header_bbox__field_descriptors[4] =
|
|
698
699
|
PROTOBUF_C_LABEL_REQUIRED,
|
699
700
|
PROTOBUF_C_TYPE_SINT64,
|
700
701
|
0, /* quantifier_offset */
|
701
|
-
|
702
|
+
offsetof(OSMPBF__HeaderBBox, bottom),
|
702
703
|
NULL,
|
703
704
|
NULL,
|
704
|
-
0,
|
705
|
+
0, /* flags */
|
705
706
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
706
707
|
},
|
707
708
|
};
|
708
|
-
static const unsigned
|
709
|
+
static const unsigned osmpbf__header_bbox__field_indices_by_name[] = {
|
709
710
|
3, /* field[3] = bottom */
|
710
711
|
0, /* field[0] = left */
|
711
712
|
1, /* field[1] = right */
|
712
713
|
2, /* field[2] = top */
|
713
714
|
};
|
714
|
-
static const ProtobufCIntRange
|
715
|
+
static const ProtobufCIntRange osmpbf__header_bbox__number_ranges[1 + 1] =
|
715
716
|
{
|
716
717
|
{ 1, 0 },
|
717
718
|
{ 0, 4 }
|
718
719
|
};
|
719
|
-
const ProtobufCMessageDescriptor
|
720
|
+
const ProtobufCMessageDescriptor osmpbf__header_bbox__descriptor =
|
720
721
|
{
|
721
|
-
|
722
|
-
"HeaderBBox",
|
722
|
+
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
723
|
+
"OSMPBF.HeaderBBox",
|
723
724
|
"HeaderBBox",
|
724
|
-
"
|
725
|
-
"",
|
726
|
-
sizeof(
|
725
|
+
"OSMPBF__HeaderBBox",
|
726
|
+
"OSMPBF",
|
727
|
+
sizeof(OSMPBF__HeaderBBox),
|
727
728
|
4,
|
728
|
-
|
729
|
-
|
730
|
-
1,
|
731
|
-
(ProtobufCMessageInit)
|
729
|
+
osmpbf__header_bbox__field_descriptors,
|
730
|
+
osmpbf__header_bbox__field_indices_by_name,
|
731
|
+
1, osmpbf__header_bbox__number_ranges,
|
732
|
+
(ProtobufCMessageInit) osmpbf__header_bbox__init,
|
732
733
|
NULL,NULL,NULL /* reserved[123] */
|
733
734
|
};
|
734
|
-
static const int32_t
|
735
|
-
static const int64_t
|
736
|
-
static const int64_t
|
737
|
-
static const int32_t
|
738
|
-
static const ProtobufCFieldDescriptor
|
735
|
+
static const int32_t osmpbf__primitive_block__granularity__default_value = 100;
|
736
|
+
static const int64_t osmpbf__primitive_block__lat_offset__default_value = 0ll;
|
737
|
+
static const int64_t osmpbf__primitive_block__lon_offset__default_value = 0ll;
|
738
|
+
static const int32_t osmpbf__primitive_block__date_granularity__default_value = 1000;
|
739
|
+
static const ProtobufCFieldDescriptor osmpbf__primitive_block__field_descriptors[6] =
|
739
740
|
{
|
740
741
|
{
|
741
742
|
"stringtable",
|
@@ -743,10 +744,10 @@ static const ProtobufCFieldDescriptor primitive_block__field_descriptors[6] =
|
|
743
744
|
PROTOBUF_C_LABEL_REQUIRED,
|
744
745
|
PROTOBUF_C_TYPE_MESSAGE,
|
745
746
|
0, /* quantifier_offset */
|
746
|
-
|
747
|
-
&
|
747
|
+
offsetof(OSMPBF__PrimitiveBlock, stringtable),
|
748
|
+
&osmpbf__string_table__descriptor,
|
748
749
|
NULL,
|
749
|
-
0,
|
750
|
+
0, /* flags */
|
750
751
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
751
752
|
},
|
752
753
|
{
|
@@ -754,11 +755,11 @@ static const ProtobufCFieldDescriptor primitive_block__field_descriptors[6] =
|
|
754
755
|
2,
|
755
756
|
PROTOBUF_C_LABEL_REPEATED,
|
756
757
|
PROTOBUF_C_TYPE_MESSAGE,
|
757
|
-
|
758
|
-
|
759
|
-
&
|
758
|
+
offsetof(OSMPBF__PrimitiveBlock, n_primitivegroup),
|
759
|
+
offsetof(OSMPBF__PrimitiveBlock, primitivegroup),
|
760
|
+
&osmpbf__primitive_group__descriptor,
|
760
761
|
NULL,
|
761
|
-
0,
|
762
|
+
0, /* flags */
|
762
763
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
763
764
|
},
|
764
765
|
{
|
@@ -766,11 +767,11 @@ static const ProtobufCFieldDescriptor primitive_block__field_descriptors[6] =
|
|
766
767
|
17,
|
767
768
|
PROTOBUF_C_LABEL_OPTIONAL,
|
768
769
|
PROTOBUF_C_TYPE_INT32,
|
769
|
-
|
770
|
-
|
770
|
+
offsetof(OSMPBF__PrimitiveBlock, has_granularity),
|
771
|
+
offsetof(OSMPBF__PrimitiveBlock, granularity),
|
771
772
|
NULL,
|
772
|
-
&
|
773
|
-
0,
|
773
|
+
&osmpbf__primitive_block__granularity__default_value,
|
774
|
+
0, /* flags */
|
774
775
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
775
776
|
},
|
776
777
|
{
|
@@ -778,11 +779,11 @@ static const ProtobufCFieldDescriptor primitive_block__field_descriptors[6] =
|
|
778
779
|
18,
|
779
780
|
PROTOBUF_C_LABEL_OPTIONAL,
|
780
781
|
PROTOBUF_C_TYPE_INT32,
|
781
|
-
|
782
|
-
|
782
|
+
offsetof(OSMPBF__PrimitiveBlock, has_date_granularity),
|
783
|
+
offsetof(OSMPBF__PrimitiveBlock, date_granularity),
|
783
784
|
NULL,
|
784
|
-
&
|
785
|
-
0,
|
785
|
+
&osmpbf__primitive_block__date_granularity__default_value,
|
786
|
+
0, /* flags */
|
786
787
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
787
788
|
},
|
788
789
|
{
|
@@ -790,11 +791,11 @@ static const ProtobufCFieldDescriptor primitive_block__field_descriptors[6] =
|
|
790
791
|
19,
|
791
792
|
PROTOBUF_C_LABEL_OPTIONAL,
|
792
793
|
PROTOBUF_C_TYPE_INT64,
|
793
|
-
|
794
|
-
|
794
|
+
offsetof(OSMPBF__PrimitiveBlock, has_lat_offset),
|
795
|
+
offsetof(OSMPBF__PrimitiveBlock, lat_offset),
|
795
796
|
NULL,
|
796
|
-
&
|
797
|
-
0,
|
797
|
+
&osmpbf__primitive_block__lat_offset__default_value,
|
798
|
+
0, /* flags */
|
798
799
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
799
800
|
},
|
800
801
|
{
|
@@ -802,15 +803,15 @@ static const ProtobufCFieldDescriptor primitive_block__field_descriptors[6] =
|
|
802
803
|
20,
|
803
804
|
PROTOBUF_C_LABEL_OPTIONAL,
|
804
805
|
PROTOBUF_C_TYPE_INT64,
|
805
|
-
|
806
|
-
|
806
|
+
offsetof(OSMPBF__PrimitiveBlock, has_lon_offset),
|
807
|
+
offsetof(OSMPBF__PrimitiveBlock, lon_offset),
|
807
808
|
NULL,
|
808
|
-
&
|
809
|
-
0,
|
809
|
+
&osmpbf__primitive_block__lon_offset__default_value,
|
810
|
+
0, /* flags */
|
810
811
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
811
812
|
},
|
812
813
|
};
|
813
|
-
static const unsigned
|
814
|
+
static const unsigned osmpbf__primitive_block__field_indices_by_name[] = {
|
814
815
|
3, /* field[3] = date_granularity */
|
815
816
|
2, /* field[2] = granularity */
|
816
817
|
4, /* field[4] = lat_offset */
|
@@ -818,39 +819,39 @@ static const unsigned primitive_block__field_indices_by_name[] = {
|
|
818
819
|
1, /* field[1] = primitivegroup */
|
819
820
|
0, /* field[0] = stringtable */
|
820
821
|
};
|
821
|
-
static const ProtobufCIntRange
|
822
|
+
static const ProtobufCIntRange osmpbf__primitive_block__number_ranges[2 + 1] =
|
822
823
|
{
|
823
824
|
{ 1, 0 },
|
824
825
|
{ 17, 2 },
|
825
826
|
{ 0, 6 }
|
826
827
|
};
|
827
|
-
const ProtobufCMessageDescriptor
|
828
|
+
const ProtobufCMessageDescriptor osmpbf__primitive_block__descriptor =
|
828
829
|
{
|
829
|
-
|
830
|
-
"PrimitiveBlock",
|
831
|
-
"PrimitiveBlock",
|
830
|
+
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
831
|
+
"OSMPBF.PrimitiveBlock",
|
832
832
|
"PrimitiveBlock",
|
833
|
-
"",
|
834
|
-
|
833
|
+
"OSMPBF__PrimitiveBlock",
|
834
|
+
"OSMPBF",
|
835
|
+
sizeof(OSMPBF__PrimitiveBlock),
|
835
836
|
6,
|
836
|
-
|
837
|
-
|
838
|
-
2,
|
839
|
-
(ProtobufCMessageInit)
|
837
|
+
osmpbf__primitive_block__field_descriptors,
|
838
|
+
osmpbf__primitive_block__field_indices_by_name,
|
839
|
+
2, osmpbf__primitive_block__number_ranges,
|
840
|
+
(ProtobufCMessageInit) osmpbf__primitive_block__init,
|
840
841
|
NULL,NULL,NULL /* reserved[123] */
|
841
842
|
};
|
842
|
-
static const ProtobufCFieldDescriptor
|
843
|
+
static const ProtobufCFieldDescriptor osmpbf__primitive_group__field_descriptors[5] =
|
843
844
|
{
|
844
845
|
{
|
845
846
|
"nodes",
|
846
847
|
1,
|
847
848
|
PROTOBUF_C_LABEL_REPEATED,
|
848
849
|
PROTOBUF_C_TYPE_MESSAGE,
|
849
|
-
|
850
|
-
|
851
|
-
&
|
850
|
+
offsetof(OSMPBF__PrimitiveGroup, n_nodes),
|
851
|
+
offsetof(OSMPBF__PrimitiveGroup, nodes),
|
852
|
+
&osmpbf__node__descriptor,
|
852
853
|
NULL,
|
853
|
-
0,
|
854
|
+
0, /* flags */
|
854
855
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
855
856
|
},
|
856
857
|
{
|
@@ -859,10 +860,10 @@ static const ProtobufCFieldDescriptor primitive_group__field_descriptors[5] =
|
|
859
860
|
PROTOBUF_C_LABEL_OPTIONAL,
|
860
861
|
PROTOBUF_C_TYPE_MESSAGE,
|
861
862
|
0, /* quantifier_offset */
|
862
|
-
|
863
|
-
&
|
863
|
+
offsetof(OSMPBF__PrimitiveGroup, dense),
|
864
|
+
&osmpbf__dense_nodes__descriptor,
|
864
865
|
NULL,
|
865
|
-
0,
|
866
|
+
0, /* flags */
|
866
867
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
867
868
|
},
|
868
869
|
{
|
@@ -870,11 +871,11 @@ static const ProtobufCFieldDescriptor primitive_group__field_descriptors[5] =
|
|
870
871
|
3,
|
871
872
|
PROTOBUF_C_LABEL_REPEATED,
|
872
873
|
PROTOBUF_C_TYPE_MESSAGE,
|
873
|
-
|
874
|
-
|
875
|
-
&
|
874
|
+
offsetof(OSMPBF__PrimitiveGroup, n_ways),
|
875
|
+
offsetof(OSMPBF__PrimitiveGroup, ways),
|
876
|
+
&osmpbf__way__descriptor,
|
876
877
|
NULL,
|
877
|
-
0,
|
878
|
+
0, /* flags */
|
878
879
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
879
880
|
},
|
880
881
|
{
|
@@ -882,11 +883,11 @@ static const ProtobufCFieldDescriptor primitive_group__field_descriptors[5] =
|
|
882
883
|
4,
|
883
884
|
PROTOBUF_C_LABEL_REPEATED,
|
884
885
|
PROTOBUF_C_TYPE_MESSAGE,
|
885
|
-
|
886
|
-
|
887
|
-
&
|
886
|
+
offsetof(OSMPBF__PrimitiveGroup, n_relations),
|
887
|
+
offsetof(OSMPBF__PrimitiveGroup, relations),
|
888
|
+
&osmpbf__relation__descriptor,
|
888
889
|
NULL,
|
889
|
-
0,
|
890
|
+
0, /* flags */
|
890
891
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
891
892
|
},
|
892
893
|
{
|
@@ -894,92 +895,92 @@ static const ProtobufCFieldDescriptor primitive_group__field_descriptors[5] =
|
|
894
895
|
5,
|
895
896
|
PROTOBUF_C_LABEL_REPEATED,
|
896
897
|
PROTOBUF_C_TYPE_MESSAGE,
|
897
|
-
|
898
|
-
|
899
|
-
&
|
898
|
+
offsetof(OSMPBF__PrimitiveGroup, n_changesets),
|
899
|
+
offsetof(OSMPBF__PrimitiveGroup, changesets),
|
900
|
+
&osmpbf__change_set__descriptor,
|
900
901
|
NULL,
|
901
|
-
0,
|
902
|
+
0, /* flags */
|
902
903
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
903
904
|
},
|
904
905
|
};
|
905
|
-
static const unsigned
|
906
|
+
static const unsigned osmpbf__primitive_group__field_indices_by_name[] = {
|
906
907
|
4, /* field[4] = changesets */
|
907
908
|
1, /* field[1] = dense */
|
908
909
|
0, /* field[0] = nodes */
|
909
910
|
3, /* field[3] = relations */
|
910
911
|
2, /* field[2] = ways */
|
911
912
|
};
|
912
|
-
static const ProtobufCIntRange
|
913
|
+
static const ProtobufCIntRange osmpbf__primitive_group__number_ranges[1 + 1] =
|
913
914
|
{
|
914
915
|
{ 1, 0 },
|
915
916
|
{ 0, 5 }
|
916
917
|
};
|
917
|
-
const ProtobufCMessageDescriptor
|
918
|
+
const ProtobufCMessageDescriptor osmpbf__primitive_group__descriptor =
|
918
919
|
{
|
919
|
-
|
920
|
+
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
921
|
+
"OSMPBF.PrimitiveGroup",
|
920
922
|
"PrimitiveGroup",
|
921
|
-
"
|
922
|
-
"
|
923
|
-
|
924
|
-
sizeof(PrimitiveGroup),
|
923
|
+
"OSMPBF__PrimitiveGroup",
|
924
|
+
"OSMPBF",
|
925
|
+
sizeof(OSMPBF__PrimitiveGroup),
|
925
926
|
5,
|
926
|
-
|
927
|
-
|
928
|
-
1,
|
929
|
-
(ProtobufCMessageInit)
|
927
|
+
osmpbf__primitive_group__field_descriptors,
|
928
|
+
osmpbf__primitive_group__field_indices_by_name,
|
929
|
+
1, osmpbf__primitive_group__number_ranges,
|
930
|
+
(ProtobufCMessageInit) osmpbf__primitive_group__init,
|
930
931
|
NULL,NULL,NULL /* reserved[123] */
|
931
932
|
};
|
932
|
-
static const ProtobufCFieldDescriptor
|
933
|
+
static const ProtobufCFieldDescriptor osmpbf__string_table__field_descriptors[1] =
|
933
934
|
{
|
934
935
|
{
|
935
936
|
"s",
|
936
937
|
1,
|
937
938
|
PROTOBUF_C_LABEL_REPEATED,
|
938
939
|
PROTOBUF_C_TYPE_BYTES,
|
939
|
-
|
940
|
-
|
940
|
+
offsetof(OSMPBF__StringTable, n_s),
|
941
|
+
offsetof(OSMPBF__StringTable, s),
|
941
942
|
NULL,
|
942
943
|
NULL,
|
943
|
-
0,
|
944
|
+
0, /* flags */
|
944
945
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
945
946
|
},
|
946
947
|
};
|
947
|
-
static const unsigned
|
948
|
+
static const unsigned osmpbf__string_table__field_indices_by_name[] = {
|
948
949
|
0, /* field[0] = s */
|
949
950
|
};
|
950
|
-
static const ProtobufCIntRange
|
951
|
+
static const ProtobufCIntRange osmpbf__string_table__number_ranges[1 + 1] =
|
951
952
|
{
|
952
953
|
{ 1, 0 },
|
953
954
|
{ 0, 1 }
|
954
955
|
};
|
955
|
-
const ProtobufCMessageDescriptor
|
956
|
+
const ProtobufCMessageDescriptor osmpbf__string_table__descriptor =
|
956
957
|
{
|
957
|
-
|
958
|
-
"StringTable",
|
958
|
+
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
959
|
+
"OSMPBF.StringTable",
|
959
960
|
"StringTable",
|
960
|
-
"
|
961
|
-
"",
|
962
|
-
sizeof(
|
961
|
+
"OSMPBF__StringTable",
|
962
|
+
"OSMPBF",
|
963
|
+
sizeof(OSMPBF__StringTable),
|
963
964
|
1,
|
964
|
-
|
965
|
-
|
966
|
-
1,
|
967
|
-
(ProtobufCMessageInit)
|
965
|
+
osmpbf__string_table__field_descriptors,
|
966
|
+
osmpbf__string_table__field_indices_by_name,
|
967
|
+
1, osmpbf__string_table__number_ranges,
|
968
|
+
(ProtobufCMessageInit) osmpbf__string_table__init,
|
968
969
|
NULL,NULL,NULL /* reserved[123] */
|
969
970
|
};
|
970
|
-
static const int32_t
|
971
|
-
static const ProtobufCFieldDescriptor
|
971
|
+
static const int32_t osmpbf__info__version__default_value = -1;
|
972
|
+
static const ProtobufCFieldDescriptor osmpbf__info__field_descriptors[6] =
|
972
973
|
{
|
973
974
|
{
|
974
975
|
"version",
|
975
976
|
1,
|
976
977
|
PROTOBUF_C_LABEL_OPTIONAL,
|
977
978
|
PROTOBUF_C_TYPE_INT32,
|
978
|
-
|
979
|
-
|
979
|
+
offsetof(OSMPBF__Info, has_version),
|
980
|
+
offsetof(OSMPBF__Info, version),
|
980
981
|
NULL,
|
981
|
-
&
|
982
|
-
0,
|
982
|
+
&osmpbf__info__version__default_value,
|
983
|
+
0, /* flags */
|
983
984
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
984
985
|
},
|
985
986
|
{
|
@@ -987,11 +988,11 @@ static const ProtobufCFieldDescriptor info__field_descriptors[6] =
|
|
987
988
|
2,
|
988
989
|
PROTOBUF_C_LABEL_OPTIONAL,
|
989
990
|
PROTOBUF_C_TYPE_INT64,
|
990
|
-
|
991
|
-
|
991
|
+
offsetof(OSMPBF__Info, has_timestamp),
|
992
|
+
offsetof(OSMPBF__Info, timestamp),
|
992
993
|
NULL,
|
993
994
|
NULL,
|
994
|
-
0,
|
995
|
+
0, /* flags */
|
995
996
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
996
997
|
},
|
997
998
|
{
|
@@ -999,11 +1000,11 @@ static const ProtobufCFieldDescriptor info__field_descriptors[6] =
|
|
999
1000
|
3,
|
1000
1001
|
PROTOBUF_C_LABEL_OPTIONAL,
|
1001
1002
|
PROTOBUF_C_TYPE_INT64,
|
1002
|
-
|
1003
|
-
|
1003
|
+
offsetof(OSMPBF__Info, has_changeset),
|
1004
|
+
offsetof(OSMPBF__Info, changeset),
|
1004
1005
|
NULL,
|
1005
1006
|
NULL,
|
1006
|
-
0,
|
1007
|
+
0, /* flags */
|
1007
1008
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
1008
1009
|
},
|
1009
1010
|
{
|
@@ -1011,11 +1012,11 @@ static const ProtobufCFieldDescriptor info__field_descriptors[6] =
|
|
1011
1012
|
4,
|
1012
1013
|
PROTOBUF_C_LABEL_OPTIONAL,
|
1013
1014
|
PROTOBUF_C_TYPE_INT32,
|
1014
|
-
|
1015
|
-
|
1015
|
+
offsetof(OSMPBF__Info, has_uid),
|
1016
|
+
offsetof(OSMPBF__Info, uid),
|
1016
1017
|
NULL,
|
1017
1018
|
NULL,
|
1018
|
-
0,
|
1019
|
+
0, /* flags */
|
1019
1020
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
1020
1021
|
},
|
1021
1022
|
{
|
@@ -1023,11 +1024,11 @@ static const ProtobufCFieldDescriptor info__field_descriptors[6] =
|
|
1023
1024
|
5,
|
1024
1025
|
PROTOBUF_C_LABEL_OPTIONAL,
|
1025
1026
|
PROTOBUF_C_TYPE_UINT32,
|
1026
|
-
|
1027
|
-
|
1027
|
+
offsetof(OSMPBF__Info, has_user_sid),
|
1028
|
+
offsetof(OSMPBF__Info, user_sid),
|
1028
1029
|
NULL,
|
1029
1030
|
NULL,
|
1030
|
-
0,
|
1031
|
+
0, /* flags */
|
1031
1032
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
1032
1033
|
},
|
1033
1034
|
{
|
@@ -1035,15 +1036,15 @@ static const ProtobufCFieldDescriptor info__field_descriptors[6] =
|
|
1035
1036
|
6,
|
1036
1037
|
PROTOBUF_C_LABEL_OPTIONAL,
|
1037
1038
|
PROTOBUF_C_TYPE_BOOL,
|
1038
|
-
|
1039
|
-
|
1039
|
+
offsetof(OSMPBF__Info, has_visible),
|
1040
|
+
offsetof(OSMPBF__Info, visible),
|
1040
1041
|
NULL,
|
1041
1042
|
NULL,
|
1042
|
-
0,
|
1043
|
+
0, /* flags */
|
1043
1044
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
1044
1045
|
},
|
1045
1046
|
};
|
1046
|
-
static const unsigned
|
1047
|
+
static const unsigned osmpbf__info__field_indices_by_name[] = {
|
1047
1048
|
2, /* field[2] = changeset */
|
1048
1049
|
1, /* field[1] = timestamp */
|
1049
1050
|
3, /* field[3] = uid */
|
@@ -1051,38 +1052,38 @@ static const unsigned info__field_indices_by_name[] = {
|
|
1051
1052
|
0, /* field[0] = version */
|
1052
1053
|
5, /* field[5] = visible */
|
1053
1054
|
};
|
1054
|
-
static const ProtobufCIntRange
|
1055
|
+
static const ProtobufCIntRange osmpbf__info__number_ranges[1 + 1] =
|
1055
1056
|
{
|
1056
1057
|
{ 1, 0 },
|
1057
1058
|
{ 0, 6 }
|
1058
1059
|
};
|
1059
|
-
const ProtobufCMessageDescriptor
|
1060
|
+
const ProtobufCMessageDescriptor osmpbf__info__descriptor =
|
1060
1061
|
{
|
1061
|
-
|
1062
|
-
"Info",
|
1063
|
-
"Info",
|
1062
|
+
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
1063
|
+
"OSMPBF.Info",
|
1064
1064
|
"Info",
|
1065
|
-
"",
|
1066
|
-
|
1065
|
+
"OSMPBF__Info",
|
1066
|
+
"OSMPBF",
|
1067
|
+
sizeof(OSMPBF__Info),
|
1067
1068
|
6,
|
1068
|
-
|
1069
|
-
|
1070
|
-
1,
|
1071
|
-
(ProtobufCMessageInit)
|
1069
|
+
osmpbf__info__field_descriptors,
|
1070
|
+
osmpbf__info__field_indices_by_name,
|
1071
|
+
1, osmpbf__info__number_ranges,
|
1072
|
+
(ProtobufCMessageInit) osmpbf__info__init,
|
1072
1073
|
NULL,NULL,NULL /* reserved[123] */
|
1073
1074
|
};
|
1074
|
-
static const ProtobufCFieldDescriptor
|
1075
|
+
static const ProtobufCFieldDescriptor osmpbf__dense_info__field_descriptors[6] =
|
1075
1076
|
{
|
1076
1077
|
{
|
1077
1078
|
"version",
|
1078
1079
|
1,
|
1079
1080
|
PROTOBUF_C_LABEL_REPEATED,
|
1080
1081
|
PROTOBUF_C_TYPE_INT32,
|
1081
|
-
|
1082
|
-
|
1082
|
+
offsetof(OSMPBF__DenseInfo, n_version),
|
1083
|
+
offsetof(OSMPBF__DenseInfo, version),
|
1083
1084
|
NULL,
|
1084
1085
|
NULL,
|
1085
|
-
|
1086
|
+
0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */
|
1086
1087
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
1087
1088
|
},
|
1088
1089
|
{
|
@@ -1090,11 +1091,11 @@ static const ProtobufCFieldDescriptor dense_info__field_descriptors[6] =
|
|
1090
1091
|
2,
|
1091
1092
|
PROTOBUF_C_LABEL_REPEATED,
|
1092
1093
|
PROTOBUF_C_TYPE_SINT64,
|
1093
|
-
|
1094
|
-
|
1094
|
+
offsetof(OSMPBF__DenseInfo, n_timestamp),
|
1095
|
+
offsetof(OSMPBF__DenseInfo, timestamp),
|
1095
1096
|
NULL,
|
1096
1097
|
NULL,
|
1097
|
-
|
1098
|
+
0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */
|
1098
1099
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
1099
1100
|
},
|
1100
1101
|
{
|
@@ -1102,11 +1103,11 @@ static const ProtobufCFieldDescriptor dense_info__field_descriptors[6] =
|
|
1102
1103
|
3,
|
1103
1104
|
PROTOBUF_C_LABEL_REPEATED,
|
1104
1105
|
PROTOBUF_C_TYPE_SINT64,
|
1105
|
-
|
1106
|
-
|
1106
|
+
offsetof(OSMPBF__DenseInfo, n_changeset),
|
1107
|
+
offsetof(OSMPBF__DenseInfo, changeset),
|
1107
1108
|
NULL,
|
1108
1109
|
NULL,
|
1109
|
-
|
1110
|
+
0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */
|
1110
1111
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
1111
1112
|
},
|
1112
1113
|
{
|
@@ -1114,11 +1115,11 @@ static const ProtobufCFieldDescriptor dense_info__field_descriptors[6] =
|
|
1114
1115
|
4,
|
1115
1116
|
PROTOBUF_C_LABEL_REPEATED,
|
1116
1117
|
PROTOBUF_C_TYPE_SINT32,
|
1117
|
-
|
1118
|
-
|
1118
|
+
offsetof(OSMPBF__DenseInfo, n_uid),
|
1119
|
+
offsetof(OSMPBF__DenseInfo, uid),
|
1119
1120
|
NULL,
|
1120
1121
|
NULL,
|
1121
|
-
|
1122
|
+
0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */
|
1122
1123
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
1123
1124
|
},
|
1124
1125
|
{
|
@@ -1126,11 +1127,11 @@ static const ProtobufCFieldDescriptor dense_info__field_descriptors[6] =
|
|
1126
1127
|
5,
|
1127
1128
|
PROTOBUF_C_LABEL_REPEATED,
|
1128
1129
|
PROTOBUF_C_TYPE_SINT32,
|
1129
|
-
|
1130
|
-
|
1130
|
+
offsetof(OSMPBF__DenseInfo, n_user_sid),
|
1131
|
+
offsetof(OSMPBF__DenseInfo, user_sid),
|
1131
1132
|
NULL,
|
1132
1133
|
NULL,
|
1133
|
-
|
1134
|
+
0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */
|
1134
1135
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
1135
1136
|
},
|
1136
1137
|
{
|
@@ -1138,15 +1139,15 @@ static const ProtobufCFieldDescriptor dense_info__field_descriptors[6] =
|
|
1138
1139
|
6,
|
1139
1140
|
PROTOBUF_C_LABEL_REPEATED,
|
1140
1141
|
PROTOBUF_C_TYPE_BOOL,
|
1141
|
-
|
1142
|
-
|
1142
|
+
offsetof(OSMPBF__DenseInfo, n_visible),
|
1143
|
+
offsetof(OSMPBF__DenseInfo, visible),
|
1143
1144
|
NULL,
|
1144
1145
|
NULL,
|
1145
|
-
|
1146
|
+
0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */
|
1146
1147
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
1147
1148
|
},
|
1148
1149
|
};
|
1149
|
-
static const unsigned
|
1150
|
+
static const unsigned osmpbf__dense_info__field_indices_by_name[] = {
|
1150
1151
|
2, /* field[2] = changeset */
|
1151
1152
|
1, /* field[1] = timestamp */
|
1152
1153
|
3, /* field[3] = uid */
|
@@ -1154,27 +1155,27 @@ static const unsigned dense_info__field_indices_by_name[] = {
|
|
1154
1155
|
0, /* field[0] = version */
|
1155
1156
|
5, /* field[5] = visible */
|
1156
1157
|
};
|
1157
|
-
static const ProtobufCIntRange
|
1158
|
+
static const ProtobufCIntRange osmpbf__dense_info__number_ranges[1 + 1] =
|
1158
1159
|
{
|
1159
1160
|
{ 1, 0 },
|
1160
1161
|
{ 0, 6 }
|
1161
1162
|
};
|
1162
|
-
const ProtobufCMessageDescriptor
|
1163
|
+
const ProtobufCMessageDescriptor osmpbf__dense_info__descriptor =
|
1163
1164
|
{
|
1164
|
-
|
1165
|
+
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
1166
|
+
"OSMPBF.DenseInfo",
|
1165
1167
|
"DenseInfo",
|
1166
|
-
"
|
1167
|
-
"
|
1168
|
-
|
1169
|
-
sizeof(DenseInfo),
|
1168
|
+
"OSMPBF__DenseInfo",
|
1169
|
+
"OSMPBF",
|
1170
|
+
sizeof(OSMPBF__DenseInfo),
|
1170
1171
|
6,
|
1171
|
-
|
1172
|
-
|
1173
|
-
1,
|
1174
|
-
(ProtobufCMessageInit)
|
1172
|
+
osmpbf__dense_info__field_descriptors,
|
1173
|
+
osmpbf__dense_info__field_indices_by_name,
|
1174
|
+
1, osmpbf__dense_info__number_ranges,
|
1175
|
+
(ProtobufCMessageInit) osmpbf__dense_info__init,
|
1175
1176
|
NULL,NULL,NULL /* reserved[123] */
|
1176
1177
|
};
|
1177
|
-
static const ProtobufCFieldDescriptor
|
1178
|
+
static const ProtobufCFieldDescriptor osmpbf__change_set__field_descriptors[1] =
|
1178
1179
|
{
|
1179
1180
|
{
|
1180
1181
|
"id",
|
@@ -1182,37 +1183,37 @@ static const ProtobufCFieldDescriptor change_set__field_descriptors[1] =
|
|
1182
1183
|
PROTOBUF_C_LABEL_REQUIRED,
|
1183
1184
|
PROTOBUF_C_TYPE_INT64,
|
1184
1185
|
0, /* quantifier_offset */
|
1185
|
-
|
1186
|
+
offsetof(OSMPBF__ChangeSet, id),
|
1186
1187
|
NULL,
|
1187
1188
|
NULL,
|
1188
|
-
0,
|
1189
|
+
0, /* flags */
|
1189
1190
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
1190
1191
|
},
|
1191
1192
|
};
|
1192
|
-
static const unsigned
|
1193
|
+
static const unsigned osmpbf__change_set__field_indices_by_name[] = {
|
1193
1194
|
0, /* field[0] = id */
|
1194
1195
|
};
|
1195
|
-
static const ProtobufCIntRange
|
1196
|
+
static const ProtobufCIntRange osmpbf__change_set__number_ranges[1 + 1] =
|
1196
1197
|
{
|
1197
1198
|
{ 1, 0 },
|
1198
1199
|
{ 0, 1 }
|
1199
1200
|
};
|
1200
|
-
const ProtobufCMessageDescriptor
|
1201
|
+
const ProtobufCMessageDescriptor osmpbf__change_set__descriptor =
|
1201
1202
|
{
|
1202
|
-
|
1203
|
-
"ChangeSet",
|
1203
|
+
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
1204
|
+
"OSMPBF.ChangeSet",
|
1204
1205
|
"ChangeSet",
|
1205
|
-
"
|
1206
|
-
"",
|
1207
|
-
sizeof(
|
1206
|
+
"OSMPBF__ChangeSet",
|
1207
|
+
"OSMPBF",
|
1208
|
+
sizeof(OSMPBF__ChangeSet),
|
1208
1209
|
1,
|
1209
|
-
|
1210
|
-
|
1211
|
-
1,
|
1212
|
-
(ProtobufCMessageInit)
|
1210
|
+
osmpbf__change_set__field_descriptors,
|
1211
|
+
osmpbf__change_set__field_indices_by_name,
|
1212
|
+
1, osmpbf__change_set__number_ranges,
|
1213
|
+
(ProtobufCMessageInit) osmpbf__change_set__init,
|
1213
1214
|
NULL,NULL,NULL /* reserved[123] */
|
1214
1215
|
};
|
1215
|
-
static const ProtobufCFieldDescriptor
|
1216
|
+
static const ProtobufCFieldDescriptor osmpbf__node__field_descriptors[6] =
|
1216
1217
|
{
|
1217
1218
|
{
|
1218
1219
|
"id",
|
@@ -1220,10 +1221,10 @@ static const ProtobufCFieldDescriptor node__field_descriptors[6] =
|
|
1220
1221
|
PROTOBUF_C_LABEL_REQUIRED,
|
1221
1222
|
PROTOBUF_C_TYPE_SINT64,
|
1222
1223
|
0, /* quantifier_offset */
|
1223
|
-
|
1224
|
+
offsetof(OSMPBF__Node, id),
|
1224
1225
|
NULL,
|
1225
1226
|
NULL,
|
1226
|
-
0,
|
1227
|
+
0, /* flags */
|
1227
1228
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
1228
1229
|
},
|
1229
1230
|
{
|
@@ -1231,11 +1232,11 @@ static const ProtobufCFieldDescriptor node__field_descriptors[6] =
|
|
1231
1232
|
2,
|
1232
1233
|
PROTOBUF_C_LABEL_REPEATED,
|
1233
1234
|
PROTOBUF_C_TYPE_UINT32,
|
1234
|
-
|
1235
|
-
|
1235
|
+
offsetof(OSMPBF__Node, n_keys),
|
1236
|
+
offsetof(OSMPBF__Node, keys),
|
1236
1237
|
NULL,
|
1237
1238
|
NULL,
|
1238
|
-
|
1239
|
+
0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */
|
1239
1240
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
1240
1241
|
},
|
1241
1242
|
{
|
@@ -1243,11 +1244,11 @@ static const ProtobufCFieldDescriptor node__field_descriptors[6] =
|
|
1243
1244
|
3,
|
1244
1245
|
PROTOBUF_C_LABEL_REPEATED,
|
1245
1246
|
PROTOBUF_C_TYPE_UINT32,
|
1246
|
-
|
1247
|
-
|
1247
|
+
offsetof(OSMPBF__Node, n_vals),
|
1248
|
+
offsetof(OSMPBF__Node, vals),
|
1248
1249
|
NULL,
|
1249
1250
|
NULL,
|
1250
|
-
|
1251
|
+
0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */
|
1251
1252
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
1252
1253
|
},
|
1253
1254
|
{
|
@@ -1256,10 +1257,10 @@ static const ProtobufCFieldDescriptor node__field_descriptors[6] =
|
|
1256
1257
|
PROTOBUF_C_LABEL_OPTIONAL,
|
1257
1258
|
PROTOBUF_C_TYPE_MESSAGE,
|
1258
1259
|
0, /* quantifier_offset */
|
1259
|
-
|
1260
|
-
&
|
1260
|
+
offsetof(OSMPBF__Node, info),
|
1261
|
+
&osmpbf__info__descriptor,
|
1261
1262
|
NULL,
|
1262
|
-
0,
|
1263
|
+
0, /* flags */
|
1263
1264
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
1264
1265
|
},
|
1265
1266
|
{
|
@@ -1268,10 +1269,10 @@ static const ProtobufCFieldDescriptor node__field_descriptors[6] =
|
|
1268
1269
|
PROTOBUF_C_LABEL_REQUIRED,
|
1269
1270
|
PROTOBUF_C_TYPE_SINT64,
|
1270
1271
|
0, /* quantifier_offset */
|
1271
|
-
|
1272
|
+
offsetof(OSMPBF__Node, lat),
|
1272
1273
|
NULL,
|
1273
1274
|
NULL,
|
1274
|
-
0,
|
1275
|
+
0, /* flags */
|
1275
1276
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
1276
1277
|
},
|
1277
1278
|
{
|
@@ -1280,14 +1281,14 @@ static const ProtobufCFieldDescriptor node__field_descriptors[6] =
|
|
1280
1281
|
PROTOBUF_C_LABEL_REQUIRED,
|
1281
1282
|
PROTOBUF_C_TYPE_SINT64,
|
1282
1283
|
0, /* quantifier_offset */
|
1283
|
-
|
1284
|
+
offsetof(OSMPBF__Node, lon),
|
1284
1285
|
NULL,
|
1285
1286
|
NULL,
|
1286
|
-
0,
|
1287
|
+
0, /* flags */
|
1287
1288
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
1288
1289
|
},
|
1289
1290
|
};
|
1290
|
-
static const unsigned
|
1291
|
+
static const unsigned osmpbf__node__field_indices_by_name[] = {
|
1291
1292
|
0, /* field[0] = id */
|
1292
1293
|
3, /* field[3] = info */
|
1293
1294
|
1, /* field[1] = keys */
|
@@ -1295,39 +1296,39 @@ static const unsigned node__field_indices_by_name[] = {
|
|
1295
1296
|
5, /* field[5] = lon */
|
1296
1297
|
2, /* field[2] = vals */
|
1297
1298
|
};
|
1298
|
-
static const ProtobufCIntRange
|
1299
|
+
static const ProtobufCIntRange osmpbf__node__number_ranges[2 + 1] =
|
1299
1300
|
{
|
1300
1301
|
{ 1, 0 },
|
1301
1302
|
{ 8, 4 },
|
1302
1303
|
{ 0, 6 }
|
1303
1304
|
};
|
1304
|
-
const ProtobufCMessageDescriptor
|
1305
|
+
const ProtobufCMessageDescriptor osmpbf__node__descriptor =
|
1305
1306
|
{
|
1306
|
-
|
1307
|
-
"Node",
|
1308
|
-
"Node",
|
1307
|
+
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
1308
|
+
"OSMPBF.Node",
|
1309
1309
|
"Node",
|
1310
|
-
"",
|
1311
|
-
|
1310
|
+
"OSMPBF__Node",
|
1311
|
+
"OSMPBF",
|
1312
|
+
sizeof(OSMPBF__Node),
|
1312
1313
|
6,
|
1313
|
-
|
1314
|
-
|
1315
|
-
2,
|
1316
|
-
(ProtobufCMessageInit)
|
1314
|
+
osmpbf__node__field_descriptors,
|
1315
|
+
osmpbf__node__field_indices_by_name,
|
1316
|
+
2, osmpbf__node__number_ranges,
|
1317
|
+
(ProtobufCMessageInit) osmpbf__node__init,
|
1317
1318
|
NULL,NULL,NULL /* reserved[123] */
|
1318
1319
|
};
|
1319
|
-
static const ProtobufCFieldDescriptor
|
1320
|
+
static const ProtobufCFieldDescriptor osmpbf__dense_nodes__field_descriptors[5] =
|
1320
1321
|
{
|
1321
1322
|
{
|
1322
1323
|
"id",
|
1323
1324
|
1,
|
1324
1325
|
PROTOBUF_C_LABEL_REPEATED,
|
1325
1326
|
PROTOBUF_C_TYPE_SINT64,
|
1326
|
-
|
1327
|
-
|
1327
|
+
offsetof(OSMPBF__DenseNodes, n_id),
|
1328
|
+
offsetof(OSMPBF__DenseNodes, id),
|
1328
1329
|
NULL,
|
1329
1330
|
NULL,
|
1330
|
-
|
1331
|
+
0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */
|
1331
1332
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
1332
1333
|
},
|
1333
1334
|
{
|
@@ -1336,10 +1337,10 @@ static const ProtobufCFieldDescriptor dense_nodes__field_descriptors[5] =
|
|
1336
1337
|
PROTOBUF_C_LABEL_OPTIONAL,
|
1337
1338
|
PROTOBUF_C_TYPE_MESSAGE,
|
1338
1339
|
0, /* quantifier_offset */
|
1339
|
-
|
1340
|
-
&
|
1340
|
+
offsetof(OSMPBF__DenseNodes, denseinfo),
|
1341
|
+
&osmpbf__dense_info__descriptor,
|
1341
1342
|
NULL,
|
1342
|
-
0,
|
1343
|
+
0, /* flags */
|
1343
1344
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
1344
1345
|
},
|
1345
1346
|
{
|
@@ -1347,11 +1348,11 @@ static const ProtobufCFieldDescriptor dense_nodes__field_descriptors[5] =
|
|
1347
1348
|
8,
|
1348
1349
|
PROTOBUF_C_LABEL_REPEATED,
|
1349
1350
|
PROTOBUF_C_TYPE_SINT64,
|
1350
|
-
|
1351
|
-
|
1351
|
+
offsetof(OSMPBF__DenseNodes, n_lat),
|
1352
|
+
offsetof(OSMPBF__DenseNodes, lat),
|
1352
1353
|
NULL,
|
1353
1354
|
NULL,
|
1354
|
-
|
1355
|
+
0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */
|
1355
1356
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
1356
1357
|
},
|
1357
1358
|
{
|
@@ -1359,11 +1360,11 @@ static const ProtobufCFieldDescriptor dense_nodes__field_descriptors[5] =
|
|
1359
1360
|
9,
|
1360
1361
|
PROTOBUF_C_LABEL_REPEATED,
|
1361
1362
|
PROTOBUF_C_TYPE_SINT64,
|
1362
|
-
|
1363
|
-
|
1363
|
+
offsetof(OSMPBF__DenseNodes, n_lon),
|
1364
|
+
offsetof(OSMPBF__DenseNodes, lon),
|
1364
1365
|
NULL,
|
1365
1366
|
NULL,
|
1366
|
-
|
1367
|
+
0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */
|
1367
1368
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
1368
1369
|
},
|
1369
1370
|
{
|
@@ -1371,44 +1372,44 @@ static const ProtobufCFieldDescriptor dense_nodes__field_descriptors[5] =
|
|
1371
1372
|
10,
|
1372
1373
|
PROTOBUF_C_LABEL_REPEATED,
|
1373
1374
|
PROTOBUF_C_TYPE_INT32,
|
1374
|
-
|
1375
|
-
|
1375
|
+
offsetof(OSMPBF__DenseNodes, n_keys_vals),
|
1376
|
+
offsetof(OSMPBF__DenseNodes, keys_vals),
|
1376
1377
|
NULL,
|
1377
1378
|
NULL,
|
1378
|
-
|
1379
|
+
0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */
|
1379
1380
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
1380
1381
|
},
|
1381
1382
|
};
|
1382
|
-
static const unsigned
|
1383
|
+
static const unsigned osmpbf__dense_nodes__field_indices_by_name[] = {
|
1383
1384
|
1, /* field[1] = denseinfo */
|
1384
1385
|
0, /* field[0] = id */
|
1385
1386
|
4, /* field[4] = keys_vals */
|
1386
1387
|
2, /* field[2] = lat */
|
1387
1388
|
3, /* field[3] = lon */
|
1388
1389
|
};
|
1389
|
-
static const ProtobufCIntRange
|
1390
|
+
static const ProtobufCIntRange osmpbf__dense_nodes__number_ranges[3 + 1] =
|
1390
1391
|
{
|
1391
1392
|
{ 1, 0 },
|
1392
1393
|
{ 5, 1 },
|
1393
1394
|
{ 8, 2 },
|
1394
1395
|
{ 0, 5 }
|
1395
1396
|
};
|
1396
|
-
const ProtobufCMessageDescriptor
|
1397
|
+
const ProtobufCMessageDescriptor osmpbf__dense_nodes__descriptor =
|
1397
1398
|
{
|
1398
|
-
|
1399
|
+
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
1400
|
+
"OSMPBF.DenseNodes",
|
1399
1401
|
"DenseNodes",
|
1400
|
-
"
|
1401
|
-
"
|
1402
|
-
|
1403
|
-
sizeof(DenseNodes),
|
1402
|
+
"OSMPBF__DenseNodes",
|
1403
|
+
"OSMPBF",
|
1404
|
+
sizeof(OSMPBF__DenseNodes),
|
1404
1405
|
5,
|
1405
|
-
|
1406
|
-
|
1407
|
-
3,
|
1408
|
-
(ProtobufCMessageInit)
|
1406
|
+
osmpbf__dense_nodes__field_descriptors,
|
1407
|
+
osmpbf__dense_nodes__field_indices_by_name,
|
1408
|
+
3, osmpbf__dense_nodes__number_ranges,
|
1409
|
+
(ProtobufCMessageInit) osmpbf__dense_nodes__init,
|
1409
1410
|
NULL,NULL,NULL /* reserved[123] */
|
1410
1411
|
};
|
1411
|
-
static const ProtobufCFieldDescriptor
|
1412
|
+
static const ProtobufCFieldDescriptor osmpbf__way__field_descriptors[5] =
|
1412
1413
|
{
|
1413
1414
|
{
|
1414
1415
|
"id",
|
@@ -1416,10 +1417,10 @@ static const ProtobufCFieldDescriptor way__field_descriptors[5] =
|
|
1416
1417
|
PROTOBUF_C_LABEL_REQUIRED,
|
1417
1418
|
PROTOBUF_C_TYPE_INT64,
|
1418
1419
|
0, /* quantifier_offset */
|
1419
|
-
|
1420
|
+
offsetof(OSMPBF__Way, id),
|
1420
1421
|
NULL,
|
1421
1422
|
NULL,
|
1422
|
-
0,
|
1423
|
+
0, /* flags */
|
1423
1424
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
1424
1425
|
},
|
1425
1426
|
{
|
@@ -1427,11 +1428,11 @@ static const ProtobufCFieldDescriptor way__field_descriptors[5] =
|
|
1427
1428
|
2,
|
1428
1429
|
PROTOBUF_C_LABEL_REPEATED,
|
1429
1430
|
PROTOBUF_C_TYPE_UINT32,
|
1430
|
-
|
1431
|
-
|
1431
|
+
offsetof(OSMPBF__Way, n_keys),
|
1432
|
+
offsetof(OSMPBF__Way, keys),
|
1432
1433
|
NULL,
|
1433
1434
|
NULL,
|
1434
|
-
|
1435
|
+
0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */
|
1435
1436
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
1436
1437
|
},
|
1437
1438
|
{
|
@@ -1439,11 +1440,11 @@ static const ProtobufCFieldDescriptor way__field_descriptors[5] =
|
|
1439
1440
|
3,
|
1440
1441
|
PROTOBUF_C_LABEL_REPEATED,
|
1441
1442
|
PROTOBUF_C_TYPE_UINT32,
|
1442
|
-
|
1443
|
-
|
1443
|
+
offsetof(OSMPBF__Way, n_vals),
|
1444
|
+
offsetof(OSMPBF__Way, vals),
|
1444
1445
|
NULL,
|
1445
1446
|
NULL,
|
1446
|
-
|
1447
|
+
0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */
|
1447
1448
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
1448
1449
|
},
|
1449
1450
|
{
|
@@ -1452,10 +1453,10 @@ static const ProtobufCFieldDescriptor way__field_descriptors[5] =
|
|
1452
1453
|
PROTOBUF_C_LABEL_OPTIONAL,
|
1453
1454
|
PROTOBUF_C_TYPE_MESSAGE,
|
1454
1455
|
0, /* quantifier_offset */
|
1455
|
-
|
1456
|
-
&
|
1456
|
+
offsetof(OSMPBF__Way, info),
|
1457
|
+
&osmpbf__info__descriptor,
|
1457
1458
|
NULL,
|
1458
|
-
0,
|
1459
|
+
0, /* flags */
|
1459
1460
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
1460
1461
|
},
|
1461
1462
|
{
|
@@ -1463,73 +1464,73 @@ static const ProtobufCFieldDescriptor way__field_descriptors[5] =
|
|
1463
1464
|
8,
|
1464
1465
|
PROTOBUF_C_LABEL_REPEATED,
|
1465
1466
|
PROTOBUF_C_TYPE_SINT64,
|
1466
|
-
|
1467
|
-
|
1467
|
+
offsetof(OSMPBF__Way, n_refs),
|
1468
|
+
offsetof(OSMPBF__Way, refs),
|
1468
1469
|
NULL,
|
1469
1470
|
NULL,
|
1470
|
-
|
1471
|
+
0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */
|
1471
1472
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
1472
1473
|
},
|
1473
1474
|
};
|
1474
|
-
static const unsigned
|
1475
|
+
static const unsigned osmpbf__way__field_indices_by_name[] = {
|
1475
1476
|
0, /* field[0] = id */
|
1476
1477
|
3, /* field[3] = info */
|
1477
1478
|
1, /* field[1] = keys */
|
1478
1479
|
4, /* field[4] = refs */
|
1479
1480
|
2, /* field[2] = vals */
|
1480
1481
|
};
|
1481
|
-
static const ProtobufCIntRange
|
1482
|
+
static const ProtobufCIntRange osmpbf__way__number_ranges[2 + 1] =
|
1482
1483
|
{
|
1483
1484
|
{ 1, 0 },
|
1484
1485
|
{ 8, 4 },
|
1485
1486
|
{ 0, 5 }
|
1486
1487
|
};
|
1487
|
-
const ProtobufCMessageDescriptor
|
1488
|
+
const ProtobufCMessageDescriptor osmpbf__way__descriptor =
|
1488
1489
|
{
|
1489
|
-
|
1490
|
-
"Way",
|
1490
|
+
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
1491
|
+
"OSMPBF.Way",
|
1491
1492
|
"Way",
|
1492
|
-
"
|
1493
|
-
"",
|
1494
|
-
sizeof(
|
1493
|
+
"OSMPBF__Way",
|
1494
|
+
"OSMPBF",
|
1495
|
+
sizeof(OSMPBF__Way),
|
1495
1496
|
5,
|
1496
|
-
|
1497
|
-
|
1498
|
-
2,
|
1499
|
-
(ProtobufCMessageInit)
|
1497
|
+
osmpbf__way__field_descriptors,
|
1498
|
+
osmpbf__way__field_indices_by_name,
|
1499
|
+
2, osmpbf__way__number_ranges,
|
1500
|
+
(ProtobufCMessageInit) osmpbf__way__init,
|
1500
1501
|
NULL,NULL,NULL /* reserved[123] */
|
1501
1502
|
};
|
1502
|
-
const ProtobufCEnumValue
|
1503
|
+
const ProtobufCEnumValue osmpbf__relation__member_type__enum_values_by_number[3] =
|
1503
1504
|
{
|
1504
|
-
{ "NODE", "
|
1505
|
-
{ "WAY", "
|
1506
|
-
{ "RELATION", "
|
1505
|
+
{ "NODE", "OSMPBF__RELATION__MEMBER_TYPE__NODE", 0 },
|
1506
|
+
{ "WAY", "OSMPBF__RELATION__MEMBER_TYPE__WAY", 1 },
|
1507
|
+
{ "RELATION", "OSMPBF__RELATION__MEMBER_TYPE__RELATION", 2 },
|
1507
1508
|
};
|
1508
|
-
static const ProtobufCIntRange
|
1509
|
+
static const ProtobufCIntRange osmpbf__relation__member_type__value_ranges[] = {
|
1509
1510
|
{0, 0},{0, 3}
|
1510
1511
|
};
|
1511
|
-
const ProtobufCEnumValueIndex
|
1512
|
+
const ProtobufCEnumValueIndex osmpbf__relation__member_type__enum_values_by_name[3] =
|
1512
1513
|
{
|
1513
1514
|
{ "NODE", 0 },
|
1514
1515
|
{ "RELATION", 2 },
|
1515
1516
|
{ "WAY", 1 },
|
1516
1517
|
};
|
1517
|
-
const ProtobufCEnumDescriptor
|
1518
|
+
const ProtobufCEnumDescriptor osmpbf__relation__member_type__descriptor =
|
1518
1519
|
{
|
1519
|
-
|
1520
|
-
"Relation.MemberType",
|
1520
|
+
PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC,
|
1521
|
+
"OSMPBF.Relation.MemberType",
|
1521
1522
|
"MemberType",
|
1522
|
-
"
|
1523
|
-
"",
|
1523
|
+
"OSMPBF__Relation__MemberType",
|
1524
|
+
"OSMPBF",
|
1524
1525
|
3,
|
1525
|
-
|
1526
|
+
osmpbf__relation__member_type__enum_values_by_number,
|
1526
1527
|
3,
|
1527
|
-
|
1528
|
+
osmpbf__relation__member_type__enum_values_by_name,
|
1528
1529
|
1,
|
1529
|
-
|
1530
|
+
osmpbf__relation__member_type__value_ranges,
|
1530
1531
|
NULL,NULL,NULL,NULL /* reserved[1234] */
|
1531
1532
|
};
|
1532
|
-
static const ProtobufCFieldDescriptor
|
1533
|
+
static const ProtobufCFieldDescriptor osmpbf__relation__field_descriptors[7] =
|
1533
1534
|
{
|
1534
1535
|
{
|
1535
1536
|
"id",
|
@@ -1537,10 +1538,10 @@ static const ProtobufCFieldDescriptor relation__field_descriptors[7] =
|
|
1537
1538
|
PROTOBUF_C_LABEL_REQUIRED,
|
1538
1539
|
PROTOBUF_C_TYPE_INT64,
|
1539
1540
|
0, /* quantifier_offset */
|
1540
|
-
|
1541
|
+
offsetof(OSMPBF__Relation, id),
|
1541
1542
|
NULL,
|
1542
1543
|
NULL,
|
1543
|
-
0,
|
1544
|
+
0, /* flags */
|
1544
1545
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
1545
1546
|
},
|
1546
1547
|
{
|
@@ -1548,11 +1549,11 @@ static const ProtobufCFieldDescriptor relation__field_descriptors[7] =
|
|
1548
1549
|
2,
|
1549
1550
|
PROTOBUF_C_LABEL_REPEATED,
|
1550
1551
|
PROTOBUF_C_TYPE_UINT32,
|
1551
|
-
|
1552
|
-
|
1552
|
+
offsetof(OSMPBF__Relation, n_keys),
|
1553
|
+
offsetof(OSMPBF__Relation, keys),
|
1553
1554
|
NULL,
|
1554
1555
|
NULL,
|
1555
|
-
|
1556
|
+
0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */
|
1556
1557
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
1557
1558
|
},
|
1558
1559
|
{
|
@@ -1560,11 +1561,11 @@ static const ProtobufCFieldDescriptor relation__field_descriptors[7] =
|
|
1560
1561
|
3,
|
1561
1562
|
PROTOBUF_C_LABEL_REPEATED,
|
1562
1563
|
PROTOBUF_C_TYPE_UINT32,
|
1563
|
-
|
1564
|
-
|
1564
|
+
offsetof(OSMPBF__Relation, n_vals),
|
1565
|
+
offsetof(OSMPBF__Relation, vals),
|
1565
1566
|
NULL,
|
1566
1567
|
NULL,
|
1567
|
-
|
1568
|
+
0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */
|
1568
1569
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
1569
1570
|
},
|
1570
1571
|
{
|
@@ -1573,10 +1574,10 @@ static const ProtobufCFieldDescriptor relation__field_descriptors[7] =
|
|
1573
1574
|
PROTOBUF_C_LABEL_OPTIONAL,
|
1574
1575
|
PROTOBUF_C_TYPE_MESSAGE,
|
1575
1576
|
0, /* quantifier_offset */
|
1576
|
-
|
1577
|
-
&
|
1577
|
+
offsetof(OSMPBF__Relation, info),
|
1578
|
+
&osmpbf__info__descriptor,
|
1578
1579
|
NULL,
|
1579
|
-
0,
|
1580
|
+
0, /* flags */
|
1580
1581
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
1581
1582
|
},
|
1582
1583
|
{
|
@@ -1584,11 +1585,11 @@ static const ProtobufCFieldDescriptor relation__field_descriptors[7] =
|
|
1584
1585
|
8,
|
1585
1586
|
PROTOBUF_C_LABEL_REPEATED,
|
1586
1587
|
PROTOBUF_C_TYPE_INT32,
|
1587
|
-
|
1588
|
-
|
1588
|
+
offsetof(OSMPBF__Relation, n_roles_sid),
|
1589
|
+
offsetof(OSMPBF__Relation, roles_sid),
|
1589
1590
|
NULL,
|
1590
1591
|
NULL,
|
1591
|
-
|
1592
|
+
0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */
|
1592
1593
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
1593
1594
|
},
|
1594
1595
|
{
|
@@ -1596,11 +1597,11 @@ static const ProtobufCFieldDescriptor relation__field_descriptors[7] =
|
|
1596
1597
|
9,
|
1597
1598
|
PROTOBUF_C_LABEL_REPEATED,
|
1598
1599
|
PROTOBUF_C_TYPE_SINT64,
|
1599
|
-
|
1600
|
-
|
1600
|
+
offsetof(OSMPBF__Relation, n_memids),
|
1601
|
+
offsetof(OSMPBF__Relation, memids),
|
1601
1602
|
NULL,
|
1602
1603
|
NULL,
|
1603
|
-
|
1604
|
+
0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */
|
1604
1605
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
1605
1606
|
},
|
1606
1607
|
{
|
@@ -1608,15 +1609,15 @@ static const ProtobufCFieldDescriptor relation__field_descriptors[7] =
|
|
1608
1609
|
10,
|
1609
1610
|
PROTOBUF_C_LABEL_REPEATED,
|
1610
1611
|
PROTOBUF_C_TYPE_ENUM,
|
1611
|
-
|
1612
|
-
|
1613
|
-
&
|
1612
|
+
offsetof(OSMPBF__Relation, n_types),
|
1613
|
+
offsetof(OSMPBF__Relation, types),
|
1614
|
+
&osmpbf__relation__member_type__descriptor,
|
1614
1615
|
NULL,
|
1615
|
-
|
1616
|
+
0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */
|
1616
1617
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
1617
1618
|
},
|
1618
1619
|
};
|
1619
|
-
static const unsigned
|
1620
|
+
static const unsigned osmpbf__relation__field_indices_by_name[] = {
|
1620
1621
|
0, /* field[0] = id */
|
1621
1622
|
3, /* field[3] = info */
|
1622
1623
|
1, /* field[1] = keys */
|
@@ -1625,24 +1626,24 @@ static const unsigned relation__field_indices_by_name[] = {
|
|
1625
1626
|
6, /* field[6] = types */
|
1626
1627
|
2, /* field[2] = vals */
|
1627
1628
|
};
|
1628
|
-
static const ProtobufCIntRange
|
1629
|
+
static const ProtobufCIntRange osmpbf__relation__number_ranges[2 + 1] =
|
1629
1630
|
{
|
1630
1631
|
{ 1, 0 },
|
1631
1632
|
{ 8, 4 },
|
1632
1633
|
{ 0, 7 }
|
1633
1634
|
};
|
1634
|
-
const ProtobufCMessageDescriptor
|
1635
|
+
const ProtobufCMessageDescriptor osmpbf__relation__descriptor =
|
1635
1636
|
{
|
1636
|
-
|
1637
|
-
"Relation",
|
1638
|
-
"Relation",
|
1637
|
+
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
1638
|
+
"OSMPBF.Relation",
|
1639
1639
|
"Relation",
|
1640
|
-
"",
|
1641
|
-
|
1640
|
+
"OSMPBF__Relation",
|
1641
|
+
"OSMPBF",
|
1642
|
+
sizeof(OSMPBF__Relation),
|
1642
1643
|
7,
|
1643
|
-
|
1644
|
-
|
1645
|
-
2,
|
1646
|
-
(ProtobufCMessageInit)
|
1644
|
+
osmpbf__relation__field_descriptors,
|
1645
|
+
osmpbf__relation__field_indices_by_name,
|
1646
|
+
2, osmpbf__relation__number_ranges,
|
1647
|
+
(ProtobufCMessageInit) osmpbf__relation__init,
|
1647
1648
|
NULL,NULL,NULL /* reserved[123] */
|
1648
1649
|
};
|