GEOGRAPHY 3530

advertisement
Mapping in the Cloud
Name:_______________________
Final Exam
100 pts
1. Two points are 5.7” apart on a 1:24000 map. What is the ground distance in miles and KM?
2. Two points are 5.7” apart on a 1:24,000 map. On another map, they are 4.4” apart. What is the scale of this map?
3. A field measure 5.7” by 4.4” on a 1:24,000 map. What is the area in: (3 pts each; 9 total)
a) square miles:
b) acres:
c) square KM:
4. Explain this diagram.
5. Explain this diagram.
1
6. The following lines of code create a KML layer based on a GeoRSS feed from flickr. Explain what this means.
var georssLayer = new google.maps.KmlLayer('http://api.flickr.com/services/feeds/geo/?g=322338@N20&lang=enus&format=feed-georss');
georssLayer.setMap(map);
7. Explain the diagram on the right.
8. Explain what is being represented on this map.
2
9. Explain how the shadings in this map are calculated.
10. There are seven pixels that meet the criteria of single family housing and a 100-year flood. How many commercial land-use
and 100-year flood pixels can you find? Indicate their position.
11. What is the value of z in the following example if the distances are cubed instead of squared?
3
12. Explain the fields and tables in this database. How are the tables “related.”
City
Omaha
Atlanta
Lincoln
Des Moines
Memphis
Minneapolis
Washington DC
Cincinnati
New York City
Salt Lake City
Chicago
Milwaukee
Cancun
Latitude
41.25
33.755
40.809722
41.590833
35.1175
44.95
38.895111
39.133333
40.716667
40.75
41.881944
43.052222
21.160556
City_Name
Omaha
Atlanta
Lincoln
Des Moines
Memphis
Minneapolis
Washington DC
Cincinnati
New York City
Salt Lake City
Chicago
Milwaukee
Cancun
Longitude
-96
-84.39
-96.675278
-93.620833
-89.971111
-93.2
-77.036667
-84.5
-74
-111.883333
-87.627778
-87.955833
-86.8475
Airport
OMA
ATL
LNK
DSM
MEM
MIC
WAS
CVG
JFK
SLC
ORD
MKE
CUN
13. Explain the query performed by these lines of PHP code.
//connection to database and querying
<?php
include 'mysql_connect.php';
$table
= "us_capitals";
$sql = "SELECT name, usstate, population, Y(location), X(location) FROM $table WHERE
X(location) > 41.25 AND population < 500000";
$res = mysql_query($sql);
14. Given that mobile mapping needs at least 3G speeds, what does this map indicate about the future of Internet-based mobile
mapping? (10 pts)
4
15. Insert a descriptive comment in each of the four places.
//
//
//
//
popdata = new Array
(33185,6931,372,783,492,5668,11132,2185,3354,43954,7341,8595,25963,8819,3811,5934,9865,65
64,10113,9660,11242,20587,8466,25018,1958,6170,36171,492003,2109,6259,3348,2729,5003,2336
5,1995,1790,1978,660,2454,55555,9490,3446,1029,2926,10610,756,6736,7874,4683,6701,8250,89
2,3710,8812,267135,35865,749,656,497,35279,7954,5171,3705,7247,4650,15747,2804,2992,9442,
7564,31962,5349,10865,8656,1544,14155,142637,20344,36546,16835,5571,3083,1403,6570,5317,6
29,7273,4373,20044,9196,3701,823,14502)
//
//
//
//
var min=100000000;
var max=-100000000;
for (var i = 0; i < 93; i++) {
//
//
//
//
popdata[i] = Math.log(popdata[i])
if (popdata[i] < min) { min=popdata[i] }
if (popdata[i] > max) { max=popdata[i] }
}
5
//
//
//
//
var range = max-min
// compute an opacity as a range of the data values
opacities = new Array ()
for (var i = 0; i < 93; i++) {
opacities[i] = 1-((max - popdata[i]) / range)
}
16. Insert a descriptive comment in each of the three places.
google.maps.event.addListener(map, 'click', function() {
infowindow.close();
});
//
//
//
//
//
downloadUrl("xample.xml", function(doc) {
var xmlDoc = xmlParse(doc);
var markers = xmlDoc.documentElement.getElementsByTagName("marker");
for (var i = 0; i < markers.length; i++) {
//
//
//
//
//
var lat = parseFloat(markers[i].getAttribute("lat"));
var lng = parseFloat(markers[i].getAttribute("lng"));
var point = new google.maps.LatLng(lat,lng);
var html = markers[i].getAttribute("html");
var label = markers[i].getAttribute("label");
//
//
//
//
//
var marker = createMarker(point,label,html);
}
//
//
//
//
//
document.getElementById("side_bar").innerHTML = side_bar_html;
});
}
6
Download