Skip to content

Commit f36ec77

Browse files
committed
Updating project to version 0.2. Introduces 1) ability to add photos to sightings; and 2) choropleths.
1 parent 812ff07 commit f36ec77

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+27110
-0
lines changed

.idea/.gitignore

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/profiles_settings.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/src.iml

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
eclipse.preferences.version=1
2+
encoding/form_DateTotals.py=utf-8
3+
encoding/form_Families.py=utf-8
4+
encoding/form_Individual.py=utf-8
5+
encoding/form_Lists.py=utf-8
6+
encoding/form_MDIMain.py=utf-8
7+
encoding/form_Photos.py=utf-8

2DigJson.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
from collections import defaultdict
2+
import json
3+
import csv
4+
5+
codeDict = defaultdict()
6+
7+
with open('iso_codes.csv', mode='r') as codeFile:
8+
csv_reader = csv.DictReader(codeFile)
9+
for row in csv_reader:
10+
codeDict[row["3Digit"]] = row["2Digit"]
11+
12+
13+
world_geo = json.loads(open('world_geo.json').read())
14+
15+
for f in world_geo["features"]:
16+
if f["properties"]["GID_0"] in codeDict.keys():
17+
f["id"] = codeDict[f["properties"]["GID_0"]]
18+
else:
19+
print(f["properties"]["GID_0"] + " NOT CONVERTED")
20+
21+
22+

YearBird_v.3_20191009.zip

919 KB
Binary file not shown.

YearBird_v3_20191019.zip

1.57 MB
Binary file not shown.

0 commit comments

Comments
 (0)