Assignment 03 - CS 767
United States Population

Due: Due 01-Oct-2007 By 5:00PM EST

  1. Email the resulting single kmz file to kurt@ccom.unh.edu
  2. Write a program in C, C++, Java, Python, or Perl to create a single kml file
    1. Your code should be well written/readable with appropriate use of functions and/or classes
    2. Include comments for each function and at the top of your code. At the top of the program include your name, email address, and at least one paragraph describing your program using correct grammar and spelling.
    3. You are not required to use a XML library to generate the KML.
  3. Your KML file should be documented with comments.
    1. At the top, give your name, email address, and reference the program that created the KML file.
    2. These comments must be generated by the program that you wrote.
    3. No hand editing the KML.
    4. The KML must be cleanly indented and formatted.
  4. Use the population table and geometry file in http://vislab-ccom.unh.edu/~schwehr/Classes/2007VisCourse/assignments/03-data/
    1. Sources:
    2. Population data: http://en.wikipedia.org/w/index.php?title=List_of_U.S._states_by_population&oldid=157790702
    3. State boundaries are derived from: http://www.census.gov/geo/cob/bdy/st/st00ascii/st99_d00_ascii.zip
  5. Make each state an extruded polygon using the shapes in the geometry file
    1. Grade the opacity of the polygons from 100% for the maximum population to 50% for the minimum population
    2. Make the height proportional to the population with the maximum population at an elevation somewhere between 1000-10000m.
    3. Make sure to include all polygons for each state. For example, Hawaii has more than one polygon.
  6. Add a ScreenOverlay key/legend.
    1. Create a color gradient for your populations with red at the maximum and blue at the minimum population.
    2. Present a key for your population showing what color corresponds to what population.
    3. Show the at least the minimum, maximum, and one intermediate value in your key.
  7. Place an icon/placemark at the top of each state polygon. In that placemark, put a table with all of the information in the population table row for that state.
  8. Submit a kml file named <First>_<Last>_us_population.kml