com presentations: Added my WhiskyWeb/OSM talk.: osm-whiskyweb.xml slides/map/equirectangular.jpg slides/map/equivalent.jpg
slides/map/finding-food-data-mongo.xml slides/map/finding-food-import-mongo.xml slides/map/finding-food-take2.xml slides/map/gmaps-bad-data.xml
slides/map/gmaps-bad-data2.xml slides/map/gmm-korogocho.xml slides/map/gmm-korogocho2.xml slides/map/google-geolocation.xml slides/map/korogocho.jpg
slides/map/mcarthur-large.jpg sli

From: Date: Thu, 12 Apr 2012 14:20:31 +0000
Subject: com presentations: Added my WhiskyWeb/OSM talk.: osm-whiskyweb.xml slides/map/equirectangular.jpg slides/map/equivalent.jpg
slides/map/finding-food-data-mongo.xml slides/map/finding-food-import-mongo.xml slides/map/finding-food-take2.xml slides/map/gmaps-bad-data.xml
slides/map/gmaps-bad-data2.xml slides/map/gmm-korogocho.xml slides/map/gmm-korogocho2.xml slides/map/google-geolocation.xml slides/map/korogocho.jpg
slides/map/mcarthur-large.jpg sli
Groups: php.pres 
Request: Send a blank email to pres+get-1794@lists.php.net to get a copy of this message
Commit: 9d80a41baf385b4e8db00f969e18df6a7d771329 Author: Derick Rethans <github@derickrethans.nl> Thu, 12 Apr 2012 15:20:31 +0100 Parents: b37fdde1ac2602ae68c47349342a2de0c6ac1b2c Branches: master Link: http://git.php.net/?p=presentations.git;a=commitdiff;h=9d80a41baf385b4e8db00f969e18df6a7d771329 Log: Added my WhiskyWeb/OSM talk. Changed paths: A osm-whiskyweb.xml A slides/map/equirectangular.jpg A slides/map/equivalent.jpg M slides/map/finding-food-data-mongo.xml A slides/map/finding-food-import-mongo.xml M slides/map/finding-food-take2.xml M slides/map/gmaps-bad-data.xml A slides/map/gmaps-bad-data2.xml M slides/map/gmm-korogocho.xml A slides/map/gmm-korogocho2.xml M slides/map/google-geolocation.xml A slides/map/korogocho.jpg A slides/map/mcarthur-large.jpg M slides/map/openlayers-location.xml M slides/map/osm-data-uses.xml M slides/map/osm-mapping-party.xml M slides/map/osm-parse-into-db.xml A slides/map/osm-tags-edit.xml A slides/map/osm-tags1.jpg A slides/map/osm-tags1.xml A slides/map/osm-tags2.jpg A slides/map/osm-tags2.xml A slides/map/osm-tags3.jpg A slides/map/osm-tags3.xml A slides/map/osm-tags4.jpg A slides/map/osm-tags4.xml M slides/map/osm-what.xml M slides/map/osm-xapi.xml A slides/map/oxford-circus.png A slides/map/petersworldmap.jpg M slides/map/projections.xml A slides/map/style-cycle.jpg A slides/map/style-piste.jpg A slides/map/style-sea.jpg A slides/map/style-transport.jpg A slides/map/style-wheel.jpg M slides/map/what-is-googlemaps.xml

