maps on the web computer networks gis on the web

47
Maps on the web • Computer Networks • GIS on the Web

Upload: dwayne-miles

Post on 22-Dec-2015

217 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: Maps on the web Computer Networks GIS on the Web

Maps on the web

• Computer Networks

• GIS on the Web

Page 2: Maps on the web Computer Networks GIS on the Web

Computer Networks

• 2 or more computers connected together

• Typically a:– Client: requests and receives data– Server: receives requests and serves data

Page 3: Maps on the web Computer Networks GIS on the Web

Requesting a Page

1. Client sends an http request with a URL to a server

2. Server find the file based on the URL and returns it

3. Can also request: mpeg, jpeg, gif, etc.

HTML Page

Request with URL

Page 4: Maps on the web Computer Networks GIS on the Web

Dissecting a URL

• http://www.google.com– http: hypertext transfer protocol– www.google.com = server address

• Important: You need a server to put anything on the web

Page 5: Maps on the web Computer Networks GIS on the Web

How Web Servers Work

Browser

Client Server

Web Server

HTML File

Image File

HTML File

Image File

Internet

URL

Page 6: Maps on the web Computer Networks GIS on the Web

Dissecting URLs

• http://www.niiss.org/cwis438/websites/niiss/home.php?WebSiteID=1

• /cwis438/websites/niiss/home.php– File to load

• ?WebsiteID=1– Parameter

• Parameters can be hidden

Page 7: Maps on the web Computer Networks GIS on the Web

GIS on the Web

• PDF Files

• HTML files with image maps

• Zipped GIS Files

• KML/KMZ Files for GoogleEarth

• GIS Web Servers

• GoogleMaps

• ArcOnline

Page 8: Maps on the web Computer Networks GIS on the Web

Portable Document Format• Acrobat Writer lets you write PDF files

from virtually any application by “printing” to a PDF

• Acrobat Pro will maintain links

• Maintains print quality

Page 9: Maps on the web Computer Networks GIS on the Web

GeoPDF

• GeoPDF by TerraGo– Allows Georeferenced data– Very new format (Crashed IE!)– Examples:

• http://www.terragotech.com/resources/geopdf-gallery

– Can’t get the spatial data back out!

Page 10: Maps on the web Computer Networks GIS on the Web

Zipped Files for Data• Raster file formats:

– TIFF or IMAGINE– JPEG compression for continuous tone only

• Vector file formats:– Shapefiles– CSV and TXT

• Maybe: zipped Geodatabases

• Not:– mxds, layers, etc.– Not KML/KMZ (no georeferencing)

Page 11: Maps on the web Computer Networks GIS on the Web

KML/KMZ

• File format for GoogleEarth

• KMZ is a “zipped” KML

• Not a GIS data format (no georeferencing)

• Being reviewed for potential standardization– Adding georeferencing

• Easy to provide for users:– Export to KML in ArcGIS (includes layer)– Add to a web site with a link to download

Page 12: Maps on the web Computer Networks GIS on the Web

Approaches

• Page of links: – Example: Humboldt County

• Search engine for links:– Examples: National Park Service, HDH

• Map selection for searching– Example: EarthExplorer

• Custom downloads:– Select: Area, File format Spatial Reference– Example: National Map

Page 13: Maps on the web Computer Networks GIS on the Web

Image Maps

• Embedded in a web page (HTML)

• Fixed array of coordinates for known map

Page 14: Maps on the web Computer Networks GIS on the Web

File formats for Display• Raster

– PNG, GIF: Spot color and continuous– JPEG: Continuous tone– Keep to 500x500 pixels or less

• Vector– SVG: Performance problems– HTML 5 is coming!– KML/KMZ

• PNG works for everything

Page 15: Maps on the web Computer Networks GIS on the Web

Web Formats & Languages

• Direct Browser Support:– HTML– JavaScript– Images: GIF, PNG, JPEG

• Plug-ins:– Flash– PDF

• AJAX (JavaScript to Server)– XML

Page 16: Maps on the web Computer Networks GIS on the Web

XML-Type Languages

• Extensible Markup Language

• Single tag: <tag />

• Tag with attributes: <name attribute=‘value’ />

• Tag with content:<name>

<contentname/>

</name>

• Includes: HTML, KML, and many more

Page 17: Maps on the web Computer Networks GIS on the Web

HTML

• Hyper Text Markup Language<html>

<head>

<title>This is my page</title>

</head>

<body>

Some text that will appear on the page

