Difference between revisions of "CSC220 Homework 8 2010"
(→Option 3) |
|||
Line 18: | Line 18: | ||
* Write a Processing program using Eitan M.'s example, and the ones available on the Class Web page illustrating how to access Web pages (php pages) to put together a Processing applet that displays '''two''' different KML files. The selection of the KML files is done via the URL request, inside the Processing program. The way I recommend implementing this is to append a request at the end of the URL of your php page of the form "?Id=3,4". In this particular example, it would indicate that the php program has to return the contents (filtered or not) of the KML files with Ids 3 and 4. | * Write a Processing program using Eitan M.'s example, and the ones available on the Class Web page illustrating how to access Web pages (php pages) to put together a Processing applet that displays '''two''' different KML files. The selection of the KML files is done via the URL request, inside the Processing program. The way I recommend implementing this is to append a request at the end of the URL of your php page of the form "?Id=3,4". In this particular example, it would indicate that the php program has to return the contents (filtered or not) of the KML files with Ids 3 and 4. | ||
− | * Call your Processing program: hw8a.pde | + | * Call your Processing program: '''hw8a.pde''' |
* Call your php program: '''pickKml.php''' | * Call your php program: '''pickKml.php''' | ||
* Call your page containing the Processing applet: '''displayKml.php''' | * Call your page containing the Processing applet: '''displayKml.php''' | ||
Line 25: | Line 25: | ||
* Write a Processing applet that contains the same elements (box, buttons, widgets) as the form you created in a previous assignment, where you specify which KML file should be selected depending on various parameters. In this case you need to display only one KML file. | * Write a Processing applet that contains the same elements (box, buttons, widgets) as the form you created in a previous assignment, where you specify which KML file should be selected depending on various parameters. In this case you need to display only one KML file. | ||
− | * Call your Processing program: hw8b.pde | + | * Call your Processing program: '''hw8b.pde''' |
* Call your php program: '''pickKml.php''' | * Call your php program: '''pickKml.php''' | ||
* Call your page containing the Processing applet: '''displayKml.php''' | * Call your page containing the Processing applet: '''displayKml.php''' | ||
Line 33: | Line 33: | ||
* Write a Processing program that displays a Map of Smith of your choosing, and align one of the KML traces on it. You do not have to select the KML from the database; hard coding it in your code is acceptable. This option requires figuring out the exact longitude and latitude of several key points on campus, so that displaying a trace from a KML fits "right". | * Write a Processing program that displays a Map of Smith of your choosing, and align one of the KML traces on it. You do not have to select the KML from the database; hard coding it in your code is acceptable. This option requires figuring out the exact longitude and latitude of several key points on campus, so that displaying a trace from a KML fits "right". | ||
− | * Call your Processing program: hw8c.pde | + | * Call your Processing program: '''hw8c.pde''' |
* Call your page containing the Processing applet: '''displayMap.php''' | * Call your page containing the Processing applet: '''displayMap.php''' | ||
+ | |||
+ | =Submission= | ||
+ | |||
+ | * Submit '''all''' the files requires for your homework to work. | ||
+ | |||
+ | submit hw8 ''filename'' | ||
+ | |||
+ | |||
+ | <br /> | ||
+ | |||
+ | <br /> | ||
+ | |||
+ | <br /> | ||
+ | |||
+ | <br /> | ||
+ | |||
+ | <br /> | ||
+ | |||
+ | <br /> | ||
+ | |||
+ | <br /> | ||
+ | |||
+ | <br /> | ||
+ | [[Category:CSC231]][[Category:Homework]] |
Revision as of 19:29, 12 November 2010
--D. Thiebaut 00:02, 13 November 2010 (UTC)
Contents
This program is due on Friday evening, 11/19/10, at midnight. You have several options that you can work on. Just pick one and work on it, and submit a solution for it. You can work in pairs.
Option 1
- Write a Processing program using Eitan M.'s example, and the ones available on the Class Web page illustrating how to access Web pages (php pages) to put together a Processing applet that displays two different KML files. The selection of the KML files is done via the URL request, inside the Processing program. The way I recommend implementing this is to append a request at the end of the URL of your php page of the form "?Id=3,4". In this particular example, it would indicate that the php program has to return the contents (filtered or not) of the KML files with Ids 3 and 4.
- Call your Processing program: hw8a.pde
- Call your php program: pickKml.php
- Call your page containing the Processing applet: displayKml.php
Option 2
- Write a Processing applet that contains the same elements (box, buttons, widgets) as the form you created in a previous assignment, where you specify which KML file should be selected depending on various parameters. In this case you need to display only one KML file.
- Call your Processing program: hw8b.pde
- Call your php program: pickKml.php
- Call your page containing the Processing applet: displayKml.php
Option 3
- Write a Processing program that displays a Map of Smith of your choosing, and align one of the KML traces on it. You do not have to select the KML from the database; hard coding it in your code is acceptable. This option requires figuring out the exact longitude and latitude of several key points on campus, so that displaying a trace from a KML fits "right".
- Call your Processing program: hw8c.pde
- Call your page containing the Processing applet: displayMap.php
Submission
- Submit all the files requires for your homework to work.
submit hw8 filename