diff --git a/osm-whiskyweb.xml b/osm-whiskyweb.xml new file mode 100644 index 0000000..1628ddd --- /dev/null +++ b/osm-whiskyweb.xml @@ -0,0 +1,75 @@ +<?xml version="1.0" encoding="utf-8"?> +<presentation + template="css" + navmode="html" + navbarbackground="#4373b4" + navbartopiclinks="0" + navColor="#f1fbff" + logo1="" + backgroundfixed="1" > +<topic>Maps</topic> +<title>OpenStreetMap for the Web</title> +<event>WhiskyWeb</event> +<location>Edinburgh, UK</location> +<date>April 13th, 2012</date> +<speaker>Derick Rethans</speaker> +<email>derick@derickrethans.nl</email> +<twitter>derickr</twitter> +<joindin>http://joind.in/6288</joindin> +<slide>slides/map/title.xml</slide> + +<!-- +In this talk I will be explaining the strong points of OpenStreetMap and why +using GoogleMaps for your websites is generally a bad idea. Contrary to popular +belief, GoogleMaps isn't as amazing as it looks and they are a lot more evil +than they look. OpenStreetMap's data is also easily accessible for use in PHP +applications and the generated tiles can easily be embedded into a Web 2.0 +application. Its open nature is a welcome and powerful geo database that can be +added to and used in whatever way imaginary. +--> + +<!-- +What is X? +--> +<slide>slides/map/osm-what.xml</slide> +<slide>slides/map/what-is-osm.xml</slide> +<slide>slides/map/what-is-googlemaps.xml</slide> +<slide>slides/map/terms-and-conditions.xml</slide> +<!-- +<slide>slides/map/openlayers-simple.xml</slide> +<slide>slides/map/leaflet.xml</slide> +--> + +<slide>slides/map/osm-data.xml</slide> + +<slide>slides/map/osm-tags1.xml</slide> +<slide>slides/map/osm-tags2.xml</slide> +<slide>slides/map/osm-tags3.xml</slide> +<slide>slides/map/osm-tags4.xml</slide> +<slide>slides/map/osm-tags-edit.xml</slide> + + +<slide>slides/map/osm-mapping-party.xml</slide> +<slide>slides/map/osm-editors.xml</slide> +<slide>slides/map/osm-kibera.xml</slide> +<slide>slides/map/gmm-korogocho.xml</slide> +<slide>slides/map/gmm-korogocho2.xml</slide> +<slide>slides/map/mapping-belarus.xml</slide> +<slide>slides/map/osm-data-uses.xml</slide> + +<slide>slides/map/openlayers-location.xml</slide> +<slide>slides/map/openlayers-location-services.xml</slide> +<slide>slides/map/reverse.xml</slide> +<slide>slides/map/reverse-services.xml</slide> + +<slide>slides/map/osm-parse-into-db.xml</slide> +<slide>slides/map/osm-xapi.xml</slide> + +<slide>slides/map/finding-food-import-mongo.xml</slide> +<slide>slides/map/finding-distances.xml</slide> +<slide>slides/map/finding-food-data-mongo.xml</slide> +<slide>slides/map/finding-food-take2.xml</slide> + +<slide>slides/mongodb/resources.xml</slide> + +</presentation> diff --git a/slides/map/equirectangular.jpg b/slides/map/equirectangular.jpg new file mode 100644 index 0000000..4a888bd Binary files /dev/null and b/slides/map/equirectangular.jpg differ diff --git a/slides/map/equivalent.jpg b/slides/map/equivalent.jpg new file mode 100644 index 0000000..8810cc1 Binary files /dev/null and b/slides/map/equivalent.jpg differ diff --git a/slides/map/finding-food-data-mongo.xml b/slides/map/finding-food-data-mongo.xml index f910da1..da27d51 100644 --- a/slides/map/finding-food-data-mongo.xml +++ b/slides/map/finding-food-data-mongo.xml @@ -1,27 +1,27 @@ <slide> -<title>Finding Food</title> -<subtitle>Getting The Data: MongoDB</subtitle> +<title>Querying our database</title> <div effect="fade-out"> <example><![CDATA[<?php header('Content-type: text/plain'); $m = new Mongo( 'mongodb://localhost:27017' ); -$d = $m->selectDb( 'geolocation' ); +$d = $m->selectDb( 'poi' ); $wantedD = isset($_GET['d']) ? $_GET['d']: 1; -$query = array( 'cuisine' => $_GET['cuisine'] ); +$query = array( 'tags_indexed.k' => 'cuisine', 'tags_indexed.v' => $_GET['cuisine'] ); if ( $_GET['cuisine'] == 'all' ) { - $query = array(); + $query = array( 'tags_indexed.k' => 'amenity', 'tags_indexed.v' => 'restaurant' ); } $s = $d->command( array( 'geoNear' => 'poi', + 'spherical' => true, 'near' => array( $_GET['lat'], $_GET['lon'] ), - 'num' => 10000, - 'maxDistance' => $wantedD * (360 / (2*M_PI*6371.01)), // km to ° + 'num' => 1000, + 'maxDistance' => $wantedD / 6371.01, // km to ° 'query' => $query, ) ); @@ -29,28 +29,18 @@ echo "lat\tlon\ttitle\tdescription\r\n"; foreach( $s['results'] as $res) { if (isset($res['obj']['name'] ) ) { - echo $res['obj']['loc'][0], "\t", $res['obj']['loc'][1], "\t", $res['obj']['name'], "\t", sprintf('real: %.4f mongo: %.4f', $e, $res['dis'] / (360 / (2*M_PI*6371. + echo $res['obj']['loc'][0], "\t", $res['obj']['loc'][1], "\t", + $res['obj']['name'], "\t", + sprintf('real: %.4f mongo: %.4f', + $e, + $res['dis'] * 6371.01 + ), " km away\r\n"; } } ]]></example> </div> <div effect="fade-in-out"> -<blurb>Spatial Index</blurb> -<example><![CDATA[ -db.poi.ensureIndex( { poi : '2d' } ); - -$s = $d->command( - array( - 'geoNear' => 'poi', - 'near' => array( $_GET['lat'], $_GET['lon'] ), - 'num' => 10000, - 'maxDistance' => $wantedD * (360 / (2*M_PI*6371.01)), // km to ° - 'query' => $query, - ) -); -]]></example> -<blurb>Geospatial Index (since 1.7)</blurb> -<!-- +<blurb>MongoDB's 2D index</blurb> <example><![CDATA[ db.poi.ensureIndex( { poi : '2d' } ); @@ -58,13 +48,15 @@ $s = $d->command( array( 'geoNear' => 'poi', 'spherical' => true, - 'near' => array( $_GET['lat'], $_GET['lon'] ), + 'near' => array( $_GET['lon'], $_GET['lat'] ), 'num' => 10000, 'maxDistance' => $wantedD / 6371.01, // km to radians 'query' => $query, ) ); ]]></example> ---> +<list> + <bullet>%spherical => true,% for spherical Earth calculations</bullet> +</list> </div> </slide> diff --git a/slides/map/finding-food-import-mongo.xml b/slides/map/finding-food-import-mongo.xml new file mode 100644 index 0000000..e4b0cc1 --- /dev/null +++ b/slides/map/finding-food-import-mongo.xml @@ -0,0 +1,28 @@ +<slide> +<title>Importing data</title> + +<blurb>MongoDB is schema less, so fits the OSM data model quite well, but you still +need to think about how to store the data best:</blurb> +<example>$doc = array( + 'name' => 'A440', + 'tags = [ + 'highway' => 'secondary', + 'oneway' => 'yes' + ] +); + +$db->poi->ensureIndex( [ 'name' => 1 ] ); +$db->poi->ensureIndex( [ 'tags.highway' => 1 ] ); +$db->poi->ensureIndex( [ 'tags.oneway' => 1 ] );</example> +<blurb>or:</blurb> +<example>$doc = array( + 'name' => 'A440', + 'tags' = { [ + 'k' => 'highway', 'v' => 'secondary', + 'k' => 'oneway', 'v' => 'yes' + ] } +); + +$db->poi->ensureIndex( [ 'name' => 1 ] ); +$db->poi->ensureIndex( [ 'tags.k' => 1, 'tags.v' => 1 ] );</example> +</slide> diff --git a/slides/map/finding-food-take2.xml b/slides/map/finding-food-take2.xml index 3b85d2e..16ff71e 100644 --- a/slides/map/finding-food-take2.xml +++ b/slides/map/finding-food-take2.xml @@ -1,5 +1,5 @@ <slide> <title>Finding Food</title> -<iframe filename='examples/find-poi.php?default=mongo'/> +<iframe filename='examples/find-poi-mongo.php'/> </slide> diff --git a/slides/map/gmaps-bad-data.xml b/slides/map/gmaps-bad-data.xml index cb6f776..81c8a42 100644 --- a/slides/map/gmaps-bad-data.xml +++ b/slides/map/gmaps-bad-data.xml @@ -1,5 +1,4 @@ <slide> <title>Bad data</title> -<div effect="fade-out"><iframe filename='http://tools.geofabrik.de/mc/?mt0=mapnik&amp;mt1=googlemap&amp;lat=41.7292&amp;lon=44.7735&amp;zoom=13'/></div> -<div effect="fade-in"><iframe filename='http://tools.geofabrik.de/mc/?mt0=mapnik&amp;mt1=googlemap&amp;lon=-0.16797&amp;lat=51.55532&amp;zoom=17'/></div> +<div><iframe filename='http://tools.geofabrik.de/mc/?mt0=mapnik&amp;mt1=googlemap&amp;lat=41.7292&amp;lon=44.7735&amp;zoom=13'/></div> </slide> diff --git a/slides/map/gmaps-bad-data2.xml b/slides/map/gmaps-bad-data2.xml new file mode 100644 index 0000000..ae26ee7 --- /dev/null +++ b/slides/map/gmaps-bad-data2.xml @@ -0,0 +1,4 @@ +<slide> +<title>Bad data</title> +<div><iframe filename='http://tools.geofabrik.de/mc/?mt0=mapnik&amp;mt1=googlemap&amp;lon=-0.16731&amp;lat=51.55591&amp;zoom=17'/></div> +</slide> diff --git a/slides/map/gmm-korogocho.xml b/slides/map/gmm-korogocho.xml index 8875863..83c0798 100644 --- a/slides/map/gmm-korogocho.xml +++ b/slides/map/gmm-korogocho.xml @@ -1,7 +1,4 @@ <slide> <title>Mapping party: Korogocho</title> -<div effect="fade-out"> -<iframe filename="http://google-latlong.blogspot.com/2010/12/mapping-korogocho.html"/> -</div> -<div effect="fade-in"> <iframe filename="http://tools.geofabrik.de/mc/?mt0=mapnik&amp;mt1=googlemap&amp;lon=36.88608&amp;lat=-1.25629&amp;zoom=16"/></div> +<image filename="korogocho.jpg"/> </slide> diff --git a/slides/map/gmm-korogocho2.xml b/slides/map/gmm-korogocho2.xml new file mode 100644 index 0000000..47b46f4 --- /dev/null +++ b/slides/map/gmm-korogocho2.xml @@ -0,0 +1,4 @@ +<slide> +<title>Mapping party: Korogocho</title> +<iframe filename="http://tools.geofabrik.de/mc/?mt0=mapnik&amp;mt1=googlemap&amp;lon=36.88608&amp;lat=-1.25629&amp;zoom=16"/> +</slide> diff --git a/slides/map/google-geolocation.xml b/slides/map/google-geolocation.xml index 9680337..544bcc5 100644 --- a/slides/map/google-geolocation.xml +++ b/slides/map/google-geolocation.xml @@ -14,7 +14,8 @@ curl_setopt( $c, CURLOPT_URL, 'https://www.google.com/loc/json' ); curl_setopt( $c, CURLOPT_POST, 1 ); curl_setopt( $c, CURLOPT_POSTFIELDS, json_encode( $request ) ); curl_setopt( $c, CURLOPT_RETURNTRANSFER, true ); -var_dump( json_decode( curl_exec( $c ) ) ); + +var_dump( curl_exec( $c ) ); ]]></example> <blurb>http://code.google.com/intl/es-ES/apis/gears/geolocation_network_protocol.html</blurb> diff --git a/slides/map/korogocho.jpg b/slides/map/korogocho.jpg new file mode 100644 index 0000000..1e667b3 Binary files /dev/null and b/slides/map/korogocho.jpg differ diff --git a/slides/map/mcarthur-large.jpg b/slides/map/mcarthur-large.jpg new file mode 100644 index 0000000..b6ae115 Binary files /dev/null and b/slides/map/mcarthur-large.jpg differ diff --git a/slides/map/openlayers-location.xml b/slides/map/openlayers-location.xml index 4fdc2af..7c7275a 100644 --- a/slides/map/openlayers-location.xml +++ b/slides/map/openlayers-location.xml @@ -1,6 +1,5 @@ <slide> -<title>Showing a Map</title> -<subtitle>Looking up latitude and longitude from a location</subtitle> +<title>Looking up latitude and longitude from a location</title> <div effect="fade-out"> <iframe filename='examples/openlayers-nominatim.php?name=:-:location:-:' image='openlayers-nominatim.png'/> </div> diff --git a/slides/map/osm-data-uses.xml b/slides/map/osm-data-uses.xml index bf9e31a..a85ec37 100644 --- a/slides/map/osm-data-uses.xml +++ b/slides/map/osm-data-uses.xml @@ -6,12 +6,9 @@ <bullet>Render and display what ever you want from it</bullet> </list> </div> -<div effect="fade-in-out"><iframe filename='http://opencyclemap.org/?zoom=15&amp;lat=53.47574&amp;lon=-2.24345&amp;layers=B0'/></div> -<div effect="fade-in-out"><iframe filename='http://openseamap.org/index.php?id=startseite&amp;L=1'/></div> -<div effect="fade-in-out"><iframe filename='http://openbusmap.org/?zoom=16&amp;lat=53.47784&amp;lon=-2.23541&amp;layers=BT'/></div> -<div effect="fade-in-out"><iframe filename='http://openpistemap.org/?lat=56.6171&amp;lon=-4.8468&amp;zoom=14&amp;layers=BTT00T'/></div> -<div effect="fade-in-out"><iframe width="560" height="315" filename="http://www.youtube.com/embed/u7ddxtFK1T8" frameborder="0" allowfullscreen="yes"></iframe></div> -<div effect="fade-in-out"><iframe filename='http://wheelmap.org/en?zoom=18&amp;lat=51.52256&amp;lon=-0.13706&amp;layers=BT'/></div> -<div effect="fade-in-out"><iframe filename="http://latlon.org/buildings?lat=53.47989&amp;lon=-2.23751&amp;zoom=17&amp;layers=BT"/></div> -<div effect="fade-in-out"><iframe filename="http://86.1.68.93/ol-local.php"/></div> +<div effect="fade-in-out"><image filename='style-cycle.jpg'/></div> +<div effect="fade-in-out"><image filename='style-sea.jpg'/></div> +<div effect="fade-in-out"><image filename='style-transport.jpg'/></div> +<div effect="fade-in-out"><image filename='style-piste.jpg'/></div> +<div effect="fade-in-out"><image filename='style-wheel.jpg'/></div> </slide> diff --git a/slides/map/osm-mapping-party.xml b/slides/map/osm-mapping-party.xml index a2e8bf8..aa54046 100644 --- a/slides/map/osm-mapping-party.xml +++ b/slides/map/osm-mapping-party.xml @@ -14,6 +14,6 @@ <image filename='mapping-party.jpg'/> </div> <div effect="fade-in"> -<iframe filename='http://player.vimeo.com/video/28732152?title=0&amp;byline=0&amp;portrait=0'/> +<iframe filename='http://player.vimeo.com/video/37255594?title=0&amp;byline=0&amp;portrait=0'/> </div> </slide> diff --git a/slides/map/osm-parse-into-db.xml b/slides/map/osm-parse-into-db.xml index cdc7123..ff8255a 100644 --- a/slides/map/osm-parse-into-db.xml +++ b/slides/map/osm-parse-into-db.xml @@ -1,12 +1,12 @@ <slide> -<title>Massage the Data</title> +<title>Using OpenStreetMap data</title> <blurb>Process:</blurb> <list> - <bullet>Use XAPI to fetch data</bullet> - <bullet>Parse XML file with PHP into a DB</bullet> + <bullet>Use XAPI, API or extracts to fetch data</bullet> + <bullet>Parse XML file with PHP into a DB (MongoDB)</bullet> <bullet>Query database</bullet> <bullet>Show data</bullet> - <bullet>Profit!</bullet> + <bullet>Profit (or in our case, we found a restaurant)!</bullet> </list> </slide> diff --git a/slides/map/osm-tags-edit.xml b/slides/map/osm-tags-edit.xml new file mode 100644 index 0000000..5a4b400 --- /dev/null +++ b/slides/map/osm-tags-edit.xml @@ -0,0 +1,4 @@ +<slide> +<title>Editting tags</title> +<image filename="oxford-circus.png"/> +</slide> diff --git a/slides/map/osm-tags1.jpg b/slides/map/osm-tags1.jpg new file mode 100644 index 0000000..deca09e Binary files /dev/null and b/slides/map/osm-tags1.jpg differ diff --git a/slides/map/osm-tags1.xml b/slides/map/osm-tags1.xml new file mode 100644 index 0000000..b7fc7bc --- /dev/null +++ b/slides/map/osm-tags1.xml @@ -0,0 +1,4 @@ +<slide> +<title>Tagging features (1)</title> +<image filename="osm-tags1.jpg"/> +</slide> diff --git a/slides/map/osm-tags2.jpg b/slides/map/osm-tags2.jpg new file mode 100644 index 0000000..360b7a2 Binary files /dev/null and b/slides/map/osm-tags2.jpg differ diff --git a/slides/map/osm-tags2.xml b/slides/map/osm-tags2.xml new file mode 100644 index 0000000..9ece408 --- /dev/null +++ b/slides/map/osm-tags2.xml @@ -0,0 +1,4 @@ +<slide> +<title>Tagging features (2)</title> +<image filename="osm-tags2.jpg"/> +</slide> diff --git a/slides/map/osm-tags3.jpg b/slides/map/osm-tags3.jpg new file mode 100644 index 0000000..a112483 Binary files /dev/null and b/slides/map/osm-tags3.jpg differ diff --git a/slides/map/osm-tags3.xml b/slides/map/osm-tags3.xml new file mode 100644 index 0000000..07c0858 --- /dev/null +++ b/slides/map/osm-tags3.xml @@ -0,0 +1,4 @@ +<slide> +<title>Tagging features (3)</title> +<image filename="osm-tags3.jpg"/> +</slide> diff --git a/slides/map/osm-tags4.jpg b/slides/map/osm-tags4.jpg new file mode 100644 index 0000000..12e00f3 Binary files /dev/null and b/slides/map/osm-tags4.jpg differ diff --git a/slides/map/osm-tags4.xml b/slides/map/osm-tags4.xml new file mode 100644 index 0000000..f126851 --- /dev/null +++ b/slides/map/osm-tags4.xml @@ -0,0 +1,4 @@ +<slide> +<title>Tagging features (4)</title> +<image filename="osm-tags4.jpg"/> +</slide> diff --git a/slides/map/osm-what.xml b/slides/map/osm-what.xml index 107e4b4..9be6ad3 100644 --- a/slides/map/osm-what.xml +++ b/slides/map/osm-what.xml @@ -5,7 +5,14 @@ <list> <bullet>"Wikipedia for Map *Data*"</bullet> - <bullet>Licensed under the Creative Commons Attribution-ShareAlike 2.0 licence (CC-BY-SA): + <bullet> + <div effect="fade-out"> + <blurb>Licensed under the Creative Commons Attribution-ShareAlike 2.0 + licence (CC-BY-SA):</blurb> + </div> + <div effect="fade-in"> + <blurb>Licensed under the Open Database License (ODbL 1.0):</blurb> + </div> <blurb>You are free to copy, distribute, transmit and adapt our maps and data, as long as you credit OpenStreetMap and its contributors. If you alter or build upon our maps or data, you may distribute the result diff --git a/slides/map/osm-xapi.xml b/slides/map/osm-xapi.xml index 0a427e3..0ef3e8b 100644 --- a/slides/map/osm-xapi.xml +++ b/slides/map/osm-xapi.xml @@ -1,28 +1,41 @@ <slide> <title>Fetching OSM data</title> -<example>wget - http://open.mapquestapi.com/xapi/api/0.6/node - [amenity=pub] - [bbox=-2.401,53.394,-2.104,53.551] - -O pubs.osm</example> +<example><![CDATA[wget http://download.geofabrik.de/osm/europe/great_britain/england.osm.bz2]]></example> -<example><![CDATA[<?xml version='1.0' encoding='UTF-8'?> -<osm version='0.6' generator='xapi: OSM Extended API 2.0' attribution='http://wiki.openstreetmap.org/wiki/Attribution' xmlns:xapi='http://www.informationfreeway.org/xapi/0.6' xapi:uri='/api/0.6/node[amenity=pub][bbox=-2.401,53.394,-2.104,53.551]' xapi:planetDate='20101006' xapi:copyright='2010 OpenStreetMap contributors' xapi:license='Creative commons CC-BY-SA 2.0' xapi:bugs='For assistance or to report bugs contact 80n80n@gmail.com' xapi:instance='zappyHyper'> -<bounds minlat='53.394' minlon='-2.401' maxlat='53.551' maxlon='-2.104'/> - <node id='275332052' lat='53.548238' lon='-2.3958373' version='2' changeset='4395635' - user='Steeley' uid='101150' visible='true' timestamp='2010-04-11T17:08:16Z'> - <tag k='amenity' v='pub'/> - <tag k='name' v='The Saddle'/> +<example><![CDATA[ +<?xml version='1.0' encoding='UTF-8'?> +<osm version="0.6" generator="Osmosis 0.39"> + <bound box="51.26000,-0.56300,51.68000,0.28000" origin="http://www.openstreetmap.org/api/0.6"/> + <node id="44" version="3" timestamp="2011-09-08T20:53:43Z" uid="15867" user="mattfromderby" changeset="9249514" lat="51.5250157" lon="-0.1485302"/> + <node id="47" version="2" timestamp="2011-09-08T20:53:43Z" uid="15867" user="mattfromderby" changeset="9249514" lat="51.525182" lon="-0.1479761"/> + <node id="52" version="3" timestamp="2011-09-08T21:13:19Z" uid="15867" user="mattfromderby" changeset="9249514" lat="51.5289059" lon="-0.1458559"/> +... + <node id="1571982070" version="1" timestamp="2011-12-31T20:37:18Z" uid="545369" user="bigfatfrog67" changeset="10257991" lat="51.5087759" lon="-0.1253258"> + <tag k="name" v="Charing Cross"/> + <tag k="railway" v="subway_entrance"/> + <tag k="source:name" v="survey"/> + <tag k="source:railway" v="survey"/> </node> ... - <node id='30732192' lat='53.4647746' lon='-2.2319186' version='3' changeset='5810586' - user='geordiemanc' uid='345640' visible='true' timestamp='2010-09-18T11:12:50Z'> - <tag k='address' v='325 Oxford Road'/> - <tag k='amenity' v='pub'/> - <tag k='name' v='Kro Bar'/> - <tag k='phone' v='01612743100'/> - <tag k='postal_code' v='M13 9PG'/> - <tag k='real_ale' v='yes'/> - </node>]]></example> + <way id="74" version="5" timestamp="2010-12-12T22:43:15Z" uid="508" user="Welshie" changeset="6643030"> + <nd ref="196101"/> + <nd ref="196100"/> + <nd ref="196331"/> + <tag k="abutters" v="retail"/> + <tag k="highway" v="primary"/> + <tag k="maxspeed" v="30 mph"/> + <tag k="name" v="Ballards Lane"/> + <tag k="ref" v="A598"/> + </way> +... + <relation id="69" version="13" timestamp="2009-02-09T14:57:24Z" uid="45027" user="PA94" changeset="307506"> + <member type="way" ref="3793834" role="outer"/> + <member type="way" ref="26454599" role="inner"/> + <tag k="created_by" v="xybot"/> + <tag k="type" v="multipolygon"/> + </relation> +... +</osm> +]]></example> </slide> diff --git a/slides/map/oxford-circus.png b/slides/map/oxford-circus.png new file mode 100644 index 0000000..eeaaf84 Binary files /dev/null and b/slides/map/oxford-circus.png differ diff --git a/slides/map/petersworldmap.jpg b/slides/map/petersworldmap.jpg new file mode 100644 index 0000000..75a9dd0 Binary files /dev/null and b/slides/map/petersworldmap.jpg differ diff --git a/slides/map/projections.xml b/slides/map/projections.xml index 2178e85..1c09a0a 100644 --- a/slides/map/projections.xml +++ b/slides/map/projections.xml @@ -1,7 +1,9 @@ <slide> <title>Map Projections</title> -<break lines="2"/> - <image filename="projections.jpg"/> - <blurb align="center">Different projections have different strengths</blurb> +<blurb align="center">Different projections have different strengths</blurb> +<div effect="fade-out"><image filename="equivalent.jpg"/></div> +<div effect="fade-in-out"><image filename="mcarthur-large.jpg"/></div> +<div effect="fade-in-out"><image filename="petersworldmap.jpg"/></div> +<div effect="fade-in"><image filename="equirectangular.jpg"/></div> </slide> diff --git a/slides/map/style-cycle.jpg b/slides/map/style-cycle.jpg new file mode 100644 index 0000000..7209c5f Binary files /dev/null and b/slides/map/style-cycle.jpg differ diff --git a/slides/map/style-piste.jpg b/slides/map/style-piste.jpg new file mode 100644 index 0000000..8e8a49a Binary files /dev/null and b/slides/map/style-piste.jpg differ diff --git a/slides/map/style-sea.jpg b/slides/map/style-sea.jpg new file mode 100644 index 0000000..7a81d51 Binary files /dev/null and b/slides/map/style-sea.jpg differ diff --git a/slides/map/style-transport.jpg b/slides/map/style-transport.jpg new file mode 100644 index 0000000..d8bfbc5 Binary files /dev/null and b/slides/map/style-transport.jpg differ diff --git a/slides/map/style-wheel.jpg b/slides/map/style-wheel.jpg new file mode 100644 index 0000000..544c92b Binary files /dev/null and b/slides/map/style-wheel.jpg differ diff --git a/slides/map/what-is-googlemaps.xml b/slides/map/what-is-googlemaps.xml index a50b502..2c32285 100644 --- a/slides/map/what-is-googlemaps.xml +++ b/slides/map/what-is-googlemaps.xml @@ -7,7 +7,7 @@ <div effect="fade-in"> <blurb>In words:</blurb> <list> - <bullet>It gives you free map tiles</bullet> + <bullet>It gives you "free" map tiles</bullet> <bullet>It gives you satellite imagery</bullet> <bullet>It gives you StreetView™</bullet> <bullet>It gives you a free JavaScript library</bullet>
« previous php.pres (#1794) next »