Virtual Earth Mash-ups

Download Report

Transcript Virtual Earth Mash-ups

Building Mapping Mash-ups
with Microsoft Virtual Earth™
Rob Blackwell
Agenda
• Demo 1: Getting started
• Building business applications with Virtual
Earth – GPS, geospatial data etc
• Demo 2: GeoRSS
• Demo 3: Microsoft Map Cruncher
• Map layers and tile servers
• Demo 4: Roll your own tile server
• Final Thoughts
Copyright © 2006 Active Web Solutions Ltd
Zoom in: the world on your laptop
in 3-D Sunday Times, November 26 2006
• "We are committed to creating a
technology which allows you to find
anything through a 3-D interface"
David Graham, Microsoft UK
• "The move may bring about a
transformation in how people use the
internet"
Copyright © 2006 Active Web Solutions Ltd
Mashup (web application hybrid)
A mashup is a website or web
application that seamlessly
combines content from more
than one source into an
integrated experience
Wikipedia
Copyright © 2006 Active Web Solutions Ltd
Demo 1
Build a simple Virtual Earth
application
Copyright © 2006 Active Web Solutions Ltd
Business Applications
• What geographic data do we have?
• What data formats?
• How can we collect more information
about the location of people and
assets?
• How can we integrate with existing
business applications?
Copyright © 2006 Active Web Solutions Ltd
Typical Geospatial Data
•
•
•
•
•
•
•
People and addresses
Office locations
Expensive assets
Property, land use
Vehicle tracking
Geo tagged documents / photographs
Plans, maps, diagrams, models
Copyright © 2006 Active Web Solutions Ltd
Getting Lat Longs
•
•
•
•
•
GPS Device
Traditional GIS
Postcode Lookup
Gazetteer Lookup
Microsoft Virtual Earth VEMap.Find ,
VEMap.FindLocation , VEMap.FindNearby
• Convert from other coordinate systems – OS
National Grid
• Manual placement
Copyright © 2006 Active Web Solutions Ltd
GPS Devices
Garmin
handheld GPS
Mitac MIO is a Windows
Mobile 5 Pocket PC with
Integrated GPS
USB or Bluetooth
GPS
Bundled with
AutoRoute
Asus UMPC
Copyright © 2006 Active Web Solutions Ltd
Data from GPS Devices
• Plug into a serial port, 4800-baud
• ASCII NMEA 0183 standard
– $GPRMC,123519,A,4807.038,N,01131
.000,E,022.4,084.4,230394,003.1,
W*6A
• Easy to parse
– Fix taken at 12:35:19 UTC
– Latitude 48 deg 07.038' N
– Longitude 11 deg 31.000' E
Copyright © 2006 Active Web Solutions Ltd
Mobile Phone Location Based
Services
•
•
•
•
Based on cell and triangulation
Sign up with a location gateway service
Get approval from mobile operators
Accuracy
– Urban areas around 300 metres.
– Semi-urban 600 metres to 1.2km.
– Rural 1km to 10km.
• Personnel and asset tracking
Copyright © 2006 Active Web Solutions Ltd
Satellite Tracking
Iridium
Inmarsat
Copyright © 2006 Active Web Solutions Ltd
Demo 2
Adding a GeoRSS feed
Copyright © 2006 Active Web Solutions Ltd
Demo 3
Microsoft MapCruncher
Copyright © 2006 Active Web Solutions Ltd
Microsoft Tile Servers
• Use MS Developer Toolbar or Fiddler to
see what’s going over the wire
• Urls look like this
–
http://r2.ortho.tiles.virtualearth.net/tiles/r120202001322.png?g=22
• These map to 256x256 PNG files
• Same layout as MapCruncher!
• This is a quad key algorithm that splits
a map into successive quadrants at 19
zoom levels
Copyright © 2006 Active Web Solutions Ltd
Level 1
Copyright © 2006 Active Web Solutions Ltd
Level 2
Copyright © 2006 Active Web Solutions Ltd
Roll Your Own Tile Server
• Build an HTTP handler that intercepts
tile requests
• Map quad keys to lat longs based on
Mercator projection
• Construct your own 256 x 256 tiles
• VE control will stitch them together
automatically, even in 3D !
• See my article on Via Virtual Earth for more
info ..
Copyright © 2006 Active Web Solutions Ltd
Demo 4
Roll your own tile server
Copyright © 2006 Active Web Solutions Ltd
Final Thoughts
• Consider geospatial aspects in the apps
you write.
• Take GIS to a wider audience
• Use Service Oriented Architecture
• Expose data as RSS, GeoRSS,
Mapcrunch tiles
• Think client-side aggregation
• Beware data scalability issues
Copyright © 2006 Active Web Solutions Ltd
Resources
• Virtual Earth Interactive SDK
dev.live.com/virtualearth/sdk/
• MSR MapCruncher
research.microsoft.com/mapcruncher/
• Roll you own tile server
www.viavirtualearth.com
• Mapping Hacks Book
• www.aws.net
[email protected]
Copyright © 2006 Active Web Solutions Ltd