The primary purpose of this interactive map is to show what states, counties and cities BTAA Geoportal is pulling data from. The Python scripts are used to keep track of open data portals along with the number of total records and transform metadata file formats between CSV and JSON.
- Edit
allStates.csv
,allCities.csv
andallCounties.csv
- Run Python Scripts to produce
activeStates.topo.json
,activeCounties.topo.json
,activeCities.json
andlegend.json
- Push new changes to GitHub
We We will be using Anaconda 3 to edit and run scripts. Information on Anaconda installation can be found here. All packages available for 64-bit Windows with Python 3.7 in the Anaconda can be found here. Please note that all scripts are running on Python 3 (3.7.6).
Here are all dependencies needed to be installed properly:
-
geopandas [Version: 0.7.0]
-
shapely [Version: 1.7.0]
-
requests [Version: 2.22.0]
-
numpy [Version: 1.18.1]
-
folium [Version: 0.10.1]
-
mapclassify [Version: 2.4.2]
-
seaborn [Version: 0.10.0]
-
topojson [Version: 1.0]
TopoJSON is an extension of GeoJSON storing geometry information more efficiently. Here are some main differences:
- If features share the same border, TopoJSON will eliminate the redundancy and only display the boundary once.
- Implementing arc, shared line segment, to compress geometry properties and
- Quantizing delta-encoding for integer coordinates
-
These spreadsheets (Google Drive) require regular maintenance. The schema borrows many fields from GeoBlacklight Metadata Elements, Version 1.0. The main difference is that allCities.csv includes
bounding Box
used to calculate the coordinates of city position. -
It is formatted as GeoJSON to encode geographic data structures for all states and counties in the Big Ten Academic Alliance Region.
-
This script should be opened with Anaconda3 Jupyter Notebook (running on Python 3). It will produce 4 json files stored in json folder. Reference comments for further explanation.
1. activeCities.json
2. activeCounties.topo.json
3. activeStates.topo.json
4. legend.json