-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcanada.fbs
More file actions
39 lines (32 loc) · 804 Bytes
/
canada.fbs
File metadata and controls
39 lines (32 loc) · 804 Bytes
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
// FlatBuffers schema generated from Swift GeoJSON-like model
namespace Geo;
// Root object
table FeatureCollection {
type: string;
features: [Feature];
}
table Feature {
type: string;
properties: [PropertyEntry]; // Map<String,String> → vector of key/value pairs
geometry: Geometry;
}
// Represent a key/value pair for properties
table PropertyEntry {
key: string;
value: string;
}
table Geometry {
type: string;
coordinates: [CoordinateList]; // [[Coordinate]] → vector of CoordinateList
}
// Each CoordinateList represents one polygon ring, etc.
table CoordinateList {
coords: [Coordinate];
}
// Coordinate is a fixed-size struct (fast, inline storage)
struct Coordinate {
latitude: double;
longitude: double;
}
// Root type for the file
root_type FeatureCollection;