com presentations: Added sections, and tweaked the import slide (and column support): mongo-osm-bigdatacon13.xml
slides/map/finding-food-import-mongo2.xml slides/map/osm-xapi.xml slides/mongodb/osm-import-4times-section.xml
slides/mongodb/osm-import-mongo-section.xml slides/mongodb/osm-import-script-section.xml slides/mongodb/store-city-agenda.xml
templates/default/table.ezt
| From: | Derick Rethans | Date: | Thu, 18 Apr 2013 16:18:00 +0000 |
| Subject: | com presentations: Added sections, and tweaked the import slide (and column support): mongo-osm-bigdatacon13.xml slides/map/finding-food-import-mongo2.xml slides/map/osm-xapi.xml slides/mongodb/osm-import-4times-section.xml slides/mongodb/osm-import-mongo-section.xml slides/mongodb/osm-import-script-section.xml slides/mongodb/store-city-agenda.xml templates/default/table.ezt |
||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-1882@lists.php.net to get a copy of this message | ||
Commit: db407fd508a16e0946f2baa4f39596decd772437
Author: Derick Rethans <github@derickrethans.nl> Thu, 18 Apr 2013 17:18:00 +0100
Parents: 7beddc5671446b9e0272aed799e4578d98b5553f
Branches: master
Link: http://git.php.net/?p=presentations.git;a=commitdiff;h=db407fd508a16e0946f2baa4f39596decd772437
Log:
Added sections, and tweaked the import slide (and column support)
Changed paths:
M mongo-osm-bigdatacon13.xml
M slides/map/finding-food-import-mongo2.xml
M slides/map/osm-xapi.xml
A slides/mongodb/osm-import-4times-section.xml
A slides/mongodb/osm-import-mongo-section.xml
A slides/mongodb/osm-import-script-section.xml
A slides/mongodb/store-city-agenda.xml
M templates/default/table.ezt
Diff:
diff --git a/mongo-osm-bigdatacon13.xml b/mongo-osm-bigdatacon13.xml
index 5ba7ff3..1afaa84 100644
--- a/mongo-osm-bigdatacon13.xml
+++ b/mongo-osm-bigdatacon13.xml
@@ -12,6 +12,7 @@
<slide>slides/map/title.xml</slide>
+<slide>slides/mongodb/store-city-agenda.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
@@ -25,6 +26,7 @@ added to and used in whatever way imaginary.
<!--
What is X?
-->
+<slide>slides/map/store-data-section.xml</slide>
<slide>slides/map/osm-what.xml</slide>
<slide>slides/map/osm-data.xml</slide>
@@ -35,15 +37,22 @@ What is X?
<slide>slides/map/osm-tags4.xml</slide>
<slide>slides/map/osm-xapi.xml</slide>
+
+
+<slide>slides/mongodb/osm-import-mongo-section.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-import-4times-section.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/mongodb/osm-import-script-section.xml</slide>
<slide>slides/map/finding-food-import-mongo2.xml</slide>
<slide>slides/map/import-script2.xml</slide>
diff --git a/slides/map/finding-food-import-mongo2.xml b/slides/map/finding-food-import-mongo2.xml
index d11783d..80232a4 100644
--- a/slides/map/finding-food-import-mongo2.xml
+++ b/slides/map/finding-food-import-mongo2.xml
@@ -1,26 +1,57 @@
<slide>
<title>Importing data</title>
+<table class="columns">
+<tr>
+<td>
+<example><![CDATA[
+<way id="77002328" version="1"
+ changeset="5749014" uid="37137"
+ user="Derick Rethans"
+ timestamp="2010-09-11T11:25:48Z">
+ <nd ref="906743010"/>
+ <nd ref="906743004"/>
+ <nd ref="906742995"/>
+ <nd ref="906742998"/>
+ <nd ref="906743010"/>
+ <tag k="addr:housenumber" v="16" />
+ <tag k="addr:postcode" v="W1J 5HP" />
+ <tag k="addr:street" v="Curzon Street" />
+ <tag k="amenity" v="restaurant" />
+ <tag k="building" v="yes" />
+ <tag k="cuisine" v="lebanese" />
+ <tag k="name" v="Noura" />
+</way>]]>
+</example>
+</td>
+
+<td>
+<blurb class="large">→</blurb>
+</td>
+
+<td>
<example>{
- "_id" : "w77002328",
- "type" : NumberLong(2),
- "tags" : [
- "addr:housenumber=16",
- "addr:postcode=W1J 5HP",
- "addr:street=Curzon Street",
- "amenity=restaurant",
- "building=yes",
- "contact:phone=+44 20 74951050",
- "cuisine=lebanese",
- "name=Noura"
- ],
- "loc" : [
- [ -0.1479191, 51..5067744 ],
- [ -0.1480757, 51.5067491 ],
- [ -0.1481252, 51.5068679 ],
- [ -0.1479687, 51.5068932 ],
- [ -0.1479191, 51.5067744 ]
- ]
+ "_id" : "w77002328",
+ "type" : NumberLong(2),
+ "tags" : [
+ "addr:housenumber=16",
+ "addr:postcode=W1J 5HP",
+ "addr:street=Curzon Street",
+ "amenity=restaurant",
+ "building=yes",
+ "cuisine=lebanese",
+ "name=Noura"
+ ],
+ "loc" : [
+ [ -0.1479191, 51.5067744 ],
+ [ -0.1480757, 51.5067491 ],
+ [ -0.1481252, 51.5068679 ],
+ [ -0.1479687, 51.5068932 ],
+ [ -0.1479191, 51.5067744 ]
+ ]
}
</example>
+</td>
+</tr>
+</table>
</slide>
diff --git a/slides/map/osm-xapi.xml b/slides/map/osm-xapi.xml
index 1257971..68f1ab0 100644
--- a/slides/map/osm-xapi.xml
+++ b/slides/map/osm-xapi.xml
@@ -1,7 +1,7 @@
<slide>
<title>Fetching OSM data</title>
-<div effect="fade-out">
+<div effect="fade-out stop">
<blurb>The whole planet (bad idea as it's 26GB):</blurb>
<example>http://planet.openstreetmap.org/planet/planet-latest.osm.bz2</example>
<break/>
diff --git a/slides/mongodb/osm-import-4times-section.xml
b/slides/mongodb/osm-import-4times-section.xml
new file mode 100644
index 0000000..66f8555
--- /dev/null
+++ b/slides/mongodb/osm-import-4times-section.xml
@@ -0,0 +1,3 @@
+<slide type="section">
+<blurb>Four different approaches</blurb>
+</slide>
diff --git a/slides/mongodb/osm-import-mongo-section.xml
b/slides/mongodb/osm-import-mongo-section.xml
new file mode 100644
index 0000000..64031ec
--- /dev/null
+++ b/slides/mongodb/osm-import-mongo-section.xml
@@ -0,0 +1,3 @@
+<slide type="section">
+<blurb>Converting the data for import</blurb>
+</slide>
diff --git a/slides/mongodb/osm-import-script-section..xml
b/slides/mongodb/osm-import-script-section.xml
new file mode 100644
index 0000000..edb008c
--- /dev/null
+++ b/slides/mongodb/osm-import-script-section.xml
@@ -0,0 +1,3 @@
+<slide type="section">
+<blurb>The Import</blurb>
+</slide>
diff --git a/slides/mongodb/store-city-agenda.xml b/slides/mongodb/store-city-agenda.xml
new file mode 100644
index 0000000..9a2f2d6
--- /dev/null
+++ b/slides/mongodb/store-city-agenda.xml
@@ -0,0 +1,10 @@
+<slide>
+<title>Agenda</title>
+
+<list>
+ <bullet>The Data</bullet>
+ <bullet>Formatting the Data</bullet>
+ <bullet>Four different approches</bullet>
+ <bullet>Importing into MongoDB</bullet>
+</list>
+</slide>
diff --git a/templates/default/table.ezt b/templates/default/table.ezt
index d20f242..fc5cf6d 100644
--- a/templates/default/table.ezt
+++ b/templates/default/table.ezt
@@ -1,6 +1,7 @@
{use $node, $pres}
+{var $class = get_attribute( $node, 'class' )}
<div>
-<table>
+<table{if $class} class="{$class}"{/if}>
{foreach $node->childNodes as $child}
{if is_set( $child->tagName )}
{include $child->tagName . '.ezt' send $child as $node, $pres}