Difference between revisions of "CSC111 Lab 11 2015b"
(→A Map Digitizer App) |
|||
Line 4: | Line 4: | ||
=A Map Digitizer App= | =A Map Digitizer App= | ||
<bluebox> | <bluebox> | ||
− | The purpose of this lab is to crowd-source a CSV file that will be used in the homework to create a color-coded map of Smith College | + | The purpose of this lab is to crowd-source a CSV file that will be used in the homework to create a color-coded map of the Smith College buildings, along with |
other map elements of your choice. | other map elements of your choice. | ||
− | We will view the program that you create in this lab as a | + | We will view the program that you create in this lab as a ''tool'' used to create data in a well-defined format. The program you will create in the homework will be more sophisticated, and we will refer to it as an ''application'', which will deserve closer attention to details. |
</bluebox> | </bluebox> | ||
Revision as of 11:49, 15 November 2015
--D. Thiebaut (talk) 10:50, 14 November 2015 (EST)
A Map Digitizer App
The purpose of this lab is to crowd-source a CSV file that will be used in the homework to create a color-coded map of the Smith College buildings, along with other map elements of your choice. We will view the program that you create in this lab as a tool used to create data in a well-defined format. The program you will create in the homework will be more sophisticated, and we will refer to it as an application, which will deserve closer attention to details.
Lab Assignment
Your task today is to create a Python tool that:
- loads up a gif image representing the Smith College campus. The map can be found at the bottom of the class page, with the weekly schedule for the class. Use the cropped gif image. You’ll have to click on it twice before it appears by itself in your browser, at which point you can save the map to your computer.
- The tool creates one or several buttons that will allow the user to digitize elements of the map. You are free to define how your buttons should operate. A possible option is to have a ‘’Start’’ and ‘’Stop’’ button, but you may want to define your UI differently.
- When the digitization starts, your tool will
- prompt the user for the name of the map element you are about to digitize (input()), and
- allow the you and your partner to record the coordinates of several points in a list.
- Upon indicating to your tool that the collection of the given item is over, it will store each list of points in a CSV file.
- The format of your CSV file should be the format that we will have selected in class (Monday/Wednesday lectures)
- Once you have recorded a sufficient number of map elements, stop the tool, and copy/paste the contents of your CSV file to the shared Google doc we’ll use for this LAM.
Moodle Submission
- Submit your digitizer tool to Moodle.
- You will not be able to evaluate it, as it uses the graphics library, which Moodle does not know how to handle.
- Submit a screen copy of your tool after it has been used to digitize a few items.