</body>

</html>

Page 18: Maps on the web Computer Networks GIS on the Web

Hyperlinks

<a href=‘www.google.com’>Google</a>

<a href=‘WebPage.html’>My Page</a>

<a href=‘LargeImage.png’><img src=‘SmallImage.png’>

</a>

Page 19: Maps on the web Computer Networks GIS on the Web

Images in HTML

<img src=‘MyImage.png’>

<img border=‘0’ src=‘MyImage.png>

Page 20: Maps on the web Computer Networks GIS on the Web

Accessibility Attributes

• DreamWeaver will ask you for attributes for those with disabilities

• Provides text that will be spoken for those with impaired vision.

• Don’t worry about this for this assignment

Page 21: Maps on the web Computer Networks GIS on the Web

Image Maps

• Create background image in ArcGIS– Create a map that looks good on the screen– Export or Screen Capture

• Define polygonal areas as “image maps” in DreamWeaver– Circles for points– Simple polygons for polygons– Polygons for polylines?

• Good for 10 to 20 areas

Page 22: Maps on the web Computer Networks GIS on the Web

Image Maps• <img src="planets.gif" width="145" height="126"

alt="Planets" usemap="#planetmap">

• <map name="planetmap">• <area shape="rect" coords="0,0,82,126"

href="sun.htm" alt="Sun">• <area shape="circle" coords="90,58,3"

href="mercur.htm" alt="Mercury">• <area shape="circle" coords="124,58,8"

href="venus.htm" alt="Venus">• </map>

Page 24: Maps on the web Computer Networks GIS on the Web

Can also have…

• Paragraphs <p>

• Horizontal rules <hr>

• Tables <table><tr><td>data</td></tr></table>

• Divs (boxes) <div>

• Headings: <h1>Heading</h1>

• Text with:– Bold <b>– Italic <i>– And “Styles” with much more

Page 25: Maps on the web Computer Networks GIS on the Web

MacroMedia DreamWeaver

• Now part of Adobe CS

• HTML Editor

• Excellent tutorials

• Makes HTML editing similar to MS-Word

• Allows “publishing” pages to the web

• Work flow:– Edit web pages locally– Review in browser– Upload/publish to a server

Page 26: Maps on the web Computer Networks GIS on the Web

Tips for Maps in HTML Pages

• Use a white or light background with dark or black text (easy to read). The alternative is to use a black or dark background but then the text must be light.

• Make the maps for the web: – They have to be simpler than paper maps– Text must be large enough to read– You can break up site maps, titles, and even

legends into separate images

Page 27: Maps on the web Computer Networks GIS on the Web

Dynamic Web Sites

Browser

Client Server

Web Server

HTML File

Image File

HTML File

Image File

Internet

URL

GIS Data

Scripts

Page 28: Maps on the web Computer Networks GIS on the Web

GIS Web Servers (old)• ArcIMS

– Expensive– Operating Systems

• MS-Windows

– Static Maps• Shapefiles• TIFF

– Languages• ASP

– Hard to support

• MapServer– Free (OpenSource)– Operating Systems

• UNIX• MS-Windows

– Documentation problems

– Static Maps• Shapefiles• TIFF

– Languages:• PHP

– Really hard to support

Page 29: Maps on the web Computer Networks GIS on the Web

GIS Web Servers

Browser

Client Server

Web Server

HTML File

Image File

HTML File

Image File

Internet

URL

GIS Server

Database

Scripts

GIS Data

JavaScriptAJAX

Page 30: Maps on the web Computer Networks GIS on the Web

Problem with Performance

1. User zooms or pans the map

2. Client requests a new area from the server

3. Server renders the area to a raster file (takes a relatively long time)

4. Server returns the raster to the client

5. Back to 1

• With lots of users, server cannot keep up!

Page 31: Maps on the web Computer Networks GIS on the Web

Tile-Based Servers

• Topozone tiled the USGS 24k topo maps into 256x256 cells at multiple zoom levels

• GoogleMaps copied this approach with the entire world in “Google Mercator”– Now “World Mercator”

• Very fast– No rendering– Images can be cached locally (they don’t

change)

• Cannot symbolize the layers

Page 32: Maps on the web Computer Networks GIS on the Web

GIS Web Servers• ArcGIS Server

– Expensive– Slow– Buggy (reboot each night)

• MapServer– Free– Moderately fast– Hard to configure

• GeoServer– Free– Client: OpenLayers– Looking pretty good

• Custom solutions– Have to assemble– Can be very fast

Page 33: Maps on the web Computer Networks GIS on the Web

GIS Web Servers

• ArcServer Examples:– Greeley Colorado’s GIS Website

• http://gis.greeleygov.com/origin/propinfo.html

• GeoServer Examples:– National Map Viewer

• http://viewer.nationalmap.gov/viewer/

– NOAA’s ERMA• http://tinyurl.com/cafwp54

Page 34: Maps on the web Computer Networks GIS on the Web

GIS Web Servers

Browser

Client Server

Web Server

HTML File

Image File

HTML File

Image File

Internet

URL

JavaScriptAJAX

Tile Server

Page 35: Maps on the web Computer Networks GIS on the Web

GoogleMaps API

• Performance limited to about 400 points features– Example: EDDMaps.org

• Can also provide rendered “tiles” with GoogleMaps (harder)– Example: NIISS.org

Page 36: Maps on the web Computer Networks GIS on the Web

GIS Web Servers

Browser

Client Server

Web Server

HTML File

Image File

HTML File

Image File

Internet

URL

GIS Server

Database

Scripts

GIS Data

JavaScriptAJAX

Tile Server

Page 37: Maps on the web Computer Networks GIS on the Web

Hybrid Systems

• National Institute of Invasive Species Science (www.niiss.org).

• Other sites based on International Biological Information System (ibis.colostate.edu)

Page 38: Maps on the web Computer Networks GIS on the Web

Latest Developments

• Arcata: Online GIS Portal

• Crime Spotters– http://sanfrancisco.crimespotting.org/

• Cloud Made:– http://maps.cloudmade.com/

• Open Street Map– http://www.openstreetmap.org/

• EROS EarthExplorer– http://edcsns17.cr.usgs.gov/EarthExplorer/

Page 39: Maps on the web Computer Networks GIS on the Web

Future Web

• Heavy Clients?– C++ based plug ins

• Arcata: Online GIS Portal

• Java Applets?

• HTML 5?– “Heavy” on JavaScript

Page 40: Maps on the web Computer Networks GIS on the Web

“Heavy Clients”

Browser

Client Server

Web Server

HTML File

Image File

HTML File

Image File

Internet

URL

GIS Server

Database

Scripts

GIS DataPlug-in

Tile Server

Page 41: Maps on the web Computer Networks GIS on the Web

HTML 5

• New HTML Standard– <canvas>: 2D drawing– Elements for media control: <video>, <audio> – Support for local storage– Additional Elements: <article>, <footer>,

<header>, <nav>, <section>– New form controls:

• calendar, date, time, email, url, search

• No browser currently supports the entire standard

Page 42: Maps on the web Computer Networks GIS on the Web

Minimum HTML 5 <!DOCTYPE html>

<html>

<head>

<meta charset="UTF-8">

<title>Title of the document</title>

</head>

<body>

Content of the document......

</body>

</html>

Page 43: Maps on the web Computer Networks GIS on the Web

HTML 5 Examples

• 21 Ridiculously Impressive HTML5 Canvas Experiments– http://net.tutsplus.com/articles/web-

roundups/21-ridiculously-impressive-html5-canvas-experiments/

• GIS Cloud

• http://raphaeljs.com/australia.html

• http://www.scale18.com/canvas4.html

Page 44: Maps on the web Computer Networks GIS on the Web

Web Services

• The Internet without people being involved

• Standard GIS Protocols:– Web Feature Service (WFS)– Web Map Service (WMS)– Web Coverage Service (WCS)

• Problem is still rendering– Web Tile Service (WTS)

• KML?

Page 45: Maps on the web Computer Networks GIS on the Web

Web Services

• Gage (USGS) and bouy (NOAA) stations

• National Weather data

• Ultra Violet data

• Traffic

• Stocks

• Hotel prices!

• Others?– What would you like to see?

Page 46: Maps on the web Computer Networks GIS on the Web

Biological Data Exchange

• Taxonmic Database Working Group (TDWG)– DarwinCore– TAPIR

• Global Invasive Species Information System (GISIN)

Page 47: Maps on the web Computer Networks GIS on the Web

Creating a GIS Web Site

1. Understand and define the user needs1. Talk to the users

2. Select the technology that meets the needs with minimum complexity

3. Deliver in stages when possible

4. Use experienced people when possible

5. Must be intuitive or they will go elsewhere

1. Help is built in

6. Test, rework, test, rework, …