changed geojson structure and map should now work
Browse files- main.py +2 -2
- output/map.ipynb +2 -2
main.py
CHANGED
@@ -9,9 +9,9 @@ def row_to_feature(row):
|
|
9 |
feature = {
|
10 |
"id": row["id"],
|
11 |
"type": "Feature",
|
12 |
-
"properties": {"Confidence_score": row["Confidence_score"]},
|
13 |
"geometry": {"type": "Polygon", "coordinates": [row["coordinates"]]},
|
14 |
-
|
15 |
}
|
16 |
return feature
|
17 |
# [[first guess, prob],[second guess, prob],[third guess, prob]]
|
|
|
9 |
feature = {
|
10 |
"id": row["id"],
|
11 |
"type": "Feature",
|
12 |
+
"properties": {"Confidence_score": row["Confidence_score"], "species": row['species']},
|
13 |
"geometry": {"type": "Polygon", "coordinates": [row["coordinates"]]},
|
14 |
+
|
15 |
}
|
16 |
return feature
|
17 |
# [[first guess, prob],[second guess, prob],[third guess, prob]]
|
output/map.ipynb
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d5b6cfb7ba3558833219807f340e1ed38f501f187368c2b0f500bcec3859bdd8
|
3 |
+
size 4402
|