com presentations: Updates for the Mongo/OSM talk for big data con: mongo-osm-bigdatacon13.xml slides/map/finding-food-take2.xml
slides/map/import-script2.xml slides/map/mongo-country.xml slides/map/osm-data.xml slides/map/osm-tags1.jpg slides/map/osm-tags2.jpg
slides/map/osm-tags3.jpg slides/map/osm-tags4.jpg slides/map/osm-what.xml slides/map/osm-xapi.xml slides/map/title.xml

From: Date: Thu, 18 Apr 2013 12:46:08 +0000
Subject: com presentations: Updates for the Mongo/OSM talk for big data con: mongo-osm-bigdatacon13.xml slides/map/finding-food-take2.xml
slides/map/import-script2.xml slides/map/mongo-country.xml slides/map/osm-data.xml slides/map/osm-tags1.jpg slides/map/osm-tags2.jpg
slides/map/osm-tags3.jpg slides/map/osm-tags4.jpg slides/map/osm-what.xml slides/map/osm-xapi.xml slides/map/title.xml
Groups: php.pres 
Request: Send a blank email to pres+get-1879@lists.php.net to get a copy of this message
Commit: 3a4901efdc60efd1a1e1d7df3cdba68eb6e693a8 Author: Derick Rethans <github@derickrethans.nl> Thu, 18 Apr 2013 13:46:08 +0100 Parents: ecc9520f73455d480356135b74c77e30e3cbe5e1 Branches: master Link: http://git.php.net/?p=presentations.git;a=commitdiff;h=3a4901efdc60efd1a1e1d7df3cdba68eb6e693a8 Log: Updates for the Mongo/OSM talk for big data con Changed paths: A mongo-osm-bigdatacon13.xml M slides/map/finding-food-take2.xml M slides/map/import-script2.xml M slides/map/mongo-country.xml M slides/map/osm-data.xml M slides/map/osm-tags1.jpg M slides/map/osm-tags2.jpg M slides/map/osm-tags3.jpg M slides/map/osm-tags4.jpg M slides/map/osm-what.xml M slides/map/osm-xapi.xml M slides/map/title.xml

diff --git a/mongo-osm-bigdatacon13.xml b/mongo-osm-bigdatacon13.xml new file mode 100644 index 0000000..5ba7ff3 --- /dev/null +++ b/mongo-osm-bigdatacon13.xml @@ -0,0 +1,56 @@ +<?xml version="1.0" encoding="utf-8"?> +<presentation css="10gen-strict.css"> +<topic>Maps</topic> +<title>Storing A City, a Country or even a Planet in your DB</title> +<event>BigDataCon</event> +<location>Mainz, Germany</location> +<date>April 23rd, 2013</date> +<speaker>Derick Rethans</speaker> +<email>derick@10gen.com</email> +<twitter>derickr</twitter> +<joindin>http://derickrethans.nl/talks/mongo-osm-bigdatacon13</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/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-xapi.xml</slide> +<slide>slides/mongodb/osm-to-mongo-data.xml</slide> +<slide>slides/mongodb/osm-to-mongo-data2.xml</slide> +<slide>slides/mongodb/osm-to-mongo-data3.xml</slide> +<slide>slides/mongodb/osm-to-mongo-data4.xml</slide> +<slide>slides/mongodb/osm-schema1.xml</slide> +<slide>slides/mongodb/osm-schema2.xml</slide> +<slide>slides/mongodb/osm-schema4.xml</slide> +<slide>slides/mongodb/osm-schema3.xml</slide> +<slide>slides/mongodb/osm-schema-summary.xml</slide> +<slide>slides/map/finding-food-import-mongo2.xml</slide> +<slide>slides/map/import-script2.xml</slide> + +<slide>slides/map/finding-food-take2.xml</slide> + +<slide>slides/map/mongo-country.xml</slide> + +<slide>slides/mongodb/resources.xml</slide> + +</presentation> diff --git a/slides/map/finding-food-take2.xml b/slides/map/finding-food-take2.xml index 3d0b6ec..af9f9fb 100644 --- a/slides/map/finding-food-take2.xml +++ b/slides/map/finding-food-take2.xml @@ -1,5 +1,5 @@ <slide> <title>The data in action!</title> -<iframe filename='examples/find-poi-mongo2.php'/> +<iframe filename='examples/find-poi-3angle.php'/> </slide> diff --git a/slides/map/import-script2.xml b/slides/map/import-script2.xml index b91bd86..3715c06 100644 --- a/slides/map/import-script2.xml +++ b/slides/map/import-script2.xml @@ -5,16 +5,15 @@ <bullet>Open file with XML Reader</bullet> <bullet>Loop over all nodes, and: <list> - <bullet>*Store the node in the database*</bullet> + <bullet>Store the node in the database</bullet> </list> </bullet> <bullet>Loop over all the ways, and: <list> - <bullet>*Look up locations for each node in the database*</bullet> + <bullet>Look up locations for each node in the database</bullet> <bullet>Store the way into the database</bullet> </list> </bullet> - <bullet>Memory usage: 1.3 MB </bullet> </list> <example> "count" : 2253986 diff --git a/slides/map/mongo-country.xml b/slides/map/mongo-country.xml index 6651caa..cb8a36d 100644 --- a/slides/map/mongo-country.xml +++ b/slides/map/mongo-country.xml @@ -2,8 +2,8 @@ <title>And now the planet?</title> <list> - <bullet>*London*: 2m nodes, 0.75m ways, 0.28G data, 0.42GB index: <br />fits easily in RAM</bullet> - <bullet>*UK*: 45m nodes, 10m ways, 5.6GB data, 8.6GB index:<br />fits just in RAM</bullet> + <bullet>*London*: 2m nodes, 0.75m ways, 0.28G data, 0.42GB index: ~fits easily in RAM~</bullet> + <bullet>*UK*: 45m nodes, 10m ways, 5.6GB data, 8.6GB index: fits *just* in RAM</bullet> <bullet>*Planet*: 1500m nodes, 141m ways…</bullet> </list> <div effect="fade-in"> diff --git a/slides/map/osm-data.xml b/slides/map/osm-data.xml index 5c1e6aa..9e461c7 100644 --- a/slides/map/osm-data.xml +++ b/slides/map/osm-data.xml @@ -5,14 +5,11 @@ <bullet>Nodes (Lat/Lon point)<br/> <example><![CDATA[<node id='459517295' lat='50.0100766' lon='8.3162402' user='WoGo' timestamp='2009-08-09T11:45:33Z' uid='152395' version='1' changeset='2083951'>]]></example> </bullet> - <bullet>Ways (Ordered interconnection of nodes, ie: roads)</bullet> - <bullet>Areas (Closed ways, ie: buildings, squares and landuse) + <bullet>Ways/Areas (Roads, buildings, squares and landuse) <example><![CDATA[<way id='76174399' user='Derick Rethans' uid='37137' timestamp='2010-09-06T08:30:14Z' version='1' changeset='5695697'> <nd ref='898861293'/> <nd ref='898861305'/> <nd ref='898861298'/> - <nd ref='898861315'/> - <nd ref='898861293'/> ... </way>]]></example> </bullet> @@ -20,7 +17,6 @@ <example><![CDATA[<tag k='addr:housenumber' v='375'/> <tag k='addr:street' v='Kilburn High Road'/> <tag k='amenity' v='pub'/> -<tag k='building' v='yes'/> <tag k='name' v='North London Tavern'/>]]></example> </bullet> </list> diff --git a/slides/map/osm-tags1.jpg b/slides/map/osm-tags1.jpg index deca09e..1e6a326 100644 Binary files a/slides/map/osm-tags1.jpg and b/slides/map/osm-tags1.jpg differ diff --git a/slides/map/osm-tags2.jpg b/slides/map/osm-tags2.jpg index 360b7a2..5e7bad5 100644 Binary files a/slides/map/osm-tags2.jpg and b/slides/map/osm-tags2.jpg differ diff --git a/slides/map/osm-tags3.jpg b/slides/map/osm-tags3.jpg index a112483..9acaf40 100644 Binary files a/slides/map/osm-tags3.jpg and b/slides/map/osm-tags3.jpg differ diff --git a/slides/map/osm-tags4.jpg b/slides/map/osm-tags4.jpg index 12e00f3..e13f84b 100644 Binary files a/slides/map/osm-tags4.jpg and b/slides/map/osm-tags4.jpg differ diff --git a/slides/map/osm-what.xml b/slides/map/osm-what.xml index 8981dd3..e9fea9d 100644 --- a/slides/map/osm-what.xml +++ b/slides/map/osm-what.xml @@ -1,12 +1,12 @@ <slide> <title>OpenStreetMap</title> -<image filename="osm.png" align="center" pdf-scale="0.6"/> +<image filename="osm.png" align="right" pdf-scale="0.6"/> <list> <bullet>"Wikipedia for Map *Data*"</bullet> <bullet> - <blurb>Licensed under the Open Database License (ODbL 1.0):</blurb> + <blurb>Licensed under the Open Database License:</blurb> <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 35964d9..1257971 100644 --- a/slides/map/osm-xapi.xml +++ b/slides/map/osm-xapi.xml @@ -18,26 +18,25 @@ <div effect="fade-in"> <blurb>Overpass</blurb> -<example><![CDATA[ -<?php -$bb = '<bbox-query e="0.334" n="51.691" s="51.286" w="-0.510"/>'; +<example inline="3"><![CDATA[ +&lt;?php +$bb = '&lt;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; +*$data = &lt;&lt;&lt;ENDDATA* +*&lt;union>* +* &lt;query type="node">&lt;has-kv k="amenity" v="pub"/>$bb&lt;/query>* +* &lt;query type="way">&lt;has-kv k="amenity" v="pub"/>$bb&lt;/query>* +*&lt;/union>* +*&lt;query type="node">* +* &lt;around radius="2"/>* +* &lt;has-kv k="highway" v="bus_stop"/>* +*&lt;/query>* +*&lt;print/>* +*ENDDATA;* $params = array( 'http' => array( - 'method' => 'POST', - 'content' => $data, + 'method' => 'POST', 'content' => $data, 'header' => 'Content-Type: application/x-www-form-urlencoded' ) ); diff --git a/slides/map/title.xml b/slides/map/title.xml index 5d76ded..85b0394 100644 --- a/slides/map/title.xml +++ b/slides/map/title.xml @@ -1,9 +1,6 @@ <slide template="white" type="title" background="london-map-old.jpg"> <blurb class="event-title">:-:title:-:</blurb> -<blurb class="event-date">:-:event:-:</blurb> -<blurb class="event-date">:-:location:-: - :-:date:-:</blurb> -<break/> -<blurb class="event-presenter">Derick Rethans - :-:email:-: - @:-:twitter:-:</blurb> -<blurb class="pres-url-small">:-:url:-:</blurb> +<blurb class="event-date">:-:event:-:—:-:location:-:—:-:date:-:</blurb> +<blurb class="event-presenter">Derick Rethans—:-:email:-:—@:-:twitter:-:</blurb> <blurb class="pres-url-small">:-:joindin:-:</blurb> </slide>
« previous php.pres (#1879) next »