Skip to content

Instantly share code, notes, and snippets.

@sduckett
Last active June 10, 2017 16:38
Show Gist options
  • Save sduckett/f907c9143e53f219d0992320dab40730 to your computer and use it in GitHub Desktop.
Save sduckett/f907c9143e53f219d0992320dab40730 to your computer and use it in GitHub Desktop.
Some interesting geospatial data sets

Exploring Geospatial Data with Python and QGIS

State Boundaries

There is a shapefile describing State Boundaries of the United States. Load it and see if you can answer the following questions.

  1. In what order were the States of the United States admitted to the union?
  2. How much land area is contained within the boundaries of the United States?
  3. What is the mapping of name to state fips?

With QGIS

What does it look like to load the datasets into QGIS? Try to color polygons based on some category.

With Python & OGR

How can you explore the data with OGR? What are the layers, features, etc? What’s the jargon for talking about geospatial data with this library?

2008 Presidential Election

There is a data set containing 2008 Presidential General Election, County Results. What counties, in which states, were won by the Republican candidate? Which counties carried the Democratic candidate? Did any 3rd-party candidate carry a county?

2012 Presidential Election

In addition to the 2008 results, we also have Presidential General Election results for 2012. Which states carried the Democratic candidate, and which carried the Republican candidate?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment