Tools Of The Geospatial Web

20

Click here to load reader

Transcript of Tools Of The Geospatial Web

Page 1: Tools Of The Geospatial Web

Tools of the Geospatial Web

Page 2: Tools Of The Geospatial Web

Last week - Google Maps

It allows users to easily load and internet map through an API

This kind of map is classified as a Open, Reusable map

Page 3: Tools Of The Geospatial Web

This Week

Look at the API concept

Look at AJAX in greater detail

Look at other non-API Web Mapping Applications

Page 4: Tools Of The Geospatial Web

What is API

An API is an Application Programming Interface

It web-developers to leverage the power of other applications through their own websites

Page 5: Tools Of The Geospatial Web

Google Maps API

This API allows us to leverage the methods and classes developed by Google for this application

Page 6: Tools Of The Geospatial Web

What does this look like?

<title>Google Maps JavaScript API Example</title>

<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=abcdefg"

type="text/javascript"></script>

Page 7: Tools Of The Geospatial Web

<script type="text/javascript"> function initialize() { if (GBrowserIsCompatible()) { var map = new

GMap2(document.getElementById("map_canvas"));

map.setCenter(new GLatLng(37.4419, -122.1419), 13);

Page 8: Tools Of The Geospatial Web

Event handler and its place

<body onload="initialize()" onunload="GUnload()">

<div id="map_canvas" style="width: 500px; height: 300px"></div>

</body>

Page 9: Tools Of The Geospatial Web

More Information

http://www.google.com/apis/maps/documentation/introduction.html

Page 10: Tools Of The Geospatial Web

Other APIs

Yahoo! Maps http://developer.yahoo.com/maps/

Virtual Earth SDK http://dev.live.com/virtualearth/sdk/

ArcWeb Services http://www.esri.com/software/arcwebservices/index.html

Page 11: Tools Of The Geospatial Web

AJAX

Ajax - Asynchronous JavaScript and XML

Ajax allows the Web browsers to send GET and POST requests without refreshing the browser

Page 12: Tools Of The Geospatial Web

POST and GET

Are Methods that are stated in submission forms

Eg. Database search http://first6years.org/?q=node/14

Page 13: Tools Of The Geospatial Web

GET VS POST

Get is used primarily in querying data

Post is used for posting or uploading data into a database

Page 14: Tools Of The Geospatial Web

What does AJAX do?

In AJAX POST and GET are managed through the AJAX engine or javascript object

This is done asynchronously meaning that code execution doesn’t wait for a response from a server

Page 15: Tools Of The Geospatial Web

What does the user see?

This creates a seamless experience allowing for richer experiences similar to the desktop environment.

QuickTime and aᆰTIFF (Uncompressed) decompressor

are needed to see this picture.

Page 16: Tools Of The Geospatial Web

Non-API Internet GIS Applications

Other Internet GIS applications allow for more robust tools and customization of both Primary and secondary data.

Most now come with Out-of-the-Box development tools

Page 17: Tools Of The Geospatial Web

Open SourceApplications

Mapserver - OGC Compliant first designed by NASA http://mapserver.gis.umn.edu/

Geoserver- OGC Compliant with an interface similar to Open Layers http://geoserver.org/

Page 18: Tools Of The Geospatial Web

Application Architecture

These Web Mapping Systems run a webserver or integrate with one

Store Spatial data in a directory and provide an interface for creating your mapping application

Page 19: Tools Of The Geospatial Web

Map files

Data is then stored in an XML based Map file which is used to define the look and feel of the web map

Generally these files are used on one map at a time

Page 20: Tools Of The Geospatial Web

Break

After the break we will look at these two different applications in greater detail