com presentations: OSM talks for PHP UK and ConFoo.: osm-confoo13.xml osm-london13.xml slides/map/leaflet-location.xml slides/map/meridian.xml
slides/map/osm-data-uses.xml slides/map/osm-xapi.xml slides/map/style-3angle.png

From: Date: Sat, 23 Feb 2013 14:50:32 +0000
Subject: com presentations: OSM talks for PHP UK and ConFoo.: osm-confoo13.xml osm-london13.xml slides/map/leaflet-location.xml slides/map/meridian.xml
slides/map/osm-data-uses.xml slides/map/osm-xapi.xml slides/map/style-3angle.png
Groups: php.pres 
Request: Send a blank email to pres+get-1870@lists.php.net to get a copy of this message
Commit: 686a720c6c164ad8454ef6c1211b15c0820e07d5 Author: Derick Rethans <github@derickrethans.nl> Sat, 23 Feb 2013 14:50:32 +0000 Parents: d7d3d81229615a9e39737d2885769b8d1cc76797 Branches: master Link: http://git.php.net/?p=presentations.git;a=commitdiff;h=686a720c6c164ad8454ef6c1211b15c0820e07d5 Log: OSM talks for PHP UK and ConFoo. Changed paths: A osm-confoo13.xml A osm-london13.xml A slides/map/leaflet-location.xml M slides/map/meridian.xml M slides/map/osm-data-uses.xml M slides/map/osm-xapi.xml A slides/map/style-3angle.png

diff --git a/osm-confoo13.xml b/osm-confoo13.xml new file mode 100644 index 0000000..ea38b3b --- /dev/null +++ b/osm-confoo13.xml @@ -0,0 +1,70 @@ +<?xml version="1.0" encoding="utf-8"?> +<presentation css="10gen-strict.css"> +<topic>Maps</topic> +<title>OpenStreetMap For The Web</title> +<event>ConFoo 2013</event> +<location>Montréal, Canada</location> +<date>February 27th, 2013</date> +<speaker>Derick Rethans</speaker> +<email>derick@derickrethans.nl</email> +<twitter>derickr</twitter> +<joindin>http://joind.in/7840</joindin> +<slide>slides/map/title.xml</slide> +<slide>slides/mongodb/me.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. +--> + +<slide>slides/map/earth-not-a-sphere.xml</slide> +<slide>slides/map/earth-sphere-approximation.xml</slide> +<slide>slides/map/meridian.xml</slide> +<slide>slides/map/projections.xml</slide> + +<!-- +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/leaflet.xml</slide> + +<slide>slides/map/openlayers-location.xml</slide> +<slide>slides/map/leaflet-location.xml</slide> +<slide>slides/map/reverse.xml</slide> +<slide>slides/map/reverse-services.xml</slide> +<slide>slides/map/osrm.xml</slide> +<slide>slides/map/osrm-services.xml</slide> + +<slide>slides/map/html-location-services.xml</slide> + +<slide>slides/map/osm-data.xml</slide> + +<slide>slides/map/osm-tags-edit.xml</slide> + + +<slide>slides/map/osm-mapping-party1.xml</slide> +<slide>slides/map/osm-mapping-party2.xml</slide> +<slide>slides/map/osm-editors.xml</slide> +<slide>slides/map/osm-kibera.xml</slide> +<slide>slides/map/gmm-korogocho2.xml</slide> +<slide>slides/map/osm-sad-face.xml</slide> +<slide>slides/map/osm-happy-face.xml</slide> + +<slide>slides/map/osm-xapi.xml</slide> +<slide>slides/map/osm-data-uses.xml</slide> + +<slide>slides/mongodb/resources.xml</slide> +<slide>slides/map/osm-qa.xml</slide> + +</presentation> diff --git a/osm-london13.xml b/osm-london13.xml new file mode 100644 index 0000000..1474762 --- /dev/null +++ b/osm-london13.xml @@ -0,0 +1,68 @@ +<?xml version="1.0" encoding="utf-8"?> +<presentation css="10gen-strict.css"> +<topic>Maps</topic> +<title>OpenStreetMap For The Web</title> +<event>PHP UK 2013</event> +<location>London, UK</location> +<date>February 23rd, 2013</date> +<speaker>Derick Rethans</speaker> +<email>derick@derickrethans.nl</email> +<twitter>derickr</twitter> +<joindin>http://joind.in/8053</joindin> +<slide>slides/map/title.xml</slide> +<slide>slides/mongodb/me.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. +--> + +<slide>slides/map/earth-not-a-sphere.xml</slide> +<slide>slides/map/earth-sphere-approximation.xml</slide> +<slide>slides/map/meridian.xml</slide> +<slide>slides/map/projections.xml</slide> + +<!-- +What is X? +--> +<slide>slides/map/osm-what.xml</slide> +<slide>slides/map/what-is-osm.xml</slide> + + + +<slide>slides/map/leaflet.xml</slide> + +<slide>slides/map/openlayers-location.xml</slide> +<slide>slides/map/leaflet-location.xml</slide> +<slide>slides/map/reverse.xml</slide> +<slide>slides/map/reverse-services.xml</slide> +<slide>slides/map/osrm.xml</slide> +<slide>slides/map/osrm-services.xml</slide> + +<slide>slides/map/html-location-services.xml</slide> + +<slide>slides/map/osm-data.xml</slide> + +<slide>slides/map/osm-tags-edit.xml</slide> + + +<slide>slides/map/osm-mapping-party1.xml</slide> +<slide>slides/map/osm-mapping-party2.xml</slide> +<slide>slides/map/osm-editors.xml</slide> +<slide>slides/map/osm-kibera.xml</slide> +<slide>slides/map/gmm-korogocho2.xml</slide> +<slide>slides/map/osm-sad-face.xml</slide> +<slide>slides/map/osm-happy-face.xml</slide> + +<slide>slides/map/osm-xapi.xml</slide> +<slide>slides/map/osm-data-uses.xml</slide> + +<slide>slides/mongodb/resources.xml</slide> +<slide>slides/map/osm-qa.xml</slide> + +</presentation> diff --git a/slides/map/leaflet-location.xml b/slides/map/leaflet-location.xml new file mode 100644 index 0000000..6c940d7 --- /dev/null +++ b/slides/map/leaflet-location.xml @@ -0,0 +1,7 @@ +<slide> +<title>Address lookups</title> +<div effect="fade-out"> +<iframe filename='examples/leaflet-nominatim-example'/> +</div> +<blurb>https://github.com/derickr/osm-tools/tree/master/leaflet-nominatim-example</blurb> +</slide> diff --git a/slides/map/meridian.xml b/slides/map/meridian.xml index 19e2cfa..5c08905 100644 --- a/slides/map/meridian.xml +++ b/slides/map/meridian.xml @@ -1,6 +1,8 @@ <slide> <title>Greenwich Meridian</title> <iframe filename='examples/ol-meridian.html'/> -<blurb>|ff0000|Greenwich Meridian|</blurb> -<blurb>|0000ff|IRTS Meridian|</blurb> +<example inline="1"> +|ff0000|Greenwich Meridian| +|0000ff|IRTS Meridian| +</example> </slide> diff --git a/slides/map/osm-data-uses.xml b/slides/map/osm-data-uses.xml index 395bcb7..ae76646 100644 --- a/slides/map/osm-data-uses.xml +++ b/slides/map/osm-data-uses.xml @@ -4,5 +4,6 @@ <div effect="fade-in-out"><image filename='style-sea.jpg' x-offset="5" pdf-scale="0.2"/></div> <div effect="fade-in-out"><image filename='style-transport.jpg' x-offset="9" pdf-scale="0.2"/></div> <div effect="fade-in-out"><image filename='style-piste.jpg' x-offset="13" pdf-scale="0.2"/></div> -<div effect="fade-in"><image filename='style-wheel.jpg' x-offset="17" pdf-scale="0.2"/></div> +<div effect="fade-in-out"><image filename='style-wheel.jpg' x-offset="17" pdf-scale="0.2"/></div> +<div effect="fade-in"><image filename='style-3angle.png' x-offset="20" pdf-scale="0.2"/></div> </slide> diff --git a/slides/map/osm-xapi.xml b/slides/map/osm-xapi.xml index f1868b3..35964d9 100644 --- a/slides/map/osm-xapi.xml +++ b/slides/map/osm-xapi.xml @@ -1,43 +1,50 @@ <slide> <title>Fetching OSM data</title> -<example><![CDATA[wget http://download.geofabrik.de/osm/europe/great_britain/england.osm.bz2]]></example> -<blurb>(Or pick a smaller country from -%http://download.geofabrik.de/osm/europe/%)</blurb> +<div effect="fade-out"> +<blurb>The whole planet (bad idea as it's 26GB):</blurb> +<example>http://planet.openstreetmap.org/planet/planet-latest.osm.bz2</example> +<break/> +<blurb>A whole country:</blurb> +<example>http://download.geofabrik.de/openstreetmap/europe/great_britain/england.osm.bz2</example> +<blurb>Or pick a smaller country from<br/> +%http://download.geofabrik.de/openstreetmap/%</blurb> +<break/> + +<blurb>XAPI (via Overpass):</blurb> +<example>http://www.overpass-api.de/api/xapi?*[bbox=7.1,51.2,7.2,51.3][amenity=restaurant]</example> +</div> + +<div effect="fade-in"> +<blurb>Overpass</blurb> <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> -... - <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> +<?php +$bb = '<bbox-query e="0.334" n="51.691" s="51.286" w="-0.510"/>'; + +$data = <<<ENDDATA +<union> + <query type="node"><has-kv k="amenity" v="pub"/>$bb</query> + <query type="way"><has-kv k="amenity" v="pub"/>$bb</query> +</union> +<query type="node"> + <around radius="2"/> + <has-kv k="highway" v="bus_stop"/> +</query> +<print/> +ENDDATA; + +$params = array( + 'http' => array( + 'method' => 'POST', + 'content' => $data, + 'header' => 'Content-Type: application/x-www-form-urlencoded' + ) +); +$ctx = stream_context_create($params); +echo file_get_contents("http://overpass-api.de/api/interpreter", false, $ctx); +?> ]]></example> +</div> + </slide> diff --git a/slides/map/style-3angle.png b/slides/map/style-3angle.png new file mode 100644 index 0000000..209df11 Binary files /dev/null and b/slides/map/style-3angle.png differ
« previous php.pres (#1870) next »