Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences...
-
Upload
simon-copeland -
Category
Documents
-
view
216 -
download
0
Transcript of Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences...
![Page 1: Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences University of Arizona.](https://reader035.fdocuments.in/reader035/viewer/2022062410/5697bfbf1a28abf838ca3221/html5/thumbnails/1.jpg)
Data Acquisition using Mashup and 3-D Technology
Matt RahrCollege of Agriculture and Life Sciences
University of Arizona
![Page 2: Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences University of Arizona.](https://reader035.fdocuments.in/reader035/viewer/2022062410/5697bfbf1a28abf838ca3221/html5/thumbnails/2.jpg)
Let’s Do It!
A “hybrid” website or web application Content from multiple sources Creates a completely new service
What is a Mashup?
+
Your Data
![Page 3: Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences University of Arizona.](https://reader035.fdocuments.in/reader035/viewer/2022062410/5697bfbf1a28abf838ca3221/html5/thumbnails/3.jpg)
Characteristics of Mashups
Open source Multipurpose Can be used by communities to
share or collect information Can be interactive = “pin-maps”
e.g. Katrina They are not GIS, but could become
so…
![Page 4: Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences University of Arizona.](https://reader035.fdocuments.in/reader035/viewer/2022062410/5697bfbf1a28abf838ca3221/html5/thumbnails/4.jpg)
&
Independent Site
HousingMaps.com
Craigslistdb
Mash Data Together
Mashup Example
![Page 5: Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences University of Arizona.](https://reader035.fdocuments.in/reader035/viewer/2022062410/5697bfbf1a28abf838ca3221/html5/thumbnails/5.jpg)
Components of a Mashup
Data – you normally supply some of this
The API is published by Google, Microsoft, Yahoo – you tie your data to their maps/aerials
Web browser is the client interface
![Page 6: Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences University of Arizona.](https://reader035.fdocuments.in/reader035/viewer/2022062410/5697bfbf1a28abf838ca3221/html5/thumbnails/6.jpg)
Using the API
![Page 7: Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences University of Arizona.](https://reader035.fdocuments.in/reader035/viewer/2022062410/5697bfbf1a28abf838ca3221/html5/thumbnails/7.jpg)
Building a Mashup - using the API
![Page 8: Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences University of Arizona.](https://reader035.fdocuments.in/reader035/viewer/2022062410/5697bfbf1a28abf838ca3221/html5/thumbnails/8.jpg)
Getting a key
Obtained at http://www.google.com/apis/maps/signup.html
Terms of use… Unlimited hits 50k geocode requests Google reserves the right to include advertising.
Must be freely accessible to end-user.
Must have a Google Account (@gmail) Must provide domain name… http://
![Page 9: Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences University of Arizona.](https://reader035.fdocuments.in/reader035/viewer/2022062410/5697bfbf1a28abf838ca3221/html5/thumbnails/9.jpg)
Google Conditions (others do not have these, or these may change)
![Page 10: Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences University of Arizona.](https://reader035.fdocuments.in/reader035/viewer/2022062410/5697bfbf1a28abf838ca3221/html5/thumbnails/10.jpg)
You get a key randomly generated for this domain – all your pages with maps must be at this file level.
![Page 11: Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences University of Arizona.](https://reader035.fdocuments.in/reader035/viewer/2022062410/5697bfbf1a28abf838ca3221/html5/thumbnails/11.jpg)
API Steps
Create <div>’s = empty boxes where the content will go, e.g. a map or data
<div id="map" style="width: 500px; height: 300px"></div>
Use Javascript functions to “fill” the divfunction load(){ var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(37.4419, -122.1419), 13);}
![Page 12: Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences University of Arizona.](https://reader035.fdocuments.in/reader035/viewer/2022062410/5697bfbf1a28abf838ca3221/html5/thumbnails/12.jpg)
API Steps (cont.)Previous code will create this:
![Page 13: Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences University of Arizona.](https://reader035.fdocuments.in/reader035/viewer/2022062410/5697bfbf1a28abf838ca3221/html5/thumbnails/13.jpg)
API Steps (cont.)
Add additional commands (“methods”, “properties” and “events”) to enable or constrain the map environment e.g. zoom, scroll, get xy center of map, add pins, etc.
Explore other ways to enhance your site
![Page 14: Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences University of Arizona.](https://reader035.fdocuments.in/reader035/viewer/2022062410/5697bfbf1a28abf838ca3221/html5/thumbnails/14.jpg)
Data AcquisitionExisting Spatial Data into the Mashup
Write Javascript via the APIvar oldMainXY = new GLatLng(32.23153, -110.9529);
var oldMainMarker = new GMarker(oldMainXY); map.addOverlay(oldMainMarker);
Using free webtools…http://www.mapbuilder.net/http://www.wayfaring.com/
Convert existing spatial data to KML
![Page 15: Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences University of Arizona.](https://reader035.fdocuments.in/reader035/viewer/2022062410/5697bfbf1a28abf838ca3221/html5/thumbnails/15.jpg)
What is KML?
Keyhole Markup Language
Its simple-text… readable!
Its XML based… organized, parsable
It can be easily edited… text editor
![Page 16: Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences University of Arizona.](https://reader035.fdocuments.in/reader035/viewer/2022062410/5697bfbf1a28abf838ca3221/html5/thumbnails/16.jpg)
KML under the hood…
<Placemark><name>GeoWeb 2007</name><description>
Conference held in Vancouver, BC.</description><Point>
<coordinates> -123.112324, 49.284336, 0
</coordinates></Point>
</Placemark>
![Page 17: Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences University of Arizona.](https://reader035.fdocuments.in/reader035/viewer/2022062410/5697bfbf1a28abf838ca3221/html5/thumbnails/17.jpg)
KML Other cool things…
KML can be searchable via Google
KML can be viewed across different clients… On the web via Google Maps In 3-Dimension within Google Earth In a mobile environment via Google Maps for
Mobile
KML can be “network-linked” Auto-refreshes when new data is added to the
KML layer.
![Page 18: Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences University of Arizona.](https://reader035.fdocuments.in/reader035/viewer/2022062410/5697bfbf1a28abf838ca3221/html5/thumbnails/18.jpg)
Converting to KML
Plenty of Tools ArcGIS 9.2 tool
in Arc Toolbox
ArcScripts for 9.1 and below
Arc2Earth for Enterprise level…
![Page 19: Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences University of Arizona.](https://reader035.fdocuments.in/reader035/viewer/2022062410/5697bfbf1a28abf838ca3221/html5/thumbnails/19.jpg)
Data AcquisitionCreating New Data within a Mashup
Microsoft Virtual Earth “Collections” Web-Based Sharable via menu…
Send in email Copy to clipboard Blog it Link to it
Geometric Measurements built-in Relief data just added Oblique imagery 3D-Built in
![Page 20: Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences University of Arizona.](https://reader035.fdocuments.in/reader035/viewer/2022062410/5697bfbf1a28abf838ca3221/html5/thumbnails/20.jpg)
Data AcquisitionCreating New Data within a Mashup
Google Maps “My Maps” Web-Based Sharable via menu…
Send in email Link to it… Save as KML*
Embed HTML in your tag Extra content can be added to your
mashup
![Page 21: Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences University of Arizona.](https://reader035.fdocuments.in/reader035/viewer/2022062410/5697bfbf1a28abf838ca3221/html5/thumbnails/21.jpg)
3rd Party Mashup Sites
www.communitywalk.com www.wayfaring.com
Built on top of an existing mapping API, such as Google or Virtual Earth
A good selection, each with their pro’s and cons.
![Page 22: Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences University of Arizona.](https://reader035.fdocuments.in/reader035/viewer/2022062410/5697bfbf1a28abf838ca3221/html5/thumbnails/22.jpg)
Community Walk
![Page 23: Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences University of Arizona.](https://reader035.fdocuments.in/reader035/viewer/2022062410/5697bfbf1a28abf838ca3221/html5/thumbnails/23.jpg)
Community Walk (cont.)
![Page 24: Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences University of Arizona.](https://reader035.fdocuments.in/reader035/viewer/2022062410/5697bfbf1a28abf838ca3221/html5/thumbnails/24.jpg)
Community Walk (cont.)
![Page 25: Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences University of Arizona.](https://reader035.fdocuments.in/reader035/viewer/2022062410/5697bfbf1a28abf838ca3221/html5/thumbnails/25.jpg)
Using Mashup Providers
Pro’s No programming required Quick startup time
Con’s The data you enter stays within the 3rd Party’s
database. Difficult to extract data for use in a GIS. Requires users to be registered to yet another
site. Map’s are shared, but only allows visiting users
to view data, not edit.
![Page 26: Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences University of Arizona.](https://reader035.fdocuments.in/reader035/viewer/2022062410/5697bfbf1a28abf838ca3221/html5/thumbnails/26.jpg)
Katrina Info Map
![Page 27: Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences University of Arizona.](https://reader035.fdocuments.in/reader035/viewer/2022062410/5697bfbf1a28abf838ca3221/html5/thumbnails/27.jpg)
Data AcquisitionWriting your own Mashup
Write a custom interface for your users Programmatically input data using the API.
Benefits: Get to collect multiple Attribute Fields Store the data how you want to…
XML, KML, CSV, plain-text file Database – MySQL, Oracle, SQLServer Spatial Database – SDE, Oracle Spatial, PostGIS
![Page 28: Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences University of Arizona.](https://reader035.fdocuments.in/reader035/viewer/2022062410/5697bfbf1a28abf838ca3221/html5/thumbnails/28.jpg)
![Page 29: Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences University of Arizona.](https://reader035.fdocuments.in/reader035/viewer/2022062410/5697bfbf1a28abf838ca3221/html5/thumbnails/29.jpg)
Data stored on backend
AJAX passes javascript requests to the server…
Server code then does your… ODBC – JDBC – ADO Connection
Spatial Database API ArcObjects, PostGIS API
Web Service ArcGIS Server Geoprocessing Service
![Page 30: Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences University of Arizona.](https://reader035.fdocuments.in/reader035/viewer/2022062410/5697bfbf1a28abf838ca3221/html5/thumbnails/30.jpg)
Mobile Data Acquisition
Data can be acquired in the field with a smartphone, a cellular data plan, and a GPS.
GPS sends X,Y locations to the smartphone via Bluetooth or serial cable.
The phone initiates an IP connection to your database via its cellular data protocol (EVDO, EDGE, HSPDA). Requires mobile software…
The web-mashup reads data out of database in real-time.
![Page 31: Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences University of Arizona.](https://reader035.fdocuments.in/reader035/viewer/2022062410/5697bfbf1a28abf838ca3221/html5/thumbnails/31.jpg)
Mobile Data Acquisition Solutions
Use 3rd Party Apps http://www.3dtracking.net http://goopstechnologies.com/
Or roll out your own. same pro’s and con’s
![Page 32: Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences University of Arizona.](https://reader035.fdocuments.in/reader035/viewer/2022062410/5697bfbf1a28abf838ca3221/html5/thumbnails/32.jpg)
Using 3D Technologies in Data Acquisition
Helps with visualizing an application.
Potential for orientation in the field but there are issues…
Resolution
Bandwidth
How to integrate with open source mapping like Google Earth?
How to add GIS capability?
![Page 33: Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences University of Arizona.](https://reader035.fdocuments.in/reader035/viewer/2022062410/5697bfbf1a28abf838ca3221/html5/thumbnails/33.jpg)
3-Dimension in Google Earth
Google Earth reads KML…
Points, Lines, Polygons Simple attributes
Real-time data can be added on-the-fly with KML’s “Network Link” attribute.
Real-time data can also be aggregated from a GeoRSS feed.
Raster Data can also be converted to KML… Draped over terrain.
![Page 34: Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences University of Arizona.](https://reader035.fdocuments.in/reader035/viewer/2022062410/5697bfbf1a28abf838ca3221/html5/thumbnails/34.jpg)
Insert DRG
![Page 35: Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences University of Arizona.](https://reader035.fdocuments.in/reader035/viewer/2022062410/5697bfbf1a28abf838ca3221/html5/thumbnails/35.jpg)
Close up of fly through
![Page 36: Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences University of Arizona.](https://reader035.fdocuments.in/reader035/viewer/2022062410/5697bfbf1a28abf838ca3221/html5/thumbnails/36.jpg)
Non-geographical uses
You can make your z-value some other parameter, like populations statistics
e.g. states of Mexico
![Page 37: Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences University of Arizona.](https://reader035.fdocuments.in/reader035/viewer/2022062410/5697bfbf1a28abf838ca3221/html5/thumbnails/37.jpg)
Example – states of Mexico
![Page 38: Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences University of Arizona.](https://reader035.fdocuments.in/reader035/viewer/2022062410/5697bfbf1a28abf838ca3221/html5/thumbnails/38.jpg)
Example (cont.)
![Page 39: Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences University of Arizona.](https://reader035.fdocuments.in/reader035/viewer/2022062410/5697bfbf1a28abf838ca3221/html5/thumbnails/39.jpg)
3D in Microsoft Virtual Earth
Built as a web-plugin.
Sits on the “webtop”, not a separate program.
Similar to Google Earth, but Data cannot be exported/imported on a
standard such as KML* Oblique photography automates 3D objects. Google Earth relies on users to graphically
create 3D objects and add to the collection.
![Page 40: Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences University of Arizona.](https://reader035.fdocuments.in/reader035/viewer/2022062410/5697bfbf1a28abf838ca3221/html5/thumbnails/40.jpg)
Data Acquisition Mashups - summary
Powerful, easy-to-use and cheap.
Data integrates nicely into 3D
Data can move to the field for data collection and collaboration.
Custom mashups allow users to store data in spatial databases for GIS analysis
![Page 41: Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences University of Arizona.](https://reader035.fdocuments.in/reader035/viewer/2022062410/5697bfbf1a28abf838ca3221/html5/thumbnails/41.jpg)
Thanks!
Any questions an be directed to me at [email protected]
This presentation can be downloaded at
http://cals.arizona.edu/calsnet/presentations/geoweb2007/