AlexanderSvarfdal commited on
Commit
477013f
·
1 Parent(s): 6beb643

made a transformer for the data to work with geojson.io

Browse files
.DS_Store CHANGED
Binary files a/.DS_Store and b/.DS_Store differ
 
given_data/{cityline_2025.geojson → cityline_geojson/cityline_2025.geojson} RENAMED
File without changes
given_data/{cityline_2029.geojson → cityline_geojson/cityline_2029.geojson} RENAMED
File without changes
given_data/{cityline_2030.geojson → cityline_geojson/cityline_2030.geojson} RENAMED
File without changes
given_data/cityline_geojson/geojson_projection.py ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # CODE THAT IS GENERATED BY CHAT GPT
2
+
3
+ import json
4
+ from pyproj import Transformer
5
+ import os
6
+
7
+ # Define the folder path
8
+ folder_path = "./given_data/cityline_geojson"
9
+
10
+ # Ensure the output folder exists
11
+ output_folder = "./given_data/cityline_geojson_reprojected"
12
+ os.makedirs(output_folder, exist_ok=True)
13
+
14
+ # Get all filenames in the folder
15
+ file_names = os.listdir(folder_path)
16
+
17
+ # Filter for GeoJSON files (optional)
18
+ geojson_files = [f for f in file_names if f.endswith(".geojson")]
19
+
20
+ for file_name in geojson_files:
21
+ # Load the GeoJSON data
22
+ input_file_path = os.path.join(folder_path, file_name)
23
+ with open(input_file_path, "r") as f:
24
+ geojson_data = json.load(f)
25
+
26
+ # Initialize the transformer (EPSG:3857 to EPSG:4326)
27
+ transformer = Transformer.from_crs("EPSG:3857", "EPSG:4326", always_xy=True)
28
+
29
+ # Reproject the coordinates
30
+ for feature in geojson_data["features"]:
31
+ geom_type = feature["geometry"]["type"]
32
+ coords = feature["geometry"]["coordinates"]
33
+
34
+ if geom_type == "Point":
35
+ # Transform Point coordinates
36
+ x, y = coords
37
+ lon, lat = transformer.transform(x, y)
38
+ feature["geometry"]["coordinates"] = [lon, lat]
39
+ elif geom_type == "LineString":
40
+ # Transform LineString coordinates
41
+ feature["geometry"]["coordinates"] = [
42
+ transformer.transform(x, y) for x, y in coords
43
+ ]
44
+ elif geom_type == "Polygon":
45
+ # Transform Polygon coordinates (outer ring and possible inner rings)
46
+ feature["geometry"]["coordinates"] = [
47
+ [transformer.transform(x, y) for x, y in ring] for ring in coords
48
+ ]
49
+
50
+ # Update the CRS to EPSG:4326
51
+ geojson_data["crs"] = {
52
+ "type": "name",
53
+ "properties": {"name": "urn:ogc:def:crs:EPSG::4326"},
54
+ }
55
+
56
+ # Save the reprojected GeoJSON
57
+ output_file_path = os.path.join(output_folder, file_name)
58
+ with open(output_file_path, "w") as f:
59
+ json.dump(geojson_data, f, indent=2)
60
+
61
+ print(f"Reprojection complete! Saved to {output_file_path}.")
given_data/cityline_geojson_reprojected/cityline_2025.geojson ADDED
@@ -0,0 +1,297 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "FeatureCollection",
3
+ "name": "cityline_2025",
4
+ "crs": {
5
+ "type": "name",
6
+ "properties": {
7
+ "name": "urn:ogc:def:crs:EPSG::4326"
8
+ }
9
+ },
10
+ "features": [
11
+ {
12
+ "type": "Feature",
13
+ "properties": {
14
+ "id": 1,
15
+ "name": "Vatnsendi",
16
+ "line": "red"
17
+ },
18
+ "geometry": {
19
+ "type": "Point",
20
+ "coordinates": [
21
+ -21.809656537728184,
22
+ 64.08563878170261
23
+ ]
24
+ }
25
+ },
26
+ {
27
+ "type": "Feature",
28
+ "properties": {
29
+ "id": 2,
30
+ "name": "Salir",
31
+ "line": "red"
32
+ },
33
+ "geometry": {
34
+ "type": "Point",
35
+ "coordinates": [
36
+ -21.84374406274503,
37
+ 64.08960383362172
38
+ ]
39
+ }
40
+ },
41
+ {
42
+ "type": "Feature",
43
+ "properties": {
44
+ "id": 3,
45
+ "name": "Lindir",
46
+ "line": "red"
47
+ },
48
+ "geometry": {
49
+ "type": "Point",
50
+ "coordinates": [
51
+ -21.870826166122857,
52
+ 64.09886013163094
53
+ ]
54
+ }
55
+ },
56
+ {
57
+ "type": "Feature",
58
+ "properties": {
59
+ "id": 4,
60
+ "name": "Sm\u00e1ralind",
61
+ "line": "red"
62
+ },
63
+ "geometry": {
64
+ "type": "Point",
65
+ "coordinates": [
66
+ -21.88593318977579,
67
+ 64.10256178882854
68
+ ]
69
+ }
70
+ },
71
+ {
72
+ "type": "Feature",
73
+ "properties": {
74
+ "id": 5,
75
+ "name": "Hamraborg",
76
+ "line": "red"
77
+ },
78
+ "geometry": {
79
+ "type": "Point",
80
+ "coordinates": [
81
+ -21.90837264686027,
82
+ 64.1110898195906
83
+ ]
84
+ }
85
+ },
86
+ {
87
+ "type": "Feature",
88
+ "properties": {
89
+ "id": 6,
90
+ "name": "Sundlaug K\u00f3pavogs",
91
+ "line": "red"
92
+ },
93
+ "geometry": {
94
+ "type": "Point",
95
+ "coordinates": [
96
+ -21.91850540662748,
97
+ 64.11118634836693
98
+ ]
99
+ }
100
+ },
101
+ {
102
+ "type": "Feature",
103
+ "properties": {
104
+ "id": 7,
105
+ "name": "Bakkabraut",
106
+ "line": "red"
107
+ },
108
+ "geometry": {
109
+ "type": "Point",
110
+ "coordinates": [
111
+ -21.939618393342432,
112
+ 64.1170418007092
113
+ ]
114
+ }
115
+ },
116
+ {
117
+ "type": "Feature",
118
+ "properties": {
119
+ "id": 8,
120
+ "name": "HR",
121
+ "line": "red"
122
+ },
123
+ "geometry": {
124
+ "type": "Point",
125
+ "coordinates": [
126
+ -21.931843803121048,
127
+ 64.12238141279147
128
+ ]
129
+ }
130
+ },
131
+ {
132
+ "type": "Feature",
133
+ "properties": {
134
+ "id": 9,
135
+ "name": "Landsp\u00edtalinn",
136
+ "line": "red"
137
+ },
138
+ "geometry": {
139
+ "type": "Point",
140
+ "coordinates": [
141
+ -21.931475339129513,
142
+ 64.13805657429226
143
+ ]
144
+ }
145
+ },
146
+ {
147
+ "type": "Feature",
148
+ "properties": {
149
+ "id": 10,
150
+ "name": "BS\u00cd",
151
+ "line": "red"
152
+ },
153
+ "geometry": {
154
+ "type": "Point",
155
+ "coordinates": [
156
+ -21.936523295813547,
157
+ 64.13882804616311
158
+ ]
159
+ }
160
+ },
161
+ {
162
+ "type": "Feature",
163
+ "properties": {
164
+ "id": 11,
165
+ "name": "H\u00cd",
166
+ "line": "red"
167
+ },
168
+ "geometry": {
169
+ "type": "Point",
170
+ "coordinates": [
171
+ -21.946941615174197,
172
+ 64.14227128171937
173
+ ]
174
+ }
175
+ },
176
+ {
177
+ "type": "Feature",
178
+ "properties": {
179
+ "id": 12,
180
+ "name": "L\u00e6kjartorg",
181
+ "line": "red"
182
+ },
183
+ "geometry": {
184
+ "type": "Point",
185
+ "coordinates": [
186
+ -21.935942965026882,
187
+ 64.1476421981253
188
+ ]
189
+ }
190
+ },
191
+ {
192
+ "type": "Feature",
193
+ "properties": {
194
+ "id": 13,
195
+ "name": "Egilsh\u00f6ll",
196
+ "line": "blue"
197
+ },
198
+ "geometry": {
199
+ "type": "Point",
200
+ "coordinates": [
201
+ -21.772510761581547,
202
+ 64.14712403232718
203
+ ]
204
+ }
205
+ },
206
+ {
207
+ "type": "Feature",
208
+ "properties": {
209
+ "id": 14,
210
+ "name": "Sp\u00f6ngin",
211
+ "line": "blue"
212
+ },
213
+ "geometry": {
214
+ "type": "Point",
215
+ "coordinates": [
216
+ -21.790860268359996,
217
+ 64.1500079640408
218
+ ]
219
+ }
220
+ },
221
+ {
222
+ "type": "Feature",
223
+ "properties": {
224
+ "id": 16,
225
+ "name": "Krossm\u00fdrartorg",
226
+ "line": "blue"
227
+ },
228
+ "geometry": {
229
+ "type": "Point",
230
+ "coordinates": [
231
+ -21.82503990937478,
232
+ 64.12874297721763
233
+ ]
234
+ }
235
+ },
236
+ {
237
+ "type": "Feature",
238
+ "properties": {
239
+ "id": 15,
240
+ "name": "Vogabygg\u00f0",
241
+ "line": "blue"
242
+ },
243
+ "geometry": {
244
+ "type": "Point",
245
+ "coordinates": [
246
+ -21.862918007704575,
247
+ 64.13059187917774
248
+ ]
249
+ }
250
+ },
251
+ {
252
+ "type": "Feature",
253
+ "properties": {
254
+ "id": 17,
255
+ "name": "Laugardalur",
256
+ "line": "blue"
257
+ },
258
+ "geometry": {
259
+ "type": "Point",
260
+ "coordinates": [
261
+ -21.883036141642386,
262
+ 64.14018811495119
263
+ ]
264
+ }
265
+ },
266
+ {
267
+ "type": "Feature",
268
+ "properties": {
269
+ "id": 18,
270
+ "name": "H\u00e1t\u00fan",
271
+ "line": "blue"
272
+ },
273
+ "geometry": {
274
+ "type": "Point",
275
+ "coordinates": [
276
+ -21.90352273957173,
277
+ 64.14235765845228
278
+ ]
279
+ }
280
+ },
281
+ {
282
+ "type": "Feature",
283
+ "properties": {
284
+ "id": 19,
285
+ "name": "Hlemmur",
286
+ "line": "blue"
287
+ },
288
+ "geometry": {
289
+ "type": "Point",
290
+ "coordinates": [
291
+ -21.91395027053217,
292
+ 64.14332184560375
293
+ ]
294
+ }
295
+ }
296
+ ]
297
+ }
given_data/cityline_geojson_reprojected/cityline_2029.geojson ADDED
@@ -0,0 +1,402 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "FeatureCollection",
3
+ "name": "cityline_2029",
4
+ "crs": {
5
+ "type": "name",
6
+ "properties": {
7
+ "name": "urn:ogc:def:crs:EPSG::4326"
8
+ }
9
+ },
10
+ "features": [
11
+ {
12
+ "type": "Feature",
13
+ "properties": {
14
+ "id": 1,
15
+ "name": "Vatnsendi",
16
+ "line": "red"
17
+ },
18
+ "geometry": {
19
+ "type": "Point",
20
+ "coordinates": [
21
+ -21.809656537728184,
22
+ 64.08563878170261
23
+ ]
24
+ }
25
+ },
26
+ {
27
+ "type": "Feature",
28
+ "properties": {
29
+ "id": 2,
30
+ "name": "Salir",
31
+ "line": "red/green"
32
+ },
33
+ "geometry": {
34
+ "type": "Point",
35
+ "coordinates": [
36
+ -21.84374406274503,
37
+ 64.08960383362172
38
+ ]
39
+ }
40
+ },
41
+ {
42
+ "type": "Feature",
43
+ "properties": {
44
+ "id": 3,
45
+ "name": "Lindir",
46
+ "line": "red"
47
+ },
48
+ "geometry": {
49
+ "type": "Point",
50
+ "coordinates": [
51
+ -21.870826166122857,
52
+ 64.09886013163094
53
+ ]
54
+ }
55
+ },
56
+ {
57
+ "type": "Feature",
58
+ "properties": {
59
+ "id": 4,
60
+ "name": "Sm\u00e1ralind",
61
+ "line": "red"
62
+ },
63
+ "geometry": {
64
+ "type": "Point",
65
+ "coordinates": [
66
+ -21.88593318977579,
67
+ 64.10256178882854
68
+ ]
69
+ }
70
+ },
71
+ {
72
+ "type": "Feature",
73
+ "properties": {
74
+ "id": 5,
75
+ "name": "Hamraborg",
76
+ "line": "red"
77
+ },
78
+ "geometry": {
79
+ "type": "Point",
80
+ "coordinates": [
81
+ -21.90837264686027,
82
+ 64.1110898195906
83
+ ]
84
+ }
85
+ },
86
+ {
87
+ "type": "Feature",
88
+ "properties": {
89
+ "id": 6,
90
+ "name": "Sundlaug K\u00f3pavogs",
91
+ "line": "red"
92
+ },
93
+ "geometry": {
94
+ "type": "Point",
95
+ "coordinates": [
96
+ -21.91850540662748,
97
+ 64.11118634836693
98
+ ]
99
+ }
100
+ },
101
+ {
102
+ "type": "Feature",
103
+ "properties": {
104
+ "id": 7,
105
+ "name": "Bakkabraut",
106
+ "line": "red"
107
+ },
108
+ "geometry": {
109
+ "type": "Point",
110
+ "coordinates": [
111
+ -21.939618393342432,
112
+ 64.1170418007092
113
+ ]
114
+ }
115
+ },
116
+ {
117
+ "type": "Feature",
118
+ "properties": {
119
+ "id": 8,
120
+ "name": "HR",
121
+ "line": "red"
122
+ },
123
+ "geometry": {
124
+ "type": "Point",
125
+ "coordinates": [
126
+ -21.931843803121048,
127
+ 64.12238141279147
128
+ ]
129
+ }
130
+ },
131
+ {
132
+ "type": "Feature",
133
+ "properties": {
134
+ "id": 9,
135
+ "name": "Landsp\u00edtalinn",
136
+ "line": "red/green/orange"
137
+ },
138
+ "geometry": {
139
+ "type": "Point",
140
+ "coordinates": [
141
+ -21.931475339129513,
142
+ 64.13805657429226
143
+ ]
144
+ }
145
+ },
146
+ {
147
+ "type": "Feature",
148
+ "properties": {
149
+ "id": 10,
150
+ "name": "BS\u00cd",
151
+ "line": "red/green/orange/blue"
152
+ },
153
+ "geometry": {
154
+ "type": "Point",
155
+ "coordinates": [
156
+ -21.936523295813547,
157
+ 64.13882804616311
158
+ ]
159
+ }
160
+ },
161
+ {
162
+ "type": "Feature",
163
+ "properties": {
164
+ "id": 11,
165
+ "name": "H\u00cd",
166
+ "line": "red/green/orange/blue"
167
+ },
168
+ "geometry": {
169
+ "type": "Point",
170
+ "coordinates": [
171
+ -21.946941615174197,
172
+ 64.14227128171937
173
+ ]
174
+ }
175
+ },
176
+ {
177
+ "type": "Feature",
178
+ "properties": {
179
+ "id": 12,
180
+ "name": "L\u00e6kjartorg",
181
+ "line": "red/orange/blue"
182
+ },
183
+ "geometry": {
184
+ "type": "Point",
185
+ "coordinates": [
186
+ -21.935942965026882,
187
+ 64.1476421981253
188
+ ]
189
+ }
190
+ },
191
+ {
192
+ "type": "Feature",
193
+ "properties": {
194
+ "id": 13,
195
+ "name": "Egilsh\u00f6ll",
196
+ "line": "blue"
197
+ },
198
+ "geometry": {
199
+ "type": "Point",
200
+ "coordinates": [
201
+ -21.772510761581547,
202
+ 64.14712403232718
203
+ ]
204
+ }
205
+ },
206
+ {
207
+ "type": "Feature",
208
+ "properties": {
209
+ "id": 14,
210
+ "name": "Sp\u00f6ngin",
211
+ "line": "blue"
212
+ },
213
+ "geometry": {
214
+ "type": "Point",
215
+ "coordinates": [
216
+ -21.790860268359996,
217
+ 64.1500079640408
218
+ ]
219
+ }
220
+ },
221
+ {
222
+ "type": "Feature",
223
+ "properties": {
224
+ "id": 15,
225
+ "name": "Krossm\u00fdrartorg",
226
+ "line": "blue"
227
+ },
228
+ "geometry": {
229
+ "type": "Point",
230
+ "coordinates": [
231
+ -21.82503990937478,
232
+ 64.12874297721763
233
+ ]
234
+ }
235
+ },
236
+ {
237
+ "type": "Feature",
238
+ "properties": {
239
+ "id": 16,
240
+ "name": "Vogabygg\u00f0",
241
+ "line": "blue/green"
242
+ },
243
+ "geometry": {
244
+ "type": "Point",
245
+ "coordinates": [
246
+ -21.862918007704575,
247
+ 64.13059187917774
248
+ ]
249
+ }
250
+ },
251
+ {
252
+ "type": "Feature",
253
+ "properties": {
254
+ "id": 17,
255
+ "name": "Laugardalur",
256
+ "line": "blue"
257
+ },
258
+ "geometry": {
259
+ "type": "Point",
260
+ "coordinates": [
261
+ -21.883036141642386,
262
+ 64.14018811495119
263
+ ]
264
+ }
265
+ },
266
+ {
267
+ "type": "Feature",
268
+ "properties": {
269
+ "id": 18,
270
+ "name": "H\u00e1t\u00fan",
271
+ "line": "blue"
272
+ },
273
+ "geometry": {
274
+ "type": "Point",
275
+ "coordinates": [
276
+ -21.90352273957173,
277
+ 64.14235765845228
278
+ ]
279
+ }
280
+ },
281
+ {
282
+ "type": "Feature",
283
+ "properties": {
284
+ "id": 19,
285
+ "name": "Hlemmur",
286
+ "line": "blue"
287
+ },
288
+ "geometry": {
289
+ "type": "Point",
290
+ "coordinates": [
291
+ -21.91395027053217,
292
+ 64.14332184560375
293
+ ]
294
+ }
295
+ },
296
+ {
297
+ "type": "Feature",
298
+ "properties": {
299
+ "id": 20,
300
+ "name": "Fell",
301
+ "line": "green"
302
+ },
303
+ "geometry": {
304
+ "type": "Point",
305
+ "coordinates": [
306
+ -21.82860988556863,
307
+ 64.09968748530183
308
+ ]
309
+ }
310
+ },
311
+ {
312
+ "type": "Feature",
313
+ "properties": {
314
+ "id": 21,
315
+ "name": "Mj\u00f3dd",
316
+ "line": "green"
317
+ },
318
+ "geometry": {
319
+ "type": "Point",
320
+ "coordinates": [
321
+ -21.84187597151898,
322
+ 64.11236523874403
323
+ ]
324
+ }
325
+ },
326
+ {
327
+ "type": "Feature",
328
+ "properties": {
329
+ "id": 22,
330
+ "name": "Kringlan",
331
+ "line": "green/orange"
332
+ },
333
+ "geometry": {
334
+ "type": "Point",
335
+ "coordinates": [
336
+ -21.893217447015136,
337
+ 64.13263548006191
338
+ ]
339
+ }
340
+ },
341
+ {
342
+ "type": "Feature",
343
+ "properties": {
344
+ "id": 23,
345
+ "name": "Ei\u00f0istorg",
346
+ "line": "green"
347
+ },
348
+ "geometry": {
349
+ "type": "Point",
350
+ "coordinates": [
351
+ -21.98386493227512,
352
+ 64.15069114354586
353
+ ]
354
+ }
355
+ },
356
+ {
357
+ "type": "Feature",
358
+ "properties": {
359
+ "id": 24,
360
+ "name": "Grandi",
361
+ "line": "orange"
362
+ },
363
+ "geometry": {
364
+ "type": "Point",
365
+ "coordinates": [
366
+ -21.940719387431038,
367
+ 64.15632442556803
368
+ ]
369
+ }
370
+ },
371
+ {
372
+ "type": "Feature",
373
+ "properties": {
374
+ "id": 25,
375
+ "name": "\u00c1rb\u00e6r",
376
+ "line": "orange"
377
+ },
378
+ "geometry": {
379
+ "type": "Point",
380
+ "coordinates": [
381
+ -21.813202520438914,
382
+ 64.11963930460664
383
+ ]
384
+ }
385
+ },
386
+ {
387
+ "type": "Feature",
388
+ "properties": {
389
+ "id": 26,
390
+ "name": "Nor\u00f0lingaholt",
391
+ "line": "orange"
392
+ },
393
+ "geometry": {
394
+ "type": "Point",
395
+ "coordinates": [
396
+ -21.770696898108202,
397
+ 64.1036918935602
398
+ ]
399
+ }
400
+ }
401
+ ]
402
+ }
given_data/cityline_geojson_reprojected/cityline_2030.geojson ADDED
@@ -0,0 +1,447 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "FeatureCollection",
3
+ "name": "cityline_2030",
4
+ "crs": {
5
+ "type": "name",
6
+ "properties": {
7
+ "name": "urn:ogc:def:crs:EPSG::4326"
8
+ }
9
+ },
10
+ "features": [
11
+ {
12
+ "type": "Feature",
13
+ "properties": {
14
+ "id": 1,
15
+ "name": "Vatnsendi",
16
+ "line": "red"
17
+ },
18
+ "geometry": {
19
+ "type": "Point",
20
+ "coordinates": [
21
+ -21.809656537728184,
22
+ 64.08563878170261
23
+ ]
24
+ }
25
+ },
26
+ {
27
+ "type": "Feature",
28
+ "properties": {
29
+ "id": 2,
30
+ "name": "Salir",
31
+ "line": "red/green"
32
+ },
33
+ "geometry": {
34
+ "type": "Point",
35
+ "coordinates": [
36
+ -21.84374406274503,
37
+ 64.08960383362172
38
+ ]
39
+ }
40
+ },
41
+ {
42
+ "type": "Feature",
43
+ "properties": {
44
+ "id": 3,
45
+ "name": "Lindir",
46
+ "line": "red"
47
+ },
48
+ "geometry": {
49
+ "type": "Point",
50
+ "coordinates": [
51
+ -21.870826166122857,
52
+ 64.09886013163094
53
+ ]
54
+ }
55
+ },
56
+ {
57
+ "type": "Feature",
58
+ "properties": {
59
+ "id": 4,
60
+ "name": "Sm\u00e1ralind",
61
+ "line": "red"
62
+ },
63
+ "geometry": {
64
+ "type": "Point",
65
+ "coordinates": [
66
+ -21.88593318977579,
67
+ 64.10256178882854
68
+ ]
69
+ }
70
+ },
71
+ {
72
+ "type": "Feature",
73
+ "properties": {
74
+ "id": 5,
75
+ "name": "Hamraborg",
76
+ "line": "red/purple"
77
+ },
78
+ "geometry": {
79
+ "type": "Point",
80
+ "coordinates": [
81
+ -21.90837264686027,
82
+ 64.1110898195906
83
+ ]
84
+ }
85
+ },
86
+ {
87
+ "type": "Feature",
88
+ "properties": {
89
+ "id": 6,
90
+ "name": "Sundlaug K\u00f3pavogs",
91
+ "line": "red"
92
+ },
93
+ "geometry": {
94
+ "type": "Point",
95
+ "coordinates": [
96
+ -21.91850540662748,
97
+ 64.11118634836693
98
+ ]
99
+ }
100
+ },
101
+ {
102
+ "type": "Feature",
103
+ "properties": {
104
+ "id": 7,
105
+ "name": "Bakkabraut",
106
+ "line": "red"
107
+ },
108
+ "geometry": {
109
+ "type": "Point",
110
+ "coordinates": [
111
+ -21.939618393342432,
112
+ 64.1170418007092
113
+ ]
114
+ }
115
+ },
116
+ {
117
+ "type": "Feature",
118
+ "properties": {
119
+ "id": 8,
120
+ "name": "HR",
121
+ "line": "red"
122
+ },
123
+ "geometry": {
124
+ "type": "Point",
125
+ "coordinates": [
126
+ -21.931843803121048,
127
+ 64.12238141279147
128
+ ]
129
+ }
130
+ },
131
+ {
132
+ "type": "Feature",
133
+ "properties": {
134
+ "id": 9,
135
+ "name": "Landsp\u00edtalinn",
136
+ "line": "red/green/orange"
137
+ },
138
+ "geometry": {
139
+ "type": "Point",
140
+ "coordinates": [
141
+ -21.931475339129513,
142
+ 64.13805657429226
143
+ ]
144
+ }
145
+ },
146
+ {
147
+ "type": "Feature",
148
+ "properties": {
149
+ "id": 10,
150
+ "name": "BS\u00cd",
151
+ "line": "red/green/orange/blue/purple"
152
+ },
153
+ "geometry": {
154
+ "type": "Point",
155
+ "coordinates": [
156
+ -21.936523295813547,
157
+ 64.13882804616311
158
+ ]
159
+ }
160
+ },
161
+ {
162
+ "type": "Feature",
163
+ "properties": {
164
+ "id": 11,
165
+ "name": "H\u00cd",
166
+ "line": "red/green/orange/blue/purple"
167
+ },
168
+ "geometry": {
169
+ "type": "Point",
170
+ "coordinates": [
171
+ -21.946941615174197,
172
+ 64.14227128171937
173
+ ]
174
+ }
175
+ },
176
+ {
177
+ "type": "Feature",
178
+ "properties": {
179
+ "id": 12,
180
+ "name": "L\u00e6kjartorg",
181
+ "line": "red/orange/blue/purple"
182
+ },
183
+ "geometry": {
184
+ "type": "Point",
185
+ "coordinates": [
186
+ -21.935942965026882,
187
+ 64.1476421981253
188
+ ]
189
+ }
190
+ },
191
+ {
192
+ "type": "Feature",
193
+ "properties": {
194
+ "id": 13,
195
+ "name": "Egilsh\u00f6ll",
196
+ "line": "blue"
197
+ },
198
+ "geometry": {
199
+ "type": "Point",
200
+ "coordinates": [
201
+ -21.772510761581547,
202
+ 64.14712403232718
203
+ ]
204
+ }
205
+ },
206
+ {
207
+ "type": "Feature",
208
+ "properties": {
209
+ "id": 14,
210
+ "name": "Sp\u00f6ngin",
211
+ "line": "blue"
212
+ },
213
+ "geometry": {
214
+ "type": "Point",
215
+ "coordinates": [
216
+ -21.790860268359996,
217
+ 64.1500079640408
218
+ ]
219
+ }
220
+ },
221
+ {
222
+ "type": "Feature",
223
+ "properties": {
224
+ "id": 15,
225
+ "name": "Krossm\u00fdrartorg",
226
+ "line": "blue"
227
+ },
228
+ "geometry": {
229
+ "type": "Point",
230
+ "coordinates": [
231
+ -21.82503990937478,
232
+ 64.12874297721763
233
+ ]
234
+ }
235
+ },
236
+ {
237
+ "type": "Feature",
238
+ "properties": {
239
+ "id": 16,
240
+ "name": "Vogabygg\u00f0",
241
+ "line": "blue/green"
242
+ },
243
+ "geometry": {
244
+ "type": "Point",
245
+ "coordinates": [
246
+ -21.862918007704575,
247
+ 64.13059187917774
248
+ ]
249
+ }
250
+ },
251
+ {
252
+ "type": "Feature",
253
+ "properties": {
254
+ "id": 17,
255
+ "name": "Laugardalur",
256
+ "line": "blue"
257
+ },
258
+ "geometry": {
259
+ "type": "Point",
260
+ "coordinates": [
261
+ -21.883036141642386,
262
+ 64.14018811495119
263
+ ]
264
+ }
265
+ },
266
+ {
267
+ "type": "Feature",
268
+ "properties": {
269
+ "id": 18,
270
+ "name": "H\u00e1t\u00fan",
271
+ "line": "blue/purple"
272
+ },
273
+ "geometry": {
274
+ "type": "Point",
275
+ "coordinates": [
276
+ -21.90352273957173,
277
+ 64.14235765845228
278
+ ]
279
+ }
280
+ },
281
+ {
282
+ "type": "Feature",
283
+ "properties": {
284
+ "id": 19,
285
+ "name": "Hlemmur",
286
+ "line": "blue/purple"
287
+ },
288
+ "geometry": {
289
+ "type": "Point",
290
+ "coordinates": [
291
+ -21.91395027053217,
292
+ 64.14332184560375
293
+ ]
294
+ }
295
+ },
296
+ {
297
+ "type": "Feature",
298
+ "properties": {
299
+ "id": 20,
300
+ "name": "Fell",
301
+ "line": "green"
302
+ },
303
+ "geometry": {
304
+ "type": "Point",
305
+ "coordinates": [
306
+ -21.82860988556863,
307
+ 64.09968748530183
308
+ ]
309
+ }
310
+ },
311
+ {
312
+ "type": "Feature",
313
+ "properties": {
314
+ "id": 21,
315
+ "name": "Mj\u00f3dd",
316
+ "line": "green"
317
+ },
318
+ "geometry": {
319
+ "type": "Point",
320
+ "coordinates": [
321
+ -21.84187597151898,
322
+ 64.11236523874403
323
+ ]
324
+ }
325
+ },
326
+ {
327
+ "type": "Feature",
328
+ "properties": {
329
+ "id": 22,
330
+ "name": "Kringlan",
331
+ "line": "green/orange/purple"
332
+ },
333
+ "geometry": {
334
+ "type": "Point",
335
+ "coordinates": [
336
+ -21.893217447015136,
337
+ 64.13263548006191
338
+ ]
339
+ }
340
+ },
341
+ {
342
+ "type": "Feature",
343
+ "properties": {
344
+ "id": 23,
345
+ "name": "Ei\u00f0istorg",
346
+ "line": "green"
347
+ },
348
+ "geometry": {
349
+ "type": "Point",
350
+ "coordinates": [
351
+ -21.98386493227512,
352
+ 64.15069114354586
353
+ ]
354
+ }
355
+ },
356
+ {
357
+ "type": "Feature",
358
+ "properties": {
359
+ "id": 24,
360
+ "name": "Grandi",
361
+ "line": "orange"
362
+ },
363
+ "geometry": {
364
+ "type": "Point",
365
+ "coordinates": [
366
+ -21.940719387431038,
367
+ 64.15632442556803
368
+ ]
369
+ }
370
+ },
371
+ {
372
+ "type": "Feature",
373
+ "properties": {
374
+ "id": 25,
375
+ "name": "\u00c1rb\u00e6r",
376
+ "line": "orange"
377
+ },
378
+ "geometry": {
379
+ "type": "Point",
380
+ "coordinates": [
381
+ -21.813202520438914,
382
+ 64.11963930460664
383
+ ]
384
+ }
385
+ },
386
+ {
387
+ "type": "Feature",
388
+ "properties": {
389
+ "id": 26,
390
+ "name": "Nor\u00f0lingaholt",
391
+ "line": "orange"
392
+ },
393
+ "geometry": {
394
+ "type": "Point",
395
+ "coordinates": [
396
+ -21.770696898108202,
397
+ 64.1036918935602
398
+ ]
399
+ }
400
+ },
401
+ {
402
+ "type": "Feature",
403
+ "properties": {
404
+ "id": 27,
405
+ "name": "Vellir",
406
+ "line": "purple"
407
+ },
408
+ "geometry": {
409
+ "type": "Point",
410
+ "coordinates": [
411
+ -21.97529981555762,
412
+ 64.0526503758058
413
+ ]
414
+ }
415
+ },
416
+ {
417
+ "type": "Feature",
418
+ "properties": {
419
+ "id": 28,
420
+ "name": "Fj\u00f6r\u00f0ur",
421
+ "line": "purple"
422
+ },
423
+ "geometry": {
424
+ "type": "Point",
425
+ "coordinates": [
426
+ -21.957825008461615,
427
+ 64.06806737016673
428
+ ]
429
+ }
430
+ },
431
+ {
432
+ "type": "Feature",
433
+ "properties": {
434
+ "id": 29,
435
+ "name": "Gar\u00f0ab\u00e6r",
436
+ "line": "purple"
437
+ },
438
+ "geometry": {
439
+ "type": "Point",
440
+ "coordinates": [
441
+ -21.929914541916723,
442
+ 64.09007993076813
443
+ ]
444
+ }
445
+ }
446
+ ]
447
+ }
requirements.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ pyproj
2
+ geopandas
3
+ pandas
4
+ matplotlib