Skip to content

Latest commit

 

History

History
67 lines (36 loc) · 3.27 KB

README.md

File metadata and controls

67 lines (36 loc) · 3.27 KB

Mapping Available City, County and State Geodata in the Big Ten Academic Alliance Region

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.

Live Demo

How to use

  1. Edit allStates.csv, allCities.csv and allCounties.csv
  2. Run Python Scripts to produce activeStates.topo.json, activeCounties.topo.json, activeCities.jsonand legend.json
  3. Push new changes to GitHub

Environment Setup

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:

What is TopoJSON?

TopoJSON is an extension of GeoJSON storing geometry information more efficiently. Here are some main differences:

  1. If features share the same border, TopoJSON will eliminate the redundancy and only display the boundary once.
  2. Implementing arc, shared line segment, to compress geometry properties and
  3. Quantizing delta-encoding for integer coordinates

Data folder

  • CSV files - allCities.csv & allCounties.csv & allStates.csv

    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.

  • JSON - counties.json & states.json

    It is formatted as GeoJSON to encode geographic data structures for all states and counties in the Big Ten Academic Alliance Region.

Python Scripts

  • harvest.ipynb [recommended]

    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

  • harvest.py