source: josm/trunk/test/data/geo.json@ 16834

Last change on this file since 16834 was 16311, checked in by simon04, 5 years ago

fix #19041 - GeoJSONReader: reuse node on same at same position to

Avoids multiple nodes on top of each other. Avoid creating unconnected polygons.

File size: 3.8 KB
Line 
1{
2 "type": "FeatureCollection",
3 "features": [
4 {
5 "type": "Feature",
6 "geometry": {
7 "type": "Point",
8 "coordinates": [
9 102.0,
10 0.5
11 ]
12 },
13 "properties": {
14 "propA": "valueA"
15 }
16 },
17 {
18 "type": "Feature",
19 "geometry": {
20 "type": "LineString",
21 "coordinates": [
22 [
23 102.0,
24 0.5
25 ],
26 [
27 103.0,
28 1.0
29 ],
30 [
31 104.0,
32 0.0
33 ],
34 [
35 105.0,
36 1.0
37 ]
38 ]
39 },
40 "properties": {
41 "propB": "valueB",
42 "propB2": 0.0
43 }
44 },
45 {
46 "type": "Feature",
47 "geometry": {
48 "type": "MultiPolygon",
49 "coordinates": [
50 [
51 [
52 [
53 180.0,
54 40.0
55 ],
56 [
57 180.0,
58 50.0
59 ],
60 [
61 170.0,
62 50.0
63 ],
64 [
65 170.0,
66 40.0
67 ],
68 [
69 180.0,
70 40.0
71 ]
72 ]
73 ],
74 [
75 [
76 [
77 -170.0,
78 40.0
79 ],
80 [
81 -170.0,
82 50.0
83 ],
84 [
85 -180.0,
86 50.0
87 ],
88 [
89 -180.0,
90 40.0
91 ],
92 [
93 -170.0,
94 40.0
95 ]
96 ]
97 ]
98 ]
99 }
100 },
101 {
102 "type": "Feature",
103 "geometry": {
104 "type": "Polygon",
105 "coordinates": [
106 [
107 [
108 100.0,
109 0.0
110 ],
111 [
112 101.0,
113 0.0
114 ],
115 [
116 101.0,
117 1.0
118 ],
119 [
120 100.0,
121 1.0
122 ],
123 [
124 100.0,
125 0.0
126 ]
127 ]
128 ]
129 },
130 "properties": {
131 "propD": "valueD",
132 "propD2": {
133 "this": "that"
134 },
135 "propD3": true,
136 "propD4": null
137 }
138 }
139 ]
140}
Note: See TracBrowser for help on using the repository browser.