-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstructs.go
More file actions
99 lines (85 loc) · 2.67 KB
/
structs.go
File metadata and controls
99 lines (85 loc) · 2.67 KB
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
package main
type geojson_fmt struct {
Type string `json:"type"`
Name string `json:"name"`
Crs crs `json:"crs"`
Features []networkpoint `json:"features"`
}
type geojson_fmt_level1 struct {
Type string `json:"type"`
Name string `json:"name"`
Crs crs `json:"crs"`
Features []level1_point `json:"features"`
}
type geojson_fmt_level2_3 struct {
Type string `json:"type"`
Name string `json:"name"`
Crs crs `json:"crs"`
Features []level2_3_point `json:"features"`
}
type crs struct {
Type string `json:"name"`
Properties crs_properties `json:"properties"`
}
type crs_properties struct {
Name string `json:"name"`
}
type networkpoint_properties struct {
Name string `json:"name"`
Id string `json:"id"`
Image string `json:"image"`
Feature_type string `json:"type"`
Latitude string `json:"latitude"`
Longitude string `json:"longitude"`
Year string `json:"year"`
AP_type string `json:"ap_type"`
}
type networkpoint_geometry struct {
Feature_type string `json:"type"`
Coordinates [][]float64 `json:"coordinates"`
}
type networkpoint struct {
Geojson_type string `json:"type"`
Properties networkpoint_properties `json:"properties"`
Geometry networkpoint_geometry `json:"geometry"`
}
type level1_point struct {
Type string `json:"type"`
Properties level1_properties `json:"properties"`
Geometry level1_geometry `json:"geometry"`
}
type level1_properties struct {
Fid string `json:"fid"`
Qc_id string `json:"qc_id"`
Hs_id string `json:"hs_id"`
Rt_id string `json:"rt_id"`
Fid_2 string `json:"fid_2"`
Hs_id_2 string `json:"hs_id_2"`
Year string `json:"year"`
// Separate from type of GeoJson objects ("Feature"), the type of line for layer filtering
Line_type string `json:"line_type"`
}
type level1_geometry struct {
Type string `json:"type"`
Coordinates [][]float64 `json:"coordinates"`
}
type level2_3_point struct {
Type string `json:"type"`
Properties level2_3_properties `json:"properties"`
Geometry level2_3_geometry `json:"geometry"`
}
type level2_3_properties struct {
Fid string `json:"fid"`
Qc_id string `json:"qc_id"`
Hs_id string `json:"hs_id"`
Rt_id string `json:"rt_id"`
Fid_2 string `json:"fid_2"`
Qc_id_2 string `json:"qc_id_2"`
Rt_id_2 string `json:"rt_id_2"`
Year string `json:"year"`
Line_type string `json:"line_type"`
}
type level2_3_geometry struct {
Type string `json:"type"`
Coordinates [][]float64 `json:"coordinates"`
}