data acquisition using mashup and 3-d technologyrahr/geoweb.pdfcomponents of a mashup {data – you...

41
Data Acquisition using Mashup and 3-D Technology Matt Rahr College of Agriculture and Life Sciences University of Arizona

Upload: others

Post on 15-Oct-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Data Acquisition using Mashup and 3-D Technologyrahr/geoweb.pdfComponents of a Mashup {Data – you normally supply some of this {The API is published by Google, Microsoft, Yahoo –

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 Technologyrahr/geoweb.pdfComponents of a Mashup {Data – you normally supply some of this {The API is published by Google, Microsoft, Yahoo –

Let’s Do It!

A “hybrid” website or web applicationContent from multiple sourcesCreates a completely new service

What is a Mashup?

+

Your Data

Page 3: Data Acquisition using Mashup and 3-D Technologyrahr/geoweb.pdfComponents of a Mashup {Data – you normally supply some of this {The API is published by Google, Microsoft, Yahoo –

Characteristics of Mashups

Open sourceMultipurposeCan be used by communities to share or collect informationCan be interactive = “pin-maps” e.g. KatrinaThey are not GIS, but could become so…

Page 4: Data Acquisition using Mashup and 3-D Technologyrahr/geoweb.pdfComponents of a Mashup {Data – you normally supply some of this {The API is published by Google, Microsoft, Yahoo –

&

Independent Site

HousingMaps.com

Craigslistdb

Mash Data Together

Mashup Example

Page 5: Data Acquisition using Mashup and 3-D Technologyrahr/geoweb.pdfComponents of a Mashup {Data – you normally supply some of this {The API is published by Google, Microsoft, Yahoo –

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 Technologyrahr/geoweb.pdfComponents of a Mashup {Data – you normally supply some of this {The API is published by Google, Microsoft, Yahoo –

Using the API

Page 7: Data Acquisition using Mashup and 3-D Technologyrahr/geoweb.pdfComponents of a Mashup {Data – you normally supply some of this {The API is published by Google, Microsoft, Yahoo –

Building a Mashup - using the API

Page 8: Data Acquisition using Mashup and 3-D Technologyrahr/geoweb.pdfComponents of a Mashup {Data – you normally supply some of this {The API is published by Google, Microsoft, Yahoo –

Getting a key

Obtained at http://www.google.com/apis/maps/signup.html

Terms of use…Unlimited hits50k geocode requestsGoogle 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 Technologyrahr/geoweb.pdfComponents of a Mashup {Data – you normally supply some of this {The API is published by Google, Microsoft, Yahoo –

Google Conditions (others do not have these, or these may change)

Page 10: Data Acquisition using Mashup and 3-D Technologyrahr/geoweb.pdfComponents of a Mashup {Data – you normally supply some of this {The API is published by Google, Microsoft, Yahoo –

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 Technologyrahr/geoweb.pdfComponents of a Mashup {Data – you normally supply some of this {The API is published by Google, Microsoft, Yahoo –

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 Technologyrahr/geoweb.pdfComponents of a Mashup {Data – you normally supply some of this {The API is published by Google, Microsoft, Yahoo –

API Steps (cont.)Previous code will create this:

Page 13: Data Acquisition using Mashup and 3-D Technologyrahr/geoweb.pdfComponents of a Mashup {Data – you normally supply some of this {The API is published by Google, Microsoft, Yahoo –

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 Technologyrahr/geoweb.pdfComponents of a Mashup {Data – you normally supply some of this {The API is published by Google, Microsoft, Yahoo –

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 Technologyrahr/geoweb.pdfComponents of a Mashup {Data – you normally supply some of this {The API is published by Google, Microsoft, Yahoo –

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 Technologyrahr/geoweb.pdfComponents of a Mashup {Data – you normally supply some of this {The API is published by Google, Microsoft, Yahoo –

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 Technologyrahr/geoweb.pdfComponents of a Mashup {Data – you normally supply some of this {The API is published by Google, Microsoft, Yahoo –

KML Other cool things…

KML can be searchable via Google

KML can be viewed across different clients…

On the web via Google MapsIn 3-Dimension within Google EarthIn 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 Technologyrahr/geoweb.pdfComponents of a Mashup {Data – you normally supply some of this {The API is published by Google, Microsoft, Yahoo –

Converting to KML

Plenty of ToolsArcGIS 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 Technologyrahr/geoweb.pdfComponents of a Mashup {Data – you normally supply some of this {The API is published by Google, Microsoft, Yahoo –

Data AcquisitionCreating New Data within a Mashup

Microsoft Virtual Earth “Collections”Web-BasedSharable via menu…

Send in emailCopy to clipboardBlog itLink to it

Geometric Measurements built-inRelief data just addedOblique imagery3D-Built in

Page 20: Data Acquisition using Mashup and 3-D Technologyrahr/geoweb.pdfComponents of a Mashup {Data – you normally supply some of this {The API is published by Google, Microsoft, Yahoo –

Data AcquisitionCreating New Data within a Mashup

Google Maps “My Maps”Web-BasedSharable via menu…

Send in emailLink to it…Save as KML*

Embed HTML in your tagExtra content can be added to your mashup

Page 21: Data Acquisition using Mashup and 3-D Technologyrahr/geoweb.pdfComponents of a Mashup {Data – you normally supply some of this {The API is published by Google, Microsoft, Yahoo –

3rd Party Mashup Sites

www.communitywalk.comwww.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 Technologyrahr/geoweb.pdfComponents of a Mashup {Data – you normally supply some of this {The API is published by Google, Microsoft, Yahoo –

Community Walk

Page 23: Data Acquisition using Mashup and 3-D Technologyrahr/geoweb.pdfComponents of a Mashup {Data – you normally supply some of this {The API is published by Google, Microsoft, Yahoo –

Community Walk (cont.)

Page 24: Data Acquisition using Mashup and 3-D Technologyrahr/geoweb.pdfComponents of a Mashup {Data – you normally supply some of this {The API is published by Google, Microsoft, Yahoo –

Community Walk (cont.)

Page 25: Data Acquisition using Mashup and 3-D Technologyrahr/geoweb.pdfComponents of a Mashup {Data – you normally supply some of this {The API is published by Google, Microsoft, Yahoo –

Using Mashup Providers

Pro’sNo programming requiredQuick startup time

Con’sThe 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 Technologyrahr/geoweb.pdfComponents of a Mashup {Data – you normally supply some of this {The API is published by Google, Microsoft, Yahoo –

Katrina Info Map

Page 27: Data Acquisition using Mashup and 3-D Technologyrahr/geoweb.pdfComponents of a Mashup {Data – you normally supply some of this {The API is published by Google, Microsoft, Yahoo –

Data AcquisitionWriting your own Mashup

Write a custom interface for your usersProgrammatically input data using the API.

Benefits:Get to collect multiple Attribute FieldsStore the data how you want to…

XML, KML, CSV, plain-text fileDatabase – MySQL, Oracle, SQLServerSpatial Database – SDE, Oracle Spatial, PostGIS

Page 28: Data Acquisition using Mashup and 3-D Technologyrahr/geoweb.pdfComponents of a Mashup {Data – you normally supply some of this {The API is published by Google, Microsoft, Yahoo –
Page 29: Data Acquisition using Mashup and 3-D Technologyrahr/geoweb.pdfComponents of a Mashup {Data – you normally supply some of this {The API is published by Google, Microsoft, Yahoo –

Data stored on backend

AJAX passes javascript requests to the server…

Server code then does your…ODBC – JDBC – ADO Connection

Spatial Database APIArcObjects, PostGIS API

Web ServiceArcGIS Server Geoprocessing Service

Page 30: Data Acquisition using Mashup and 3-D Technologyrahr/geoweb.pdfComponents of a Mashup {Data – you normally supply some of this {The API is published by Google, Microsoft, Yahoo –

Mobile Data Acquisition

Data can be aqquired 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 Technologyrahr/geoweb.pdfComponents of a Mashup {Data – you normally supply some of this {The API is published by Google, Microsoft, Yahoo –

Mobile Data Acquisition Solutions

Use 3rd Party Appshttp://www.3dtracking.nethttp://goopstechnologies.com/

Or roll out your own.same pro’s and con’s

Page 32: Data Acquisition using Mashup and 3-D Technologyrahr/geoweb.pdfComponents of a Mashup {Data – you normally supply some of this {The API is published by Google, Microsoft, Yahoo –

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 Technologyrahr/geoweb.pdfComponents of a Mashup {Data – you normally supply some of this {The API is published by Google, Microsoft, Yahoo –

3-Dimension in Google Earth

Google Earth reads KML…

Points, Lines, PolygonsSimple 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 Technologyrahr/geoweb.pdfComponents of a Mashup {Data – you normally supply some of this {The API is published by Google, Microsoft, Yahoo –

Insert DRG

Page 35: Data Acquisition using Mashup and 3-D Technologyrahr/geoweb.pdfComponents of a Mashup {Data – you normally supply some of this {The API is published by Google, Microsoft, Yahoo –

Close up of fly through

Page 36: Data Acquisition using Mashup and 3-D Technologyrahr/geoweb.pdfComponents of a Mashup {Data – you normally supply some of this {The API is published by Google, Microsoft, Yahoo –

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 Technologyrahr/geoweb.pdfComponents of a Mashup {Data – you normally supply some of this {The API is published by Google, Microsoft, Yahoo –

Example – states of Mexico

Page 38: Data Acquisition using Mashup and 3-D Technologyrahr/geoweb.pdfComponents of a Mashup {Data – you normally supply some of this {The API is published by Google, Microsoft, Yahoo –

Example (cont.)

Page 39: Data Acquisition using Mashup and 3-D Technologyrahr/geoweb.pdfComponents of a Mashup {Data – you normally supply some of this {The API is published by Google, Microsoft, Yahoo –

3D in Microsoft Virtual Earth

Built as a web-plugin.

Sits on the “webtop”, not a separate program.

Similar to Google Earth, butData 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 Technologyrahr/geoweb.pdfComponents of a Mashup {Data – you normally supply some of this {The API is published by Google, Microsoft, Yahoo –

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 Technologyrahr/geoweb.pdfComponents of a Mashup {Data – you normally supply some of this {The API is published by Google, Microsoft, Yahoo –

Thanks!

Any questions an be directed to me at [email protected] presentation can be downloaded at

http://cals.arizona.edu/calsnet/presentations/geoweb2007/