Difference between revisions of "CSC111 Lab 11 2015b"
(→A Map Digitizer App) |
|||
Line 7: | Line 7: | ||
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 ''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. | 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. | ||
+ | <br /> | ||
+ | The due date for submitting the lab is, as usual, Friday at 11:55 p.m. (11/20/15). | ||
</bluebox> | </bluebox> | ||
− | + | <br /> | |
+ | __TOC__ | ||
+ | <br /> | ||
=Lab Assignment= | =Lab Assignment= | ||
− | |||
<br /> | <br /> | ||
Your task today is to create a Python tool that: | 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 | + | :# 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 image to your computer. |
− | :# The tool creates one or several buttons | + | :# The tool creates a user interface (UI) with one or several buttons. The buttons will allow the user to clearly define the action of digitizing an element of the map. You are free to define how your buttons 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 | :# When the digitization starts, your tool will | ||
− | ::# prompt the user for the name of the map element you are about to digitize ( | + | ::# prompt the user for the name of the map element you are about to digitize (e.g. "Tree", "Ford Hall"), and |
::# allow the you and your partner to record the coordinates of several points in a list. | ::# 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. | :# 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. | ||
Line 24: | Line 27: | ||
=Moodle Submission= | =Moodle Submission= | ||
<br /> | <br /> | ||
− | * Submit your digitizer tool to Moodle. | + | * Submit your digitizer tool to Moodle. |
− | * You will not be able to evaluate | + | * You will not be able to evaluate the tool, as it uses the graphics library, which Moodle does not know how to handle. But make sure your tool can be run if needed. Incomplete programs, or programs that crash will be given a failing grade. |
− | * Submit a screen copy of your | + | * Submit a screen copy of your CSV file. |
<br /> | <br /> | ||
<br /> | <br /> |
Revision as of 11:59, 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.
The due date for submitting the lab is, as usual, Friday at 11:55 p.m. (11/20/15).
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 image to your computer.
- The tool creates a user interface (UI) with one or several buttons. The buttons will allow the user to clearly define the action of digitizing an element of the map. You are free to define how your buttons 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 (e.g. "Tree", "Ford Hall"), 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 the tool, as it uses the graphics library, which Moodle does not know how to handle. But make sure your tool can be run if needed. Incomplete programs, or programs that crash will be given a failing grade.
- Submit a screen copy of your CSV file.