com presentations: FrOSCon and State of the Map presentations.: 3angle-froscon13.xml 3angle-sotm13.xml mongo-osm-froscon13.xml
osm-visualisation-sotm13.xml slides/map/3angle-badges.xml slides/map/3angle-different-tags.xml slides/map/3angle-different-types.xml
slides/map/3angle-example.xml slides/map/3angle-intro.xml slides/map/3angle-mongo-finding-cuisines.xml slides/map/3angle-mongo-geoquery.xml
slides/map/3angle-penalties.xml slides/map/3angle-
| From: | Derick Rethans | Date: | Thu, 05 Sep 2013 15:44:24 +0000 |
| Subject: | com presentations: FrOSCon and State of the Map presentations.: 3angle-froscon13.xml 3angle-sotm13.xml mongo-osm-froscon13.xml osm-visualisation-sotm13.xml slides/map/3angle-badges.xml slides/map/3angle-different-tags.xml slides/map/3angle-different-types.xml slides/map/3angle-example.xml slides/map/3angle-intro.xml slides/map/3angle-mongo-finding-cuisines.xml slides/map/3angle-mongo-geoquery.xml slides/map/3angle-penalties.xml slides/map/3angle- |
||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-1909@lists.php.net to get a copy of this message | ||
Commit: 3af5ed09f5ebb4c2fb9c11ff8f6a1e7b47824fce
Author: Derick Rethans <github@derickrethans.nl> Thu, 5 Sep 2013 16:44:24 +0100
Parents: ccf7ea41a456a96c0c8970f9181224e3fd20b864
Branches: master
Link: http://git.php.net/?p=presentations.git;a=commitdiff;h=3af5ed09f5ebb4c2fb9c11ff8f6a1e7b47824fce
Log:
FrOSCon and State of the Map presentations.
Changed paths:
A 3angle-froscon13.xml
A 3angle-sotm13.xml
A mongo-osm-froscon13.xml
A osm-visualisation-sotm13.xml
A slides/map/3angle-badges.xml
A slides/map/3angle-different-tags.xml
A slides/map/3angle-different-types.xml
A slides/map/3angle-example.xml
A slides/map/3angle-intro.xml
A slides/map/3angle-mongo-finding-cuisines.xml
A slides/map/3angle-mongo-geoquery.xml
A slides/map/3angle-penalties.xml
A slides/map/3angle-points.xml
A slides/map/3angle-progress.xml
A slides/map/3angle-rough-outline.xml
A slides/map/3angle-select.png
A slides/map/3angle-storing-suggestions.xml
A slides/map/3angle-tags-not-equal.xml
A slides/map/3angle-tech.xml
A slides/map/3angle-vote.xml
A slides/map/3angle-what.xml
A slides/map/3angle-wrapup.xml
A slides/map/4sq1.png
A slides/map/4sq2.png
A slides/map/4sq3.png
A slides/map/4sq4.png
A slides/map/artwork.png
A slides/map/clock-hour.jpg
A slides/map/combine-points.png
A slides/map/edit-points.png
A slides/map/foursquare-addict.xml
A slides/map/foursquare1.xml
A slides/map/foursquare2.xml
A slides/map/foursquare3.xml
A slides/map/foursquare4.xml
A slides/map/import-example-froscon.xml
M slides/map/import-script.xml
A slides/map/mask-08-argentina-partial.png
A slides/map/mask-08-argentina.png
M slides/map/osm-happy-face.xml
M slides/map/osm-mapping-party1.xml
A slides/map/osm-sad-face-4sq.xml
M slides/map/osm-sad-face.xml
M slides/map/osm-xapi.xml
A slides/map/short-cut-road.jpg
A slides/map/thumbnails.png
A slides/map/vis-artwork.xml
A slides/map/vis-calculate-difference.xml
A slides/map/vis-combine-edit-points.xml
A slides/map/vis-convert-images-into-movie.xml
A slides/map/vis-fetching-data.xml
A slides/map/vis-getting-data.xml
A slides/map/vis-how-does-it-work-automated.xml
A slides/map/vis-how-does-it-work.xml
A slides/map/vis-is-that-all.xml
A slides/map/vis-music.xml
A slides/map/vis-not-too-spectacular.xml
A slides/map/vis-prerequisites.xml
A slides/map/vis-progress-what-does-it-show.xml
A slides/map/vis-render-edit-points.xml
A slides/map/vis-render-maps.xml
A slides/map/vis-setup-replication.xml
A slides/map/vis-shots.xml
A slides/map/vis-start.xml
A slides/map/vis-what-next.xml
A slides/map/vis-yoe-basic-idea.xml
A slides/map/vis-yoe-changes-video-partial.xml
A slides/map/vis-yoe-changes-video.xml
A slides/map/vis-yoe-flat-to-3d.xml
A slides/map/vis-yoe-mask.xml
A slides/map/vis-yoe-reaction-period.xml
A slides/map/vis-yoe-redaction.xml
A slides/map/vis-yoe-special-variants.xml
A slides/map/vis-yoe-step1-grabbing-changes.xml
A slides/map/vis-yoe-step2-combining-changes.xml
A slides/map/vis-yoe-video-redaction.xml
A slides/map/vis-yoe-video.xml
A slides/map/year-of-edits-redaction.jpg
M slides/mongodb/geo-aggregation2.xml
M slides/mongodb/resources.xml
M slides/mongodb/title.xml
A templates/default/video.ezt
diff --git a/3angle-froscon13.xml b/3angle-froscon13.xml new file mode 100644 index 0000000..2f0fda5 --- /dev/null +++ b/3angle-froscon13.xml @@ -0,0 +1,65 @@ +<?xml version="1.0" encoding="utf-8"?> +<presentation css="10gen-strict.css"> +<topic>MongoDB</topic> +<title>Gamifying Map Improvements with MongoDB</title> +<event>FrOSCon</event> +<location>Sankt Augustin, Germany</location> +<lat>50.77884</lat><lon>7.18483</lon> +<date>August 25th, 2013</date> +<speaker>Derick Rethans</speaker> +<email>derick@10gen.com</email> +<twitter>derickr</twitter> +<joindin>http://derickrethans.nl/talks/3angle-froscon13</joindin> + +<slide>slides/mongodb/title.xml</slide> + +<!-- Foursquare --> +<slide>slides/map/foursquare1.xml</slide> +<slide>slides/map/foursquare2.xml</slide> +<slide>slides/map/foursquare-addict.xml</slide> +<slide>slides/map/foursquare4.xml</slide> +<slide>slides/map/foursquare3.xml</slide> + +<!-- OSM introduction --> +<slide>slides/map/osm-what.xml</slide> +<slide>slides/map/what-is-osm.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-kibera.xml</slide> + +<!-- Compare --> +<slide>slides/map/osm-happy-face.xml</slide> +<slide>slides/map/osm-sad-face-4sq.xml</slide> + +<!-- 3angle example --> +<slide>slides/map/3angle-intro.xml</slide> +<slide>slides/map/3angle-example.xml</slide> + +<!-- how --> +<!-- import --> +<slide>slides/map/osm-xapi.xml</slide> +<slide>slides/map/import-script.xml</slide> +<slide>slides/map/import-example-froscon.xml</slide> +<slide>slides/map/3angle-what.xml</slide> +<slide>slides/map/3angle-different-tags.xml</slide> +<slide>slides/map/3angle-different-types.xml</slide> +<slide>slides/map/3angle-tags-not-equal.xml</slide> +<slide>slides/map/3angle-rough-outline.xml</slide> +<slide>slides/map/3angle-points.xml</slide> +<slide>slides/map/3angle-penalties.xml</slide> +<slide>slides/map/3angle-badges.xml</slide> + +<!-- technology --> +<slide>slides/map/3angle-tech.xml</slide> +<slide>slides/map/3angle-mongo-geoquery.xml</slide> +<slide>slides/map/3angle-mongo-finding-cuisines.xml</slide> +<slide>slides/map/3angle-storing-suggestions.xml</slide> +<slide>slides/map/3angle-vote.xml</slide> +<slide>slides/map/3angle-progress.xml</slide> + +<slide>slides/map/3angle-wrapup.xml</slide> + +<slide>slides/mongodb/resources.xml</slide> + +</presentation> diff --git a/3angle-sotm13.xml b/3angle-sotm13.xml new file mode 100644 index 0000000..58bb505 --- /dev/null +++ b/3angle-sotm13.xml @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="utf-8"?> +<presentation css="10gen-strict.css"> +<topic>MongoDB</topic> +<title>Gamifying Map Improvements</title> +<event>State of the Map</event> +<location>Birmingham, UK</location> +<lat>52.48142</lat><lon>-1.89983</lon> +<date>September 6th, 2013</date> +<speaker>Derick Rethans</speaker> +<email>osm@derickrethans.nl</email> +<twitter>derickr</twitter> +<joindin>http://derickrethans.nl/talks/3angle-sotm13</joindin> + +<slide>slides/mongodb/title.xml</slide> + +<!-- Foursquare --> +<slide>slides/map/foursquare1.xml</slide> +<slide>slides/map/foursquare2.xml</slide> +<slide>slides/map/foursquare-addict.xml</slide> +<slide>slides/map/foursquare4.xml</slide> +<slide>slides/map/foursquare3.xml</slide> + +<!-- 3angle example --> +<slide>slides/map/3angle-intro.xml</slide> +<slide>slides/map/3angle-example.xml</slide> + +<!-- how --> +<!-- import --> +<slide>slides/map/import-script.xml</slide> +<slide>slides/map/import-example-froscon.xml</slide> +<slide>slides/map/3angle-what.xml</slide> +<slide>slides/map/3angle-different-tags.xml</slide> +<slide>slides/map/3angle-different-types.xml</slide> +<slide>slides/map/3angle-tags-not-equal.xml</slide> +<slide>slides/map/3angle-rough-outline.xml</slide> +<slide>slides/map/3angle-points.xml</slide> +<slide>slides/map/3angle-penalties.xml</slide> +<slide>slides/map/3angle-badges.xml</slide> + +<!-- technology --> +<slide>slides/map/3angle-tech.xml</slide> +<slide>slides/map/3angle-mongo-geoquery.xml</slide> +<slide>slides/map/3angle-storing-suggestions.xml</slide> +<slide>slides/map/3angle-vote.xml</slide> +<slide>slides/map/3angle-progress.xml</slide> + +<slide>slides/map/3angle-wrapup.xml</slide> + +<slide>slides/mongodb/resources.xml</slide> + +</presentation> diff --git a/mongo-osm-froscon13.xml b/mongo-osm-froscon13.xml new file mode 100644 index 0000000..c0e22d5 --- /dev/null +++ b/mongo-osm-froscon13.xml @@ -0,0 +1,170 @@ +<?xml version="1.0" encoding="utf-8"?> +<presentation css="10gen-strict.css"> +<topic>MongoDB</topic> +<title>Finding Pubs… (and other things)</title> +<event>FrOSCon</event> +<location>Sankt Augustin, Germany</location> +<lat>50.77884</lat><lon>7.18483</lon> +<date>August 24th, 2013</date> +<speaker>Derick Rethans</speaker> +<email>derick@10gen.com</email> +<twitter>derickr</twitter> +<joindin>http://derickrethans.nl/talks/mongo-osm-froscon13</joindin> + +<slide>slides/mongodb/title.xml</slide> + +<slide>slides/mongodb/closed-pub.xml</slide> +<!-- A few words about our dataset --> +<slide>slides/mongodb/few-words-about-osm.xml</slide> + +<slide>slides/mongodb/flat-vs-sphere.xml</slide> + +<slide>slides/map/flat-sphere-flickr.xml</slide> + +<!-- DATA STORAGE --> +<!-- + No more [ lon, lat ], but geojson instead + +SAY WHERE ELSE GeoJson is used +--> +<slide>slides/mongodb/geojson.xml</slide> + +<!-- + POINT: + show an image, and the GeoJson under +--> +<slide>slides/mongodb/geojson-point.xml</slide> +<!-- + LINESTRING: + show an image, and the GeoJson under +--> +<slide>slides/mongodb/geojson-linestring.xml</slide> +<!-- + POLYGON: + show an image, and the GeoJson under +--> +<slide>slides/mongodb/geojson-polygon.xml</slide> + +<!-- + CELLS, + We divide the surface of the earth into cells + A library called S2 from Google does the hard work + Cells have a level which define the size of the cell. + S2 provides 31 levels + The higher the level, the smaller the cell, and therefore the more needed to cover the earth + By default, we use all levels between 500m on a side and 100km on a side +--> +<slide>slides/mongodb/cells.xml</slide> +<!-- + Show grid of (part of) London: + - Point, Westminster palace + - Line, Oxford Street + - Polygon, Hyde Park +--> +<slide>slides/mongodb/cells-level10-example-london-1.xml</slide> +<slide>slides/mongodb/cells-level10-example-london-2.xml</slide> +<slide>slides/mongodb/cells-level10-example-london-3.xml</slide> + + +<!-- operators + $near + find stuff near a point + index required + $geoWithin + find stuff within a polygon/circle + index NOT required + $geoIntersects + find stuff that intersects with other stuff + index NOT required + +--> +<slide>slides/mongodb/geo-in-2.4.xml</slide> + +<!-- near + - Example with road and park + - slide with index/no index, and comparsion with 2.2? +--> +<!-- geoWithin + - Example with road and park + - slide with index/no index, and comparsion with 2.2? +--> +<!-- geoIntersects + - Example with road and park + - slide with index/no index, and comparsion with 2.2? +--> +<slide>slides/mongodb/geo-near.xml</slide> + +<!-- + NEAR + + Starts from a point + Looks at concentric donuts from that point + Want to look at documents within the donut + If distance from query point to document is within the donut, output + Adapts size of the donut as needed +--> +<slide>slides/mongodb/geo-near-explanation-0.xml</slide> +<slide>slides/mongodb/geo-near-explanation-1.xml</slide> +<slide>slides/mongodb/geo-near-explanation-2.xml</slide> +<slide>slides/mongodb/geo-near-explanation-3.xml</slide> +<slide>slides/mongodb/geo-near-explanation-4.xml</slide> +<slide>slides/mongodb/geo-near-explanation-5.xml</slide> +<slide>slides/mongodb/geo-near-explanation-6.xml</slide> +<slide>slides/mongodb/geo-near-explanation-7.xml</slide> + +<!-- + GeoWithin/GeoIntersecs + + Generate a covering for geometry in query + Look at all points in all overlapping cells + Cells may be larger or smaller than our covering + Must look at cells that contain our covering + Must look at cells that we contain + See if documents are within or intersect our query geometry + + Show examples of: + - within: The Palace of Westminster (point) in "City of Westminster" (polygon) + - intersect: thames (line) crossing London (polygon) +--> +<slide>slides/mongodb/geo-within.xml</slide> +<slide>slides/mongodb/geo-within-1.xml</slide> +<slide>slides/mongodb/geo-within-2.xml</slide> + +<slide>slides/mongodb/geo-intersects.xml</slide> + + +<!-- +Without index: + $near + Look at every point + Sort by distance + Very slow, so requires an index. + $geoWithin + Look at every document + Is it within the query polygon? + Order is arbitrary + $geoIntersects + Look at every document + Does it intersect with the query geometry? + Order is arbitrary +--> +<!-- AGGREGATION: + + - show tube stations per borough + - show pubs by borough + +http://docs.mongodb.org/manual/reference/aggregation/#stage._S_geoNear + +- distance is important +- $geoNear in aggregation can't deal with more than one 2dsphere index +- spherical option is *required* when using a 2dsphere index +--> +<slide>slides/mongodb/geo-aggregation.xml</slide> +<slide>slides/mongodb/geo-aggregation2.xml</slide> + +<slide>slides/map/osm-xapi.xml</slide> +<slide>slides/map/import-script-manchester.xml</slide> + +<slide>slides/mongodb/resources.xml</slide> + +</presentation> diff --git a/osm-visualisation-sotm13.xml b/osm-visualisation-sotm13.xml new file mode 100644 index 0000000..8de1a39 --- /dev/null +++ b/osm-visualisation-sotm13.xml @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="utf-8"?> +<presentation css="10gen-strict.css"> +<topic>MongoDB</topic> +<title>Visualising Progress</title> +<event>State of the Map</event> +<location>Birmingham, UK</location> +<lat>52.48142</lat><lon>-1.89983</lon> +<date>September 7th, 2013</date> +<speaker>Derick Rethans</speaker> +<email>osm@derickrethans.nl</email> +<twitter>derickr</twitter> +<joindin>http://derickrethans.nl/talks/osm-visualisation-sotm13</joindin> + +<slide>slides/mongodb/title.xml</slide> +<slide>slides/mongodb/me.xml</slide> + +<!-- It all started in Kensington… --> +<slide>slides/map/vis-start.xml</slide> +<slide>slides/map/vis-not-too-spectacular.xml</slide> +<slide>slides/map/vis-shots.xml</slide> +<slide>slides/map/vis-progress-what-does-it-show.xml</slide> +<slide>slides/map/vis-how-does-it-work.xml</slide> +<slide>slides/map/vis-prerequisites.xml</slide> +<slide>slides/map/vis-getting-data.xml</slide> +<slide>slides/map/vis-setup-replication.xml</slide> +<slide>slides/map/vis-fetching-data.xml</slide> +<slide>slides/map/vis-artwork.xml</slide> +<slide>slides/map/vis-calculate-difference.xml</slide> +<slide>slides/map/vis-render-edit-points.xml</slide> +<slide>slides/map/vis-render-maps.xml</slide> +<slide>slides/map/vis-combine-edit-points.xml</slide> +<slide>slides/map/vis-convert-images-into-movie.xml</slide> +<slide>slides/map/vis-music.xml</slide> + +<slide>slides/map/vis-is-that-all.xml</slide> +<slide>slides/map/vis-yoe-redaction.xml</slide> +<slide>slides/map/vis-yoe-basic-idea.xml</slide> +<slide>slides/map/vis-yoe-step1-grabbing-changes.xml</slide> +<slide>slides/map/vis-yoe-step2-combining-changes.xml</slide> +<slide>slides/map/vis-yoe-changes-video.xml</slide> +<slide>slides/map/vis-yoe-flat-to-3d.xml</slide> +<slide>slides/map/vis-yoe-video.xml</slide> +<slide>slides/map/vis-yoe-reaction-period.xml</slide> +<slide>slides/map/vis-yoe-video-redaction.xml</slide> +<slide>slides/map/vis-yoe-special-variants.xml</slide> +<slide>slides/map/vis-yoe-mask.xml</slide> +<slide>slides/map/vis-yoe-changes-video-partial.xml</slide> + +<slide>slides/map/vis-what-next.xml</slide> +<slide>slides/mongodb/questions.xml</slide> + +<slide>slides/mongodb/resources.xml</slide> + +</presentation> diff --git a/slides/map/3angle-badges.xml b/slides/map/3angle-badges.xml new file mode 100644 index 0000000..e328b47 --- /dev/null +++ b/slides/map/3angle-badges.xml @@ -0,0 +1,14 @@ +<slide> +<title>Badges</title> + +<blurb>*Awarded for (cron):*</blurb> +<list> + <bullet>1st, 5th, 10th, … for a category</bullet> + <bullet>1st, 5th, 10th, … for a tag type</bullet> + <bullet>1st, 5th, 10th, … for an area</bullet> + <bullet>Accepted suggestions in a specific timeframe</bullet> + <bullet>Plus and minus votes</bullet> + <bullet>Corrected tags vs. new tags</bullet> + <bullet>Special challenges (disabilities, Octoberfest etc)</bullet> +</list> +</slide> diff --git a/slides/map/3angle-different-tags.xml b/slides/map/3angle-different-tags.xml new file mode 100644 index 0000000..151ef2f --- /dev/null +++ b/slides/map/3angle-different-tags.xml @@ -0,0 +1,23 @@ +<slide> +<title>Different Tags</title> + +<blurb>*All:*<br/> + Name, Address, Smoking, Wheelchair, Opening Times +</blurb> + +<blurb>*Restaurant:*<br/> + Cuisine +</blurb> + +<blurb>*Pub:*<br/> + Real Ale?, Real Cider? +</blurb> + +<blurb>*Telephone:*<br/> + Payment methods +</blurb> + +<blurb>*Benches:*<br/> + Material, Backrest, Sun +</blurb> +</slide> diff --git a/slides/map/3angle-different-types.xml b/slides/map/3angle-different-types.xml new file mode 100644 index 0000000..271dd11 --- /dev/null +++ b/slides/map/3angle-different-types.xml @@ -0,0 +1,7 @@ +<slide> +<title>Field types</title> + +<blurb>Fields can be free-form, or a dropdown:</blurb> + +<image filename="3angle-select.png"/> +</slide> diff --git a/slides/map/3angle-example.xml b/slides/map/3angle-example.xml new file mode 100644 index 0000000..40b4008 --- /dev/null +++ b/slides/map/3angle-example.xml @@ -0,0 +1,5 @@ +<slide> + <title>3angle</title> + + <iframe width="1000" filename='examples/3angle/?l=threeangle&zoom=17;&lat=:-:lat:-:&lon=:-:lon:-:'/> +</slide> diff --git a/slides/map/3angle-intro.xml b/slides/map/3angle-intro.xml new file mode 100644 index 0000000..49a77a8 --- /dev/null +++ b/slides/map/3angle-intro.xml @@ -0,0 +1,18 @@ +<slide> +<title>3angle</title> + +<blurb>Introducing 3angle</blurb> + +<blurb align="center">~…insert fancy logo here…~</blurb> + +<list> + <bullet>Give points for *improving* the information in already existing PoIs</bullet> + <bullet>Give points for vetting new information</bullet> + <bullet>Built on top of MongoDB</bullet> +</list> +<break/> +<list> + <bullet>Come up with some fancy badges</bullet> + <bullet>What sort of PoIs?</bullet> +</list> +</slide> diff --git a/slides/map/3angle-mongo-finding-cuisines.xml b/slides/map/3angle-mongo-finding-cuisines.xml new file mode 100644 index 0000000..3da08d8 --- /dev/null +++ b/slides/map/3angle-mongo-finding-cuisines.xml @@ -0,0 +1,27 @@ +<slide> +<title>Finding used values</title> + +<blurb>Using MongoDB's aggregation framework</blurb> +<example> +define( 'TAGS', 'ts' ); + +$pipeline = [ + '$match' => [ TAGS => new MongoRegex( '/^cuisine=[a-z_-]+$/' ) ], + + '$project' => [ TAGS => 1 ], + + '$unwind' => '$' . TAGS, + + '$match' => [ TAGS => new MongoRegex( '/^cuisine=[a-z_-]+$/' ) ], + + '$group' => [ + '_id' => '$' . TAGS, + 'count' => [ '$sum' => 1 ], + ), + + '$sort' => [ '_id' => 1 ] +]; + +$result = $this->c->aggregate( $pipeline ); +</example> +</slide> diff --git a/slides/map/3angle-mongo-geoquery.xml b/slides/map/3angle-mongo-geoquery.xml new file mode 100644 index 0000000..9ca41c8 --- /dev/null +++ b/slides/map/3angle-mongo-geoquery.xml @@ -0,0 +1,28 @@ +<slide> +<title>Finding the items</title> + +<blurb>GeoJSON for data storage:</blurb> +<example inline="1"> +"l" : { + "type" : "Polygon", + "coordinates" : [ + [ + *[ 7.2018081, 50.7697172 ]*, + *[ 7.2017458, 50.7695921 ]*, + *[ 7.2019352, 50.7695544 ]*, + *[ 7.2019975, 50.7696794 ]*, + *[ 7.2018081, 50.7697172 ]* + ] + ] +},</example> +<blurb>Query:</blurb> +<example> +$query = [ + LOC => [ + '$near' => [ + '$geometry' => [ 'type' => 'Point', 'coordinates' => [ 7.19, 50.76 ] ], + '$maxDistance' => 500 + ], + ], … +</example> +</slide> diff --git a/slides/map/3angle-penalties.xml b/slides/map/3angle-penalties.xml new file mode 100644 index 0000000..7a9d795 --- /dev/null +++ b/slides/map/3angle-penalties.xml @@ -0,0 +1,9 @@ +<slide> +<title>Penalties</title> + +<blurb>Quality over Quantity</blurb> +<list> + <bullet>Suggestion is declined (cron)</bullet> + <bullet>Voters with plus votes on declined suggestion (cron)</bullet> +</list> +</slide> diff --git a/slides/map/3angle-points.xml b/slides/map/3angle-points.xml new file mode 100644 index 0000000..ab0223c --- /dev/null +++ b/slides/map/3angle-points.xml @@ -0,0 +1,17 @@ +<slide> +<title>Points</title> + +<blurb>*Amount depends on:*</blurb> +<list> + <bullet>Tag importance</bullet> + <bullet>For votes: how soon after the suggestion was made</bullet> +</list> + +<blurb>*Awarded for:*</blurb> +<list> + <bullet>Checking in (instantly)</bullet> + <bullet>Suggesting a new value (instantly)</bullet> + <bullet>Voting on a new value (+/-) (instantly)</bullet> + <bullet>Acceptance of suggestion (3 plus votes) (cron)</bullet> +</list> +</slide> diff --git a/slides/map/3angle-progress.xml b/slides/map/3angle-progress.xml new file mode 100644 index 0000000..a66f063 --- /dev/null +++ b/slides/map/3angle-progress.xml @@ -0,0 +1,15 @@ +<slide> +<title>Current state</title> + +<list> + <bullet>|00dd00|Importing data|</bullet> + <bullet>|00dd00|Showing data on the map|</bullet> + <bullet>|00dd00|Storing suggestions|</bullet> + <bullet>|ee9900|Design|</bullet> + <bullet>|ff6600|Storing votes|</bullet> + <bullet>|ff0000|User authentication|</bullet> + <bullet>|ff0000|Points and badges|</bullet> + <bullet>|ee9900|Score calculation|</bullet> + <bullet>|ff0000|Feeding data back to OpenStreetMap|</bullet> +</list> +</slide> diff --git a/slides/map/3angle-rough-outline.xml b/slides/map/3angle-rough-outline.xml new file mode 100644 index 0000000..b0666b2 --- /dev/null +++ b/slides/map/3angle-rough-outline.xml @@ -0,0 +1,13 @@ +<slide> +<title>How does it work?</title> + +<list> + <bullet>Cron runs to calculate scores</bullet> + <bullet>Rules can change</bullet> + <bullet>You can "check in" to any object, always</bullet> + <bullet>If there is no "check in", you can suggest new values</bullet> + <bullet>If there is a "check in" already, you get to vote</bullet> + <bullet>3 plus votes → the change is propagated to OpenStreetMap</bullet> + <bullet>3 minus votes → the suggestion is removed</bullet> +</list> +</slide> diff --git a/slides/map/3angle-select.png b/slides/map/3angle-select.png new file mode 100644 index 0000000..320cf5c Binary files /dev/null and b/slides/map/3angle-select.png differ diff --git a/slides/map/3angle-storing-suggestions.xml b/slides/map/3angle-storing-suggestions.xml new file mode 100644 index 0000000..6254a66 --- /dev/null +++ b/slides/map/3angle-storing-suggestions.xml @@ -0,0 +1,21 @@ +<slide> +<title>Storing suggestions</title> + +<example> +{ + "_id" : ObjectId("5216190444670a5e20151202"), + "id" : "n1566340485", + "approvers" : [ + NumberLong(79999), + NumberLong(80106), + ], + "decliners" : [ ], + "approver_count" : 2, + "decliner_count" : 0, + "key" : "cuisine", + "last" : NumberLong(1377215982), + "suggester" : NumberLong(79908), + "value" : "german" +} +</example> +</slide> diff --git a/slides/map/3angle-tags-not-equal.xml b/slides/map/3angle-tags-not-equal.xml new file mode 100644 index 0000000..8d34334 --- /dev/null +++ b/slides/map/3angle-tags-not-equal.xml @@ -0,0 +1,19 @@ +<slide> +<title>Not all tags are equal</title> + +<example inline="1"> + "ts" : [ +* "amenity=pub",* +|ff0000| "name=Ehr-Bar"| +|ff2a00| "addr:housenumber=19",| +|ff2a00| "addr:street=Mendener Straße",| +|ff8000| "addr:postcode=53757",| +|ff8000| "smoking=no",| +|ff8000| "wheelchair=no",| +|ffaa00| "real_ale=no",| +|ffaa00| "real_cider=no",| +|ffd500| "addr:city=Sankt Augustin",| +|ffff00| "addr:country=DE",| + ], +</example> +</slide> diff --git a/slides/map/3angle-tech.xml b/slides/map/3angle-tech.xml new file mode 100644 index 0000000..dad488d --- /dev/null +++ b/slides/map/3angle-tech.xml @@ -0,0 +1,11 @@ +<slide> +<title>Technology</title> + +<list> + <bullet>Plain HTML</bullet> + <bullet>Mobile friendly</bullet> + <bullet>Leaflet for displaying the map</bullet> + <bullet>MongoDB with geospatial support as data storage</bullet> + <bullet>PHP as interface layer</bullet> +</list> +</slide> diff --git a/slides/map/3angle-vote.xml b/slides/map/3angle-vote.xml new file mode 100644 index 0000000..bcf9c20 --- /dev/null +++ b/slides/map/3angle-vote.xml @@ -0,0 +1,54 @@ +<slide> +<title>Recording votes</title> + +<example> +$collection->update( + [ '_id' => 'n1566340485', 'key' => 'cuisine', 'value' => 'german' ], + [ + '$inc' => [ 'approver_count' => 1 ], + '$push' => [ 'approvers' => 83453 ], + '$set' => [ 'last' => time() ] + ] +); +</example> + +<div effect="fade-out"> +<example> +{ + "_id" : ObjectId("5216190444670a5e20151202"), + "id" : "n1566340485", + "approvers" : [ + NumberLong(79999), + NumberLong(80106), + ], + "decliners" : [ ], + "approver_count" : 2, + "decliner_count" : 0, + "key" : "cuisine", + "last" : NumberLong(1377215982), + "suggester" : NumberLong(79908), + "value" : "german" +} +</example> +</div> +<div effect="fade-in"> +<example inline="1"> +{ + "_id" : ObjectId("5216190444670a5e20151202"), + "id" : "n1566340485", + "approvers" : [ + NumberLong(79999), + NumberLong(80106), + *NumberLong(83453),* + ], + "decliners" : [ ], + *"approver_count" : 3,* + "decliner_count" : 0, + "key" : "cuisine", + *"last" : NumberLong(1623422341),* + "suggester" : NumberLong(79908), + "value" : "german" +} +</example> +</div> +</slide> diff --git a/slides/map/3angle-what.xml b/slides/map/3angle-what.xml new file mode 100644 index 0000000..023eb90 --- /dev/null +++ b/slides/map/3angle-what.xml @@ -0,0 +1,26 @@ +<slide> +<title>Which objects do we care about?</title> + +<example inline="1"> +"ts" : [ + "addr:housenumber=48", + "addr:street=Mendener Straße", +|ff0000| "amenity|=restaurant", + "name=Blumenhof", + "wheelchair=yes" +], +</example> + +<blurb>For now:</blurb> +<example> +'ts' => array( + '$in' => array( + new MongoRegex( "/^amenity=/" ), + new MongoRegex( "/^shop=/" ), + new MongoRegex( "/^tourism=/" ), + ) +) +</example> +<blurb>Most importantly, this includes pubs ;-)</blurb> + +</slide> diff --git a/slides/map/3angle-wrapup.xml b/slides/map/3angle-wrapup.xml new file mode 100644 index 0000000..aad8c77 --- /dev/null +++ b/slides/map/3angle-wrapup.xml @@ -0,0 +1,11 @@ +<slide> +<title>Wrap-up</title> + +<list> + <bullet>Foursquare</bullet> + <bullet>OpenStreetMap data</bullet> + <bullet>3angle as alternative</bullet> + <bullet>Importing, storage and queries with MongoDB</bullet> + <bullet>What's next?</bullet> +</list> +</slide> diff --git a/slides/map/4sq1.png b/slides/map/4sq1.png new file mode 100644 index 0000000..88995c6 Binary files /dev/null and b/slides/map/4sq1.png differ diff --git a/slides/map/4sq2.png b/slides/map/4sq2.png new file mode 100644 index 0000000..3cd4c34 Binary files /dev/null and b/slides/map/4sq2.png differ diff --git a/slides/map/4sq3.png b/slides/map/4sq3.png new file mode 100644 index 0000000..4c21343 Binary files /dev/null and b/slides/map/4sq3.png differ diff --git a/slides/map/4sq4.png b/slides/map/4sq4.png new file mode 100644 index 0000000..72d2068 Binary files /dev/null and b/slides/map/4sq4.png differ diff --git a/slides/map/artwork.png b/slides/map/artwork.png new file mode 100644 index 0000000..2bb57de Binary files /dev/null and b/slides/map/artwork.png differ diff --git a/slides/map/clock-hour.jpg b/slides/map/clock-hour.jpg new file mode 100644 index 0000000..898e4e1 Binary files /dev/null and b/slides/map/clock-hour.jpg differ diff --git a/slides/map/combine-points.png b/slides/map/combine-points.png new file mode 100644 index 0000000..6aa3cab Binary files /dev/null and b/slides/map/combine-points.png differ diff --git a/slides/map/edit-points.png b/slides/map/edit-points.png new file mode 100644 index 0000000..bb8be82 Binary files /dev/null and b/slides/map/edit-points.png differ diff --git a/slides/map/foursquare-addict.xml b/slides/map/foursquare-addict.xml new file mode 100644 index 0000000..15fbf08 --- /dev/null +++ b/slides/map/foursquare-addict.xml @@ -0,0 +1,5 @@ +<slide> + <title>Foursquare</title> + + <iframe align="right" width="1000" filename='examples/3angle/?l=foursquare&zoom=7;&lat=:-:lat:-:&lon=:-:lon:-:'/> +</slide> diff --git a/slides/map/foursquare1.xml b/slides/map/foursquare1.xml new file mode 100644 index 0000000..029e287 --- /dev/null +++ b/slides/map/foursquare1.xml @@ -0,0 +1,5 @@ +<slide> + <title>Foursquare</title> + + <image filename="4sq1.png"/> +</slide> diff --git a/slides/map/foursquare2.xml b/slides/map/foursquare2.xml new file mode 100644 index 0000000..db1fa36 --- /dev/null +++ b/slides/map/foursquare2.xml @@ -0,0 +1,5 @@ +<slide> + <title>Foursquare</title> + + <image filename="4sq2.png"/> +</slide> diff --git a/slides/map/foursquare3.xml b/slides/map/foursquare3.xml new file mode 100644 index 0000000..de5ca10 --- /dev/null +++ b/slides/map/foursquare3.xml @@ -0,0 +1,5 @@ +<slide> + <title>Foursquare</title> + + <image filename="4sq3.png"/> +</slide> diff --git a/slides/map/foursquare4.xml b/slides/map/foursquare4.xml new file mode 100644 index 0000000..b47af9e --- /dev/null +++ b/slides/map/foursquare4.xml @@ -0,0 +1,5 @@ +<slide> + <title>Foursquare</title> + + <image filename="4sq4.png"/> +</slide> diff --git a/slides/map/import-example-froscon.xml b/slides/map/import-example-froscon.xml new file mode 100644 index 0000000..accf118 --- /dev/null +++ b/slides/map/import-example-froscon.xml @@ -0,0 +1,30 @@ +<slide> +<title>Example data point</title> + +<example>db.poiConcat.find( { _id: 'n1566340485' } ).pretty();</example> + +<example> +{ + "_id" : "n1566340485", + "ty" : NumberLong(1), + "l" : { + "type" : "Point", + "coordinates" : [ 7.1903879, 50.7841392 ] + }, + "ts" : [ + "addr:housenumber=48", + "addr:street=Mendener Straße", + "amenity=restaurant", + "name=Blumenhof", + "wheelchair=yes" + ], + "m" : { + "v" : NumberLong(4), + "cs" : NumberLong(15878090), + "uid" : NumberLong(92274), + "ts" : NumberLong(1367019680) + } +} +</example> +</slide> + diff --git a/slides/map/import-script.xml b/slides/map/import-script.xml index e99f06b..dea05c4 100644 --- a/slides/map/import-script.xml +++ b/slides/map/import-script.xml @@ -2,7 +2,6 @@ <title>The import script</title> <list> - <bullet>Open file with XML Reader</bullet> <bullet>Loop over all nodes, and: <list> <bullet>*Store the node in a different cache database*</bullet> @@ -15,6 +14,11 @@ <bullet>Store the way into the collection</bullet> </list> </bullet> - <bullet>(Delete the cache database)</bullet> + <bullet>Loop over all the relations, and: + <list> + <bullet>*See whether we have multi-polygon relations and do something clever with them*</bullet> + <bullet>Remove ways that were converted into a multi-polygon</bullet> + </list> + </bullet> </list> </slide> diff --git a/slides/map/mask-08-argentina-partial.png b/slides/map/mask-08-argentina-partial.png new file mode 100644 index 0000000..6451994 Binary files /dev/null and b/slides/map/mask-08-argentina-partial.png differ diff --git a/slides/map/mask-08-argentina.png b/slides/map/mask-08-argentina.png new file mode 100644 index 0000000..ccdf478 Binary files /dev/null and b/slides/map/mask-08-argentina.png differ diff --git a/slides/map/osm-happy-face.xml b/slides/map/osm-happy-face.xml index e12fbff..d7558b0 100644 --- a/slides/map/osm-happy-face.xml +++ b/slides/map/osm-happy-face.xml @@ -1,8 +1,7 @@ <slide> -<title>Google Map Maker vs. OpenStreetMap (2)</title> -<subtitle>OpenStreetMap</subtitle> +<title>OpenStreetMap</title> -<image filename="500px-Simple_happy_face.svg.png"/> +<image align="left" filename="500px-Simple_happy_face.svg.png"/> <list> <bullet>The raw vector data is available to download with an open license giving everyone the freedom to reuse and redistribute. Data users are permitted to make a commercial profit, but it's all on an even playing field. OpenStreetMap itself is a not-for-profit "good cause" open data organization.</bullet> <bullet>If you spend time contributing to OpenStreetMap you are helping a good cause, and building a dataset which can be free and open for all and forever. </bullet> diff --git a/slides/map/osm-mapping-party1.xml b/slides/map/osm-mapping-party1.xml index a66be82..022776e 100644 --- a/slides/map/osm-mapping-party1.xml +++ b/slides/map/osm-mapping-party1.xml @@ -4,9 +4,8 @@ <blurb>As OSM's main purpose is creating a database of free map data:</blurb> <list> <bullet>data needs to be generated (surveyed), which is best done by hand</bullet> - <bullet>data needs to be added to the database: Potlatch, JOSM</bullet> + <bullet>data needs to be added to the database</bullet> <bullet>surveying is more fun if you're not alone</bullet> - <bullet>why not do it in a group?</bullet> </list> <image filename='postbox.png'/> </div> diff --git a/slides/map/osm-sad-face-4sq.xml b/slides/map/osm-sad-face-4sq.xml new file mode 100644 index 0000000..8a6e303 --- /dev/null +++ b/slides/map/osm-sad-face-4sq.xml @@ -0,0 +1,11 @@ +<slide> +<title>Foursquare</title> + +<image align="left" filename="500px-Simple_sad_face.svg.png"/> +<list> + <bullet>Only simple points (of interest)</bullet> + <bullet>Foursquare owns the underlying data and they protect their commercial interests by keeping this locked away (even though it was contributed by you)</bullet> + <bullet>If you spend time contributing to Foursquare, you are helping a commercial company</bullet> +</list> + +</slide> diff --git a/slides/map/osm-sad-face.xml b/slides/map/osm-sad-face.xml index 26414ac..e645226 100644 --- a/slides/map/osm-sad-face.xml +++ b/slides/map/osm-sad-face.xml @@ -1,6 +1,5 @@ <slide> -<title>Google Map Maker vs. OpenStreetMap (1)</title> -<subtitle>Google Map Maker</subtitle> +<title>Google Map Maker</title> <image filename="500px-Simple_sad_face.svg.png"/> <list> diff --git a/slides/map/osm-xapi.xml b/slides/map/osm-xapi.xml index 2fca453..9557349 100644 --- a/slides/map/osm-xapi.xml +++ b/slides/map/osm-xapi.xml @@ -7,13 +7,12 @@ <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</blurb> -<example>http://download.geofabrik.de/openstreetmap/</example> <blurb>A metro extract:</blurb> <example>http://metro.teczno.com/#manchester</example> <blurb>XAPI (via Overpass):</blurb> +<example>http://www.overpass-api.de/api/xapi?map?bbox=7.12,50.73,7.25,50.81</example> <example>http://www.overpass-api.de/api/xapi?*[bbox=7.1,51.2,7.2,51.3][amenity=pub]</example> </div> diff --git a/slides/map/short-cut-road.jpg b/slides/map/short-cut-road.jpg new file mode 100644 index 0000000..ca372ea Binary files /dev/null and b/slides/map/short-cut-road.jpg differ diff --git a/slides/map/thumbnails.png b/slides/map/thumbnails.png new file mode 100644 index 0000000..b5c928b Binary files /dev/null and b/slides/map/thumbnails.png differ diff --git a/slides/map/vis-artwork.xml b/slides/map/vis-artwork.xml new file mode 100644 index 0000000..8bda293 --- /dev/null +++ b/slides/map/vis-artwork.xml @@ -0,0 +1,10 @@ +<slide> +<title>Artwork</title> + +<list> + <bullet>Put a 900x472 pixel image in %config/title-image.jpg%</bullet> + <bullet>Run: %./create-artwork.sh%</bullet> +</list> +<break lines="3"/> +<image filename="artwork.png"/> +</slide> diff --git a/slides/map/vis-calculate-difference.xml b/slides/map/vis-calculate-difference.xml new file mode 100644 index 0000000..d3faf69 --- /dev/null +++ b/slides/map/vis-calculate-difference.xml @@ -0,0 +1,15 @@ +<slide> +<title>Calculating the difference</title> + +<list> + <bullet>Basically we just use Osmosis to do the hard work:<example> +osmosis \ + --rx {$files[$i + 1]} --rx {$files[$i]} \ + --derive-change \ + --write-xml-change file='changes/diff-{$m[2]}.osc'</example> + </bullet> + <bullet>We take a short cut if the file sizes are the same</bullet> +</list> +<break lines="2"/> +<image align="center" filename="short-cut-road.jpg"/> +</slide> diff --git a/slides/map/vis-combine-edit-points.xml b/slides/map/vis-combine-edit-points.xml new file mode 100644 index 0000000..b4c0d7b --- /dev/null +++ b/slides/map/vis-combine-edit-points.xml @@ -0,0 +1,6 @@ +<slide> +<title>Combine rendered maps and edit point overlays</title> + +<break lines="3"/> +<image filename="combine-points.png"/> +</slide> diff --git a/slides/map/vis-convert-images-into-movie.xml b/slides/map/vis-convert-images-into-movie.xml new file mode 100644 index 0000000..65b5da0 --- /dev/null +++ b/slides/map/vis-convert-images-into-movie.xml @@ -0,0 +1,18 @@ +<slide> +<title>From images to movie</title> + +<list> + <bullet>Blend with title image for start</bullet> + <bullet>Blend with black for end</bullet> + <bullet>Using %mencoder% to combine into movie: +<example>OPTIONS="-ovc lavc -lavcopts vcodec=msmpeg4v2:vbitrate=16000" +mencoder "mf://artwork/title*.jpg" -mf fps=25 -o title.avi $OPTIONS +mencoder "mf://images/x*.jpg" -mf fps=25 -o middle.avi $OPTIONS +mencoder "mf://artwork/end*.jpg" -mf fps=25 -o end.avi $OPTIONS + +mencoder -oac copy -oac copy -ovc copy -o test.avi title.avi middle.avi end.avi</example> + </bullet> +</list> + +<image filename="thumbnails.png"/> +</slide> diff --git a/slides/map/vis-fetching-data.xml b/slides/map/vis-fetching-data.xml new file mode 100644 index 0000000..f003d87 --- /dev/null +++ b/slides/map/vis-fetching-data.xml @@ -0,0 +1,11 @@ +<slide> +<title>Fetching data</title> + +<list> + <bullet>%./update.sh% fetches the next state of the map</bullet> + <bullet>You might have to tweak %configuration.txt% to get to a whole hour</bullet> + <bullet>Sometimes you get 14 or 16 minutes</bullet> + <bullet>You can either run it every 20 minutes, but I prefer to wait til the editting is over</bullet> + <bullet>You can remove any unwanted file from the %dumps% directory</bullet> +</list> +</slide> diff --git a/slides/map/vis-getting-data.xml b/slides/map/vis-getting-data.xml new file mode 100644 index 0000000..aec367e --- /dev/null +++ b/slides/map/vis-getting-data.xml @@ -0,0 +1,22 @@ +<slide> +<title>Getting the data</title> + +<list> + <bullet>It is a lot easier if you do this *before* the party starts</bullet> + <bullet>I use an extract from %http://download.geofabrik.de/%</bullet> + <bullet>Create %config.txt% and change the coordinates: +<example># osmosis +bbox=left=-0.176 right=-0.115 top=51.53 bottom=51.50 +# edits, make sure LON1 < LON2 and LAT1 > LAT2 +LON1=-0.15447 +LON2=-0.13512 +LAT1=51.5176 +LAT2=51.5086</example> + </bullet> + <bullet>Extract the part that you need:<example> +../osmosis-latest/bin/osmosis --rbf workers=3 file=great-britain-latest.osm.pbf \ + --bb `cat config.txt | grep "bbox=" | cut -d "=" -f 2-` --lp --wx party.osm +</example> + </bullet> +</list> +</slide> diff --git a/slides/map/vis-how-does-it-work-automated.xml b/slides/map/vis-how-does-it-work-automated.xml new file mode 100644 index 0000000..9e2bcba --- /dev/null +++ b/slides/map/vis-how-does-it-work-automated.xml @@ -0,0 +1,15 @@ +<slide> +<title>How do I make them?</title> + +<list> + <bullet>Get map data (%.osm%) from before the mapping party</bullet> + <bullet>Grab a new data set every 15 minutes</bullet> + <bullet>De-duplicate %osm% files to save space</bullet> + <bullet>Find a suitable cover photo and generate artwork</bullet> + <bullet>For each two data sets, calculate the difference</bullet> + <bullet>Calculate and generate images containing changes</bullet> + <bullet>Render each map file with Mapnik to an image</bullet> + <bullet>Combine all the images into a video</bullet> + <bullet>Add music to video</bullet> +</list> +</slide> diff --git a/slides/map/vis-how-does-it-work.xml b/slides/map/vis-how-does-it-work.xml new file mode 100644 index 0000000..70932d2 --- /dev/null +++ b/slides/map/vis-how-does-it-work.xml @@ -0,0 +1,25 @@ +<slide> +<title>How do I make them?</title> + +<div effect="fade-out"> +<list> + <bullet>Get map data (%.osm%) from before the mapping party</bullet> +</list> +</div> +<div effect="fade-in"> +<list> + <bullet>*Get map data (%.osm%) from before the mapping party*</bullet> +</list> +</div> +<list> + <bullet>Grab a new data set every 15 minutes</bullet> + <bullet>De-duplicate %osm% files to save space</bullet> + <bullet>Find a suitable cover photo and generate artwork</bullet> + <bullet>For each two data sets, calculate the difference</bullet> + <bullet>Calculate and generate images containing changes</bullet> + <bullet>Render each map file with Mapnik to an image</bullet> + <bullet>Combine all the images into a video</bullet> + <bullet>Add music to video</bullet> +</list> + +</slide> diff --git a/slides/map/vis-is-that-all.xml b/slides/map/vis-is-that-all.xml new file mode 100644 index 0000000..2ddb3dc --- /dev/null +++ b/slides/map/vis-is-that-all.xml @@ -0,0 +1,5 @@ +<slide> + +<blurb class="quote-page">Is that all?</blurb> +<div effect="fade-in"><blurb align="center">Not really...</blurb></div> +</slide> diff --git a/slides/map/vis-music.xml b/slides/map/vis-music.xml new file mode 100644 index 0000000..709430f --- /dev/null +++ b/slides/map/vis-music.xml @@ -0,0 +1,20 @@ +<slide> +<title>Music</title> + +<list> + <bullet>Jamendo to find CC-BY music</bullet> + <bullet>Match length with length of video</bullet> + <bullet>There's lots of "substandard" music</bullet> +</list> + +<blurb>%http://www.jamendo.com/en/search ?qs=fq=license_cc:(sa AND -nd AND -nc) &q=tags_idstr:"electronic"&sort=duration asc%</blurb> + +<list> + <bullet>Use %mencoder% to add sound track:</bullet> +</list> + +<example>mencoder -ovc copy \ + -audiofile /home/derick/media/mp3/cc-by/Olga_Scotland_-_Ernst.mp3 -oac copy \ + test.avi \ + -o progress.avi</example> +</slide> diff --git a/slides/map/vis-not-too-spectacular.xml b/slides/map/vis-not-too-spectacular.xml new file mode 100644 index 0000000..e0a539d --- /dev/null +++ b/slides/map/vis-not-too-spectacular.xml @@ -0,0 +1,5 @@ +<slide> + +<blurb class="quote-page">Right.</blurb> +<blurb class="center">that wasn't too spectacular</blurb> +</slide> diff --git a/slides/map/vis-prerequisites.xml b/slides/map/vis-prerequisites.xml new file mode 100644 index 0000000..e4d81c1 --- /dev/null +++ b/slides/map/vis-prerequisites.xml @@ -0,0 +1,10 @@ +<slide> +<title>What do I need?</title> + +<list> + <bullet>ImageMagick</bullet> + <bullet>PHP 5.3+ (with GD)</bullet> + <bullet>Osmosis</bullet> + <bullet>A working Mapnik rendering stack with all the default locations and users</bullet> +</list> +</slide> diff --git a/slides/map/vis-progress-what-does-it-show.xml b/slides/map/vis-progress-what-does-it-show.xml new file mode 100644 index 0000000..fa01fcd --- /dev/null +++ b/slides/map/vis-progress-what-does-it-show.xml @@ -0,0 +1,11 @@ +<slide> +<title>The progress video</title> + +<list> + <bullet>Each node modification creates an expanding circle</bullet> + <bullet>Different colours for different contributors (mod 5 on the user id)</bullet> + <bullet>GPX tracks in the same colours as the contributir</bullet> + <bullet>Auto-zoom if required</bullet> + <bullet>Some catchy music</bullet> +</list> +</slide> diff --git a/slides/map/vis-render-edit-points.xml b/slides/map/vis-render-edit-points.xml new file mode 100644 index 0000000..6010400 --- /dev/null +++ b/slides/map/vis-render-edit-points.xml @@ -0,0 +1,11 @@ +<slide> +<title>Creating the edit points</title> + +<list> + <bullet>Calculates bounding box in sliding window</bullet> + <bullet>Draws expanding circles for each change</bullet> + <bullet>Optionally also adds GPX tracks</bullet> +</list> + +<image filename="edit-points.png"/> +</slide> diff --git a/slides/map/vis-render-maps.xml b/slides/map/vis-render-maps.xml new file mode 100644 index 0000000..b51f436 --- /dev/null +++ b/slides/map/vis-render-maps.xml @@ -0,0 +1,14 @@ +<slide> +<title>Render maps</title> + +<blurb>For each map "frame":</blurb> +<list> + <bullet>Import %.osm% file into PostGreSQL:<example>osm2pgsql -S /home/derick/install/osm2pgsql/default.style --slim -d gis -C 2400 $i</example></bullet> + <bullet>Only if it's not the same as the previous one</bullet> + <bullet>Read calculated bounding boxes and put those in the environment</bullet> + <bullet>Run mapnik to render image: +<example>export MAPNIK_MAP_FILE=/home/derick/install/mapnik/osm.xml +/home/derick/install/mapnik/generate_image.py ${LAT1} ${LON1} ${LAT2} ${LON2}</example> + </bullet> +</list> +</slide> diff --git a/slides/map/vis-setup-replication.xml b/slides/map/vis-setup-replication.xml new file mode 100644 index 0000000..1d1e7ab --- /dev/null +++ b/slides/map/vis-setup-replication.xml @@ -0,0 +1,12 @@ +<slide> +<title>Set-up replication</title> + +<list> + <bullet>Remove left-over stuff: <example>rm configuration.txt</example></bullet> + <bullet>Initialise replication: <example>../osmosis-latest/bin/osmosis --rrii</example></bullet> + <bullet>Get a matching state file from %http://planet.openstreetmap.org/replication/minute% and save it as %state.txt%</bullet> + <bullet>Edit %configuration.txt% and make it:<example> +baseUrl=http://planet.openstreetmap.org/replication/minute +maxInterval = 900</example></bullet> +</list> +</slide> diff --git a/slides/map/vis-shots.xml b/slides/map/vis-shots.xml new file mode 100644 index 0000000..abd348a --- /dev/null +++ b/slides/map/vis-shots.xml @@ -0,0 +1,5 @@ +<slide> +<title>Recent variants</title> + +<video filename="shotts.webm" align="center" width="1000" height="563"/> +</slide> diff --git a/slides/map/vis-start.xml b/slides/map/vis-start.xml new file mode 100644 index 0000000..7fec863 --- /dev/null +++ b/slides/map/vis-start.xml @@ -0,0 +1,15 @@ +<slide> +<title>It all started in Kensington</title> + +<div effect="fade-out"> +<list> + <bullet>I've been going to mapping parties since summer 2010</bullet> + <bullet>A year later I started playing with rendering my own maps</bullet> + <bullet>And thought it'd be nice to see what happened during a mapping party</bullet> +</list> +</div> + +<div effect="fade-in"> +<video filename="south-kensington-mapping.webm" align="center" width="1000" height="563"/> +</div> +</slide> diff --git a/slides/map/vis-what-next.xml b/slides/map/vis-what-next.xml new file mode 100644 index 0000000..6c7bba1 --- /dev/null +++ b/slides/map/vis-what-next.xml @@ -0,0 +1,10 @@ +<slide> +<title>What's next?</title> + +<list> + <bullet>Better contrast for Year of Edits ☺</bullet> + <bullet>Wrap up scripts so that they're easier reusable</bullet> + <bullet>Perhaps a few more different visualisations</bullet> + <bullet>Any ideas or hints?</bullet> +</list> +</slide> diff --git a/slides/map/vis-yoe-basic-idea.xml b/slides/map/vis-yoe-basic-idea.xml new file mode 100644 index 0000000..cdb7899 --- /dev/null +++ b/slides/map/vis-yoe-basic-idea.xml @@ -0,0 +1,14 @@ +<slide> +<title>Year of Edits</title> + +<blurb>The basic idea is:</blurb> + +<list> + <bullet>Display every edit made throughout a year</bullet> + <bullet>Colours change with time</bullet> + <bullet>Make it 3D</bullet> + <bullet>…and spinning</bullet> + <bullet>(Idea "copied" from ITO World)</bullet> + <bullet>Make it easy to configure and reuse</bullet> +</list> +</slide> diff --git a/slides/map/vis-yoe-changes-video-partial.xml b/slides/map/vis-yoe-changes-video-partial.xml new file mode 100644 index 0000000..3ae4737 --- /dev/null +++ b/slides/map/vis-yoe-changes-video-partial.xml @@ -0,0 +1,5 @@ +<slide> +<title>Year of Edits 2013 (Argentina)</title> + +<video filename="yearofedits2013-argentina-part.webm"/> +</slide> diff --git a/slides/map/vis-yoe-changes-video.xml b/slides/map/vis-yoe-changes-video.xml new file mode 100644 index 0000000..94ffc36 --- /dev/null +++ b/slides/map/vis-yoe-changes-video.xml @@ -0,0 +1,5 @@ +<slide> +<title>Combined change images</title> + +<video filename="yearofedits2012-changes-part.webm"/> +</slide> diff --git a/slides/map/vis-yoe-flat-to-3d.xml b/slides/map/vis-yoe-flat-to-3d.xml new file mode 100644 index 0000000..5bb6812 --- /dev/null +++ b/slides/map/vis-yoe-flat-to-3d.xml @@ -0,0 +1,17 @@ +<slide> +<title>Flat to 3D</title> + +<list> + <bullet>The images need to wrapped around a sphere</bullet> + <bullet>Some tricky 3D rotation required</bullet> +</list> +<div effect="fade-in"> +<list> + <bullet>Say hello to the *POV-Ray* ray-tracer</bullet> + <bullet>Zoom and rotation follows an "interesting" formula</bullet> + <bullet>Lower layer is a Earth map</bullet> + <bullet>Transparent "changes" layer</bullet> + <bullet>I also add atmosphere and some other effects</bullet> +</list> +</div> +</slide> diff --git a/slides/map/vis-yoe-mask.xml b/slides/map/vis-yoe-mask.xml new file mode 100644 index 0000000..af2703a --- /dev/null +++ b/slides/map/vis-yoe-mask.xml @@ -0,0 +1,4 @@ +<slide> +<title>Partial "Year of Edits" video — Mask</title> +<image filename="mask-08-argentina.png"/> +</slide> diff --git a/slides/map/vis-yoe-reaction-period.xml b/slides/map/vis-yoe-reaction-period.xml new file mode 100644 index 0000000..f2e4c53 --- /dev/null +++ b/slides/map/vis-yoe-reaction-period.xml @@ -0,0 +1,9 @@ +<slide> +<title>The redaction process</title> + +<list> + <bullet>One off thing</bullet> + <bullet>Each "redaction square" produces a ball that's flying away</bullet> + <bullet>Took "bloody ages" to render</bullet> +</list> +</slide> diff --git a/slides/map/vis-yoe-redaction.xml b/slides/map/vis-yoe-redaction.xml new file mode 100644 index 0000000..2918747 --- /dev/null +++ b/slides/map/vis-yoe-redaction.xml @@ -0,0 +1,5 @@ +<slide> +<title>The Year of Edits videos</title> + +<image filename="year-of-edits-redaction.jpg"/> +</slide> diff --git a/slides/map/vis-yoe-special-variants.xml b/slides/map/vis-yoe-special-variants.xml new file mode 100644 index 0000000..7d81836 --- /dev/null +++ b/slides/map/vis-yoe-special-variants.xml @@ -0,0 +1,8 @@ +<slide> +<title>Special variants</title> + +<list> + <bullet>Burgos: A progress video with hourly instead of minutely updates, from 2009 til "now"</bullet> + <bullet>A "year of edits" video with the changes in just Argentina</bullet> +</list> +</slide> diff --git a/slides/map/vis-yoe-step1-grabbing-changes.xml b/slides/map/vis-yoe-step1-grabbing-changes.xml new file mode 100644 index 0000000..7c2ca95 --- /dev/null +++ b/slides/map/vis-yoe-step1-grabbing-changes.xml @@ -0,0 +1,11 @@ +<slide> +<title>Grabbing changes</title> + +<list> + <bullet>A script fetches all files from %http://planet.openstreetmap.org/replication/hour/000/%</bullet> + <bullet>This gives me a file for each hour</bullet> +</list> + +<image filename="clock-hour.jpg"/> + +</slide> diff --git a/slides/map/vis-yoe-step2-combining-changes.xml b/slides/map/vis-yoe-step2-combining-changes.xml new file mode 100644 index 0000000..bf8b96c --- /dev/null +++ b/slides/map/vis-yoe-step2-combining-changes.xml @@ -0,0 +1,16 @@ +<slide> +<title>From changes file to image</title> + +<list> + <bullet>A year has 365 * 24 = 8760 hours</bullet> + <bullet>At 25 frames/sec the video would take 700 seconds</bullet> + <bullet>10 minutes is boring, so a frame for every 6 hours</bullet> +</list> +<break/> +<blurb>A script:</blurb> +<list> + <bullet>Combines 6 "change files"</bullet> + <bullet>Maps each long/lat to a 11520 pixels horizontal and 5760 vertical</bullet> + <bullet>Writes out an image which keeps into account previous changes as well</bullet> +</list> +</slide> diff --git a/slides/map/vis-yoe-video-redaction.xml b/slides/map/vis-yoe-video-redaction.xml new file mode 100644 index 0000000..1113d97 --- /dev/null +++ b/slides/map/vis-yoe-video-redaction.xml @@ -0,0 +1,5 @@ +<slide> +<title>Redaction period</title> + +<video filename="yearofedits2012-redaction.webm"/> +</slide> diff --git a/slides/map/vis-yoe-video.xml b/slides/map/vis-yoe-video.xml new file mode 100644 index 0000000..fb4a098 --- /dev/null +++ b/slides/map/vis-yoe-video.xml @@ -0,0 +1,5 @@ +<slide> +<title>The start</title> + +<video filename="yearofedits2012-start.webm"/> +</slide> diff --git a/slides/map/year-of-edits-redaction.jpg b/slides/map/year-of-edits-redaction.jpg new file mode 100644 index 0000000..04352f5 Binary files /dev/null and b/slides/map/year-of-edits-redaction.jpg differ diff --git a/slides/mongodb/geo-aggregation2.xml b/slides/mongodb/geo-aggregation2.xml index fdcb80d..9680805 100644 --- a/slides/mongodb/geo-aggregation2.xml +++ b/slides/mongodb/geo-aggregation2.xml @@ -19,6 +19,7 @@ res = db.poiConcat.aggregate( [ { '$or' : [ { ts: 'amenity=pub' }, { ts: 'amenity=bar' }, + { ts: 'amenity=restaurant' }, ] } } @@ -42,6 +43,7 @@ res = db.poiConcat.aggregate( [ {| '$or' : [ { ts: 'amenity=pub' }, { ts: 'amenity=bar' }, + { ts: 'amenity=restaurant' }, ] } } @@ -65,6 +67,7 @@ res = db.poiConcat.aggregate( [ { |ff0000| '$or' : [| |ff0000| { ts: 'amenity=pub' },| |ff0000| { ts: 'amenity=bar' },| +|ff0000| { ts: 'amenity=restaurant' },| |ff0000| ]| |ff0000| }| } diff --git a/slides/mongodb/resources.xml b/slides/mongodb/resources.xml index 0a2af53..1b86f88 100644 --- a/slides/mongodb/resources.xml +++ b/slides/mongodb/resources.xml @@ -1,12 +1,7 @@ <slide type="thanks"> <break/> <qrcode>http://derickrethans.nl/talks/:-:talk_id:-:</qrcode> -<blurb class="event-presenter"> -Slides:<br/>:-:joindin:-:<br/><br/> -:-:speaker:-:—@:-:twitter:-:—:-:email:-: -</blurb> -<div class="footer-thanks"> -<image align="left" filename="10gen.png" pdf-scale="0.4" x-offset="2" y-offset="12.3"/> -<image align="right" filename="mongodb.png" pdf-scale="0.4" x-offset="18" y-offset="13.3"/> -</div> +<break/> +<blurb class="pres-url-small">:-:joindin:-:</blurb> +<blurb class="pres-url-small">:-:email:-:—@:-:twitter:-:</blurb> </slide> diff --git a/slides/mongodb/title.xml b/slides/mongodb/title.xml index ac517fa..12a3416 100644 --- a/slides/mongodb/title.xml +++ b/slides/mongodb/title.xml @@ -2,10 +2,7 @@ <break lines="2"/> <blurb class="event-title">:-:title:-:</blurb> <break lines="1"/> -<blurb class="event-presenter">:-:speaker:-:—:-:email:-:—@:-:twitter:-:</blurb> +<blurb class="event-presenter">:-:speaker:-:</blurb> +<blurb class="pres-url-small">:-:email:-:—@:-:twitter:-:</blurb> <blurb class="pres-url-small">:-:joindin:-:</blurb> -<div class="footer"> -<image align="left" filename="10gen-small.png" pdf-scale="0.4" x-offset="2" y-offset="12.3"/> -<image align="right" filename="mongodb-small.png" pdf-scale="0.4" x-offset="18" y-offset="13.3"/> -</div> </slide> diff --git a/templates/default/video.ezt b/templates/default/video.ezt new file mode 100644 index 0000000..f3658ad --- /dev/null +++ b/templates/default/video.ezt @@ -0,0 +1,19 @@ +{use $node, $pres, $inline = false} +{var $align = get_attribute( $node, 'align' )} +{var $attr = get_attribute( $node, 'attr' )} +{var $width = get_attribute( $node, 'width' )} +{var $height = get_attribute( $node, 'height' )} +{var $source = ''} +{if !$width}{$width = 1010}{/if} +{if !$height}{$height = 592}{/if} +{if str_starts_with(get_attribute($node, 'filename'), 'http://')} +{$source = get_attribute($node, 'filename')} +{else} +{$source = str_append($pres->base, get_attribute( $node, 'filename' ))} +{/if} +<div{if $align} align='{$align}'{/if}> +<video {if $inline}class='inline' {/if} width="{$width}" height="{$height}" preload controls autoplay> + <source src="{$source}" type='video/webm; codecs="vp8, vorbis"' /> +</video> +{if $attr}<span class='attribution'>{$attr}</span>{/if} +</div>
diff --git a/3angle-froscon13.xml b/3angle-froscon13.xml new file mode 100644 index 0000000..2f0fda5 --- /dev/null +++ b/3angle-froscon13.xml @@ -0,0 +1,65 @@ +<?xml version="1.0" encoding="utf-8"?> +<presentation css="10gen-strict.css"> +<topic>MongoDB</topic> +<title>Gamifying Map Improvements with MongoDB</title> +<event>FrOSCon</event> +<location>Sankt Augustin, Germany</location> +<lat>50.77884</lat><lon>7.18483</lon> +<date>August 25th, 2013</date> +<speaker>Derick Rethans</speaker> +<email>derick@10gen.com</email> +<twitter>derickr</twitter> +<joindin>http://derickrethans.nl/talks/3angle-froscon13</joindin> + +<slide>slides/mongodb/title.xml</slide> + +<!-- Foursquare --> +<slide>slides/map/foursquare1.xml</slide> +<slide>slides/map/foursquare2.xml</slide> +<slide>slides/map/foursquare-addict.xml</slide> +<slide>slides/map/foursquare4.xml</slide> +<slide>slides/map/foursquare3.xml</slide> + +<!-- OSM introduction --> +<slide>slides/map/osm-what.xml</slide> +<slide>slides/map/what-is-osm.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-kibera.xml</slide> + +<!-- Compare --> +<slide>slides/map/osm-happy-face.xml</slide> +<slide>slides/map/osm-sad-face-4sq.xml</slide> + +<!-- 3angle example --> +<slide>slides/map/3angle-intro.xml</slide> +<slide>slides/map/3angle-example.xml</slide> + +<!-- how --> +<!-- import --> +<slide>slides/map/osm-xapi.xml</slide> +<slide>slides/map/import-script.xml</slide> +<slide>slides/map/import-example-froscon.xml</slide> +<slide>slides/map/3angle-what.xml</slide> +<slide>slides/map/3angle-different-tags.xml</slide> +<slide>slides/map/3angle-different-types.xml</slide> +<slide>slides/map/3angle-tags-not-equal.xml</slide> +<slide>slides/map/3angle-rough-outline.xml</slide> +<slide>slides/map/3angle-points.xml</slide> +<slide>slides/map/3angle-penalties.xml</slide> +<slide>slides/map/3angle-badges.xml</slide> + +<!-- technology --> +<slide>slides/map/3angle-tech.xml</slide> +<slide>slides/map/3angle-mongo-geoquery.xml</slide> +<slide>slides/map/3angle-mongo-finding-cuisines.xml</slide> +<slide>slides/map/3angle-storing-suggestions.xml</slide> +<slide>slides/map/3angle-vote.xml</slide> +<slide>slides/map/3angle-progress.xml</slide> + +<slide>slides/map/3angle-wrapup.xml</slide> + +<slide>slides/mongodb/resources.xml</slide> + +</presentation> diff --git a/3angle-sotm13.xml b/3angle-sotm13.xml new file mode 100644 index 0000000..58bb505 --- /dev/null +++ b/3angle-sotm13.xml @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="utf-8"?> +<presentation css="10gen-strict.css"> +<topic>MongoDB</topic> +<title>Gamifying Map Improvements</title> +<event>State of the Map</event> +<location>Birmingham, UK</location> +<lat>52.48142</lat><lon>-1.89983</lon> +<date>September 6th, 2013</date> +<speaker>Derick Rethans</speaker> +<email>osm@derickrethans.nl</email> +<twitter>derickr</twitter> +<joindin>http://derickrethans.nl/talks/3angle-sotm13</joindin> + +<slide>slides/mongodb/title.xml</slide> + +<!-- Foursquare --> +<slide>slides/map/foursquare1.xml</slide> +<slide>slides/map/foursquare2.xml</slide> +<slide>slides/map/foursquare-addict.xml</slide> +<slide>slides/map/foursquare4.xml</slide> +<slide>slides/map/foursquare3.xml</slide> + +<!-- 3angle example --> +<slide>slides/map/3angle-intro.xml</slide> +<slide>slides/map/3angle-example.xml</slide> + +<!-- how --> +<!-- import --> +<slide>slides/map/import-script.xml</slide> +<slide>slides/map/import-example-froscon.xml</slide> +<slide>slides/map/3angle-what.xml</slide> +<slide>slides/map/3angle-different-tags.xml</slide> +<slide>slides/map/3angle-different-types.xml</slide> +<slide>slides/map/3angle-tags-not-equal.xml</slide> +<slide>slides/map/3angle-rough-outline.xml</slide> +<slide>slides/map/3angle-points.xml</slide> +<slide>slides/map/3angle-penalties.xml</slide> +<slide>slides/map/3angle-badges.xml</slide> + +<!-- technology --> +<slide>slides/map/3angle-tech.xml</slide> +<slide>slides/map/3angle-mongo-geoquery.xml</slide> +<slide>slides/map/3angle-storing-suggestions.xml</slide> +<slide>slides/map/3angle-vote.xml</slide> +<slide>slides/map/3angle-progress.xml</slide> + +<slide>slides/map/3angle-wrapup.xml</slide> + +<slide>slides/mongodb/resources.xml</slide> + +</presentation> diff --git a/mongo-osm-froscon13.xml b/mongo-osm-froscon13.xml new file mode 100644 index 0000000..c0e22d5 --- /dev/null +++ b/mongo-osm-froscon13.xml @@ -0,0 +1,170 @@ +<?xml version="1.0" encoding="utf-8"?> +<presentation css="10gen-strict.css"> +<topic>MongoDB</topic> +<title>Finding Pubs… (and other things)</title> +<event>FrOSCon</event> +<location>Sankt Augustin, Germany</location> +<lat>50.77884</lat><lon>7.18483</lon> +<date>August 24th, 2013</date> +<speaker>Derick Rethans</speaker> +<email>derick@10gen.com</email> +<twitter>derickr</twitter> +<joindin>http://derickrethans.nl/talks/mongo-osm-froscon13</joindin> + +<slide>slides/mongodb/title.xml</slide> + +<slide>slides/mongodb/closed-pub.xml</slide> +<!-- A few words about our dataset --> +<slide>slides/mongodb/few-words-about-osm.xml</slide> + +<slide>slides/mongodb/flat-vs-sphere.xml</slide> + +<slide>slides/map/flat-sphere-flickr.xml</slide> + +<!-- DATA STORAGE --> +<!-- + No more [ lon, lat ], but geojson instead + +SAY WHERE ELSE GeoJson is used +--> +<slide>slides/mongodb/geojson.xml</slide> + +<!-- + POINT: + show an image, and the GeoJson under +--> +<slide>slides/mongodb/geojson-point.xml</slide> +<!-- + LINESTRING: + show an image, and the GeoJson under +--> +<slide>slides/mongodb/geojson-linestring.xml</slide> +<!-- + POLYGON: + show an image, and the GeoJson under +--> +<slide>slides/mongodb/geojson-polygon.xml</slide> + +<!-- + CELLS, + We divide the surface of the earth into cells + A library called S2 from Google does the hard work + Cells have a level which define the size of the cell. + S2 provides 31 levels + The higher the level, the smaller the cell, and therefore the more needed to cover the earth + By default, we use all levels between 500m on a side and 100km on a side +--> +<slide>slides/mongodb/cells.xml</slide> +<!-- + Show grid of (part of) London: + - Point, Westminster palace + - Line, Oxford Street + - Polygon, Hyde Park +--> +<slide>slides/mongodb/cells-level10-example-london-1.xml</slide> +<slide>slides/mongodb/cells-level10-example-london-2.xml</slide> +<slide>slides/mongodb/cells-level10-example-london-3.xml</slide> + + +<!-- operators + $near + find stuff near a point + index required + $geoWithin + find stuff within a polygon/circle + index NOT required + $geoIntersects + find stuff that intersects with other stuff + index NOT required + +--> +<slide>slides/mongodb/geo-in-2.4.xml</slide> + +<!-- near + - Example with road and park + - slide with index/no index, and comparsion with 2.2? +--> +<!-- geoWithin + - Example with road and park + - slide with index/no index, and comparsion with 2.2? +--> +<!-- geoIntersects + - Example with road and park + - slide with index/no index, and comparsion with 2.2? +--> +<slide>slides/mongodb/geo-near.xml</slide> + +<!-- + NEAR + + Starts from a point + Looks at concentric donuts from that point + Want to look at documents within the donut + If distance from query point to document is within the donut, output + Adapts size of the donut as needed +--> +<slide>slides/mongodb/geo-near-explanation-0.xml</slide> +<slide>slides/mongodb/geo-near-explanation-1.xml</slide> +<slide>slides/mongodb/geo-near-explanation-2.xml</slide> +<slide>slides/mongodb/geo-near-explanation-3.xml</slide> +<slide>slides/mongodb/geo-near-explanation-4.xml</slide> +<slide>slides/mongodb/geo-near-explanation-5.xml</slide> +<slide>slides/mongodb/geo-near-explanation-6.xml</slide> +<slide>slides/mongodb/geo-near-explanation-7.xml</slide> + +<!-- + GeoWithin/GeoIntersecs + + Generate a covering for geometry in query + Look at all points in all overlapping cells + Cells may be larger or smaller than our covering + Must look at cells that contain our covering + Must look at cells that we contain + See if documents are within or intersect our query geometry + + Show examples of: + - within: The Palace of Westminster (point) in "City of Westminster" (polygon) + - intersect: thames (line) crossing London (polygon) +--> +<slide>slides/mongodb/geo-within.xml</slide> +<slide>slides/mongodb/geo-within-1.xml</slide> +<slide>slides/mongodb/geo-within-2.xml</slide> + +<slide>slides/mongodb/geo-intersects.xml</slide> + + +<!-- +Without index: + $near + Look at every point + Sort by distance + Very slow, so requires an index. + $geoWithin + Look at every document + Is it within the query polygon? + Order is arbitrary + $geoIntersects + Look at every document + Does it intersect with the query geometry? + Order is arbitrary +--> +<!-- AGGREGATION: + + - show tube stations per borough + - show pubs by borough + +http://docs.mongodb.org/manual/reference/aggregation/#stage._S_geoNear + +- distance is important +- $geoNear in aggregation can't deal with more than one 2dsphere index +- spherical option is *required* when using a 2dsphere index +--> +<slide>slides/mongodb/geo-aggregation.xml</slide> +<slide>slides/mongodb/geo-aggregation2.xml</slide> + +<slide>slides/map/osm-xapi.xml</slide> +<slide>slides/map/import-script-manchester.xml</slide> + +<slide>slides/mongodb/resources.xml</slide> + +</presentation> diff --git a/osm-visualisation-sotm13.xml b/osm-visualisation-sotm13.xml new file mode 100644 index 0000000..8de1a39 --- /dev/null +++ b/osm-visualisation-sotm13.xml @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="utf-8"?> +<presentation css="10gen-strict.css"> +<topic>MongoDB</topic> +<title>Visualising Progress</title> +<event>State of the Map</event> +<location>Birmingham, UK</location> +<lat>52.48142</lat><lon>-1.89983</lon> +<date>September 7th, 2013</date> +<speaker>Derick Rethans</speaker> +<email>osm@derickrethans.nl</email> +<twitter>derickr</twitter> +<joindin>http://derickrethans.nl/talks/osm-visualisation-sotm13</joindin> + +<slide>slides/mongodb/title.xml</slide> +<slide>slides/mongodb/me.xml</slide> + +<!-- It all started in Kensington… --> +<slide>slides/map/vis-start.xml</slide> +<slide>slides/map/vis-not-too-spectacular.xml</slide> +<slide>slides/map/vis-shots.xml</slide> +<slide>slides/map/vis-progress-what-does-it-show.xml</slide> +<slide>slides/map/vis-how-does-it-work.xml</slide> +<slide>slides/map/vis-prerequisites.xml</slide> +<slide>slides/map/vis-getting-data.xml</slide> +<slide>slides/map/vis-setup-replication.xml</slide> +<slide>slides/map/vis-fetching-data.xml</slide> +<slide>slides/map/vis-artwork.xml</slide> +<slide>slides/map/vis-calculate-difference.xml</slide> +<slide>slides/map/vis-render-edit-points.xml</slide> +<slide>slides/map/vis-render-maps.xml</slide> +<slide>slides/map/vis-combine-edit-points.xml</slide> +<slide>slides/map/vis-convert-images-into-movie.xml</slide> +<slide>slides/map/vis-music.xml</slide> + +<slide>slides/map/vis-is-that-all.xml</slide> +<slide>slides/map/vis-yoe-redaction.xml</slide> +<slide>slides/map/vis-yoe-basic-idea.xml</slide> +<slide>slides/map/vis-yoe-step1-grabbing-changes.xml</slide> +<slide>slides/map/vis-yoe-step2-combining-changes.xml</slide> +<slide>slides/map/vis-yoe-changes-video.xml</slide> +<slide>slides/map/vis-yoe-flat-to-3d.xml</slide> +<slide>slides/map/vis-yoe-video.xml</slide> +<slide>slides/map/vis-yoe-reaction-period.xml</slide> +<slide>slides/map/vis-yoe-video-redaction.xml</slide> +<slide>slides/map/vis-yoe-special-variants.xml</slide> +<slide>slides/map/vis-yoe-mask.xml</slide> +<slide>slides/map/vis-yoe-changes-video-partial.xml</slide> + +<slide>slides/map/vis-what-next.xml</slide> +<slide>slides/mongodb/questions.xml</slide> + +<slide>slides/mongodb/resources.xml</slide> + +</presentation> diff --git a/slides/map/3angle-badges.xml b/slides/map/3angle-badges.xml new file mode 100644 index 0000000..e328b47 --- /dev/null +++ b/slides/map/3angle-badges.xml @@ -0,0 +1,14 @@ +<slide> +<title>Badges</title> + +<blurb>*Awarded for (cron):*</blurb> +<list> + <bullet>1st, 5th, 10th, … for a category</bullet> + <bullet>1st, 5th, 10th, … for a tag type</bullet> + <bullet>1st, 5th, 10th, … for an area</bullet> + <bullet>Accepted suggestions in a specific timeframe</bullet> + <bullet>Plus and minus votes</bullet> + <bullet>Corrected tags vs. new tags</bullet> + <bullet>Special challenges (disabilities, Octoberfest etc)</bullet> +</list> +</slide> diff --git a/slides/map/3angle-different-tags.xml b/slides/map/3angle-different-tags.xml new file mode 100644 index 0000000..151ef2f --- /dev/null +++ b/slides/map/3angle-different-tags.xml @@ -0,0 +1,23 @@ +<slide> +<title>Different Tags</title> + +<blurb>*All:*<br/> + Name, Address, Smoking, Wheelchair, Opening Times +</blurb> + +<blurb>*Restaurant:*<br/> + Cuisine +</blurb> + +<blurb>*Pub:*<br/> + Real Ale?, Real Cider? +</blurb> + +<blurb>*Telephone:*<br/> + Payment methods +</blurb> + +<blurb>*Benches:*<br/> + Material, Backrest, Sun +</blurb> +</slide> diff --git a/slides/map/3angle-different-types.xml b/slides/map/3angle-different-types.xml new file mode 100644 index 0000000..271dd11 --- /dev/null +++ b/slides/map/3angle-different-types.xml @@ -0,0 +1,7 @@ +<slide> +<title>Field types</title> + +<blurb>Fields can be free-form, or a dropdown:</blurb> + +<image filename="3angle-select.png"/> +</slide> diff --git a/slides/map/3angle-example.xml b/slides/map/3angle-example.xml new file mode 100644 index 0000000..40b4008 --- /dev/null +++ b/slides/map/3angle-example.xml @@ -0,0 +1,5 @@ +<slide> + <title>3angle</title> + + <iframe width="1000" filename='examples/3angle/?l=threeangle&zoom=17;&lat=:-:lat:-:&lon=:-:lon:-:'/> +</slide> diff --git a/slides/map/3angle-intro.xml b/slides/map/3angle-intro.xml new file mode 100644 index 0000000..49a77a8 --- /dev/null +++ b/slides/map/3angle-intro.xml @@ -0,0 +1,18 @@ +<slide> +<title>3angle</title> + +<blurb>Introducing 3angle</blurb> + +<blurb align="center">~…insert fancy logo here…~</blurb> + +<list> + <bullet>Give points for *improving* the information in already existing PoIs</bullet> + <bullet>Give points for vetting new information</bullet> + <bullet>Built on top of MongoDB</bullet> +</list> +<break/> +<list> + <bullet>Come up with some fancy badges</bullet> + <bullet>What sort of PoIs?</bullet> +</list> +</slide> diff --git a/slides/map/3angle-mongo-finding-cuisines.xml b/slides/map/3angle-mongo-finding-cuisines.xml new file mode 100644 index 0000000..3da08d8 --- /dev/null +++ b/slides/map/3angle-mongo-finding-cuisines.xml @@ -0,0 +1,27 @@ +<slide> +<title>Finding used values</title> + +<blurb>Using MongoDB's aggregation framework</blurb> +<example> +define( 'TAGS', 'ts' ); + +$pipeline = [ + '$match' => [ TAGS => new MongoRegex( '/^cuisine=[a-z_-]+$/' ) ], + + '$project' => [ TAGS => 1 ], + + '$unwind' => '$' . TAGS, + + '$match' => [ TAGS => new MongoRegex( '/^cuisine=[a-z_-]+$/' ) ], + + '$group' => [ + '_id' => '$' . TAGS, + 'count' => [ '$sum' => 1 ], + ), + + '$sort' => [ '_id' => 1 ] +]; + +$result = $this->c->aggregate( $pipeline ); +</example> +</slide> diff --git a/slides/map/3angle-mongo-geoquery.xml b/slides/map/3angle-mongo-geoquery.xml new file mode 100644 index 0000000..9ca41c8 --- /dev/null +++ b/slides/map/3angle-mongo-geoquery.xml @@ -0,0 +1,28 @@ +<slide> +<title>Finding the items</title> + +<blurb>GeoJSON for data storage:</blurb> +<example inline="1"> +"l" : { + "type" : "Polygon", + "coordinates" : [ + [ + *[ 7.2018081, 50.7697172 ]*, + *[ 7.2017458, 50.7695921 ]*, + *[ 7.2019352, 50.7695544 ]*, + *[ 7.2019975, 50.7696794 ]*, + *[ 7.2018081, 50.7697172 ]* + ] + ] +},</example> +<blurb>Query:</blurb> +<example> +$query = [ + LOC => [ + '$near' => [ + '$geometry' => [ 'type' => 'Point', 'coordinates' => [ 7.19, 50.76 ] ], + '$maxDistance' => 500 + ], + ], … +</example> +</slide> diff --git a/slides/map/3angle-penalties.xml b/slides/map/3angle-penalties.xml new file mode 100644 index 0000000..7a9d795 --- /dev/null +++ b/slides/map/3angle-penalties.xml @@ -0,0 +1,9 @@ +<slide> +<title>Penalties</title> + +<blurb>Quality over Quantity</blurb> +<list> + <bullet>Suggestion is declined (cron)</bullet> + <bullet>Voters with plus votes on declined suggestion (cron)</bullet> +</list> +</slide> diff --git a/slides/map/3angle-points.xml b/slides/map/3angle-points.xml new file mode 100644 index 0000000..ab0223c --- /dev/null +++ b/slides/map/3angle-points.xml @@ -0,0 +1,17 @@ +<slide> +<title>Points</title> + +<blurb>*Amount depends on:*</blurb> +<list> + <bullet>Tag importance</bullet> + <bullet>For votes: how soon after the suggestion was made</bullet> +</list> + +<blurb>*Awarded for:*</blurb> +<list> + <bullet>Checking in (instantly)</bullet> + <bullet>Suggesting a new value (instantly)</bullet> + <bullet>Voting on a new value (+/-) (instantly)</bullet> + <bullet>Acceptance of suggestion (3 plus votes) (cron)</bullet> +</list> +</slide> diff --git a/slides/map/3angle-progress.xml b/slides/map/3angle-progress.xml new file mode 100644 index 0000000..a66f063 --- /dev/null +++ b/slides/map/3angle-progress.xml @@ -0,0 +1,15 @@ +<slide> +<title>Current state</title> + +<list> + <bullet>|00dd00|Importing data|</bullet> + <bullet>|00dd00|Showing data on the map|</bullet> + <bullet>|00dd00|Storing suggestions|</bullet> + <bullet>|ee9900|Design|</bullet> + <bullet>|ff6600|Storing votes|</bullet> + <bullet>|ff0000|User authentication|</bullet> + <bullet>|ff0000|Points and badges|</bullet> + <bullet>|ee9900|Score calculation|</bullet> + <bullet>|ff0000|Feeding data back to OpenStreetMap|</bullet> +</list> +</slide> diff --git a/slides/map/3angle-rough-outline.xml b/slides/map/3angle-rough-outline.xml new file mode 100644 index 0000000..b0666b2 --- /dev/null +++ b/slides/map/3angle-rough-outline.xml @@ -0,0 +1,13 @@ +<slide> +<title>How does it work?</title> + +<list> + <bullet>Cron runs to calculate scores</bullet> + <bullet>Rules can change</bullet> + <bullet>You can "check in" to any object, always</bullet> + <bullet>If there is no "check in", you can suggest new values</bullet> + <bullet>If there is a "check in" already, you get to vote</bullet> + <bullet>3 plus votes → the change is propagated to OpenStreetMap</bullet> + <bullet>3 minus votes → the suggestion is removed</bullet> +</list> +</slide> diff --git a/slides/map/3angle-select.png b/slides/map/3angle-select.png new file mode 100644 index 0000000..320cf5c Binary files /dev/null and b/slides/map/3angle-select.png differ diff --git a/slides/map/3angle-storing-suggestions.xml b/slides/map/3angle-storing-suggestions.xml new file mode 100644 index 0000000..6254a66 --- /dev/null +++ b/slides/map/3angle-storing-suggestions.xml @@ -0,0 +1,21 @@ +<slide> +<title>Storing suggestions</title> + +<example> +{ + "_id" : ObjectId("5216190444670a5e20151202"), + "id" : "n1566340485", + "approvers" : [ + NumberLong(79999), + NumberLong(80106), + ], + "decliners" : [ ], + "approver_count" : 2, + "decliner_count" : 0, + "key" : "cuisine", + "last" : NumberLong(1377215982), + "suggester" : NumberLong(79908), + "value" : "german" +} +</example> +</slide> diff --git a/slides/map/3angle-tags-not-equal.xml b/slides/map/3angle-tags-not-equal.xml new file mode 100644 index 0000000..8d34334 --- /dev/null +++ b/slides/map/3angle-tags-not-equal.xml @@ -0,0 +1,19 @@ +<slide> +<title>Not all tags are equal</title> + +<example inline="1"> + "ts" : [ +* "amenity=pub",* +|ff0000| "name=Ehr-Bar"| +|ff2a00| "addr:housenumber=19",| +|ff2a00| "addr:street=Mendener Straße",| +|ff8000| "addr:postcode=53757",| +|ff8000| "smoking=no",| +|ff8000| "wheelchair=no",| +|ffaa00| "real_ale=no",| +|ffaa00| "real_cider=no",| +|ffd500| "addr:city=Sankt Augustin",| +|ffff00| "addr:country=DE",| + ], +</example> +</slide> diff --git a/slides/map/3angle-tech.xml b/slides/map/3angle-tech.xml new file mode 100644 index 0000000..dad488d --- /dev/null +++ b/slides/map/3angle-tech.xml @@ -0,0 +1,11 @@ +<slide> +<title>Technology</title> + +<list> + <bullet>Plain HTML</bullet> + <bullet>Mobile friendly</bullet> + <bullet>Leaflet for displaying the map</bullet> + <bullet>MongoDB with geospatial support as data storage</bullet> + <bullet>PHP as interface layer</bullet> +</list> +</slide> diff --git a/slides/map/3angle-vote.xml b/slides/map/3angle-vote.xml new file mode 100644 index 0000000..bcf9c20 --- /dev/null +++ b/slides/map/3angle-vote.xml @@ -0,0 +1,54 @@ +<slide> +<title>Recording votes</title> + +<example> +$collection->update( + [ '_id' => 'n1566340485', 'key' => 'cuisine', 'value' => 'german' ], + [ + '$inc' => [ 'approver_count' => 1 ], + '$push' => [ 'approvers' => 83453 ], + '$set' => [ 'last' => time() ] + ] +); +</example> + +<div effect="fade-out"> +<example> +{ + "_id" : ObjectId("5216190444670a5e20151202"), + "id" : "n1566340485", + "approvers" : [ + NumberLong(79999), + NumberLong(80106), + ], + "decliners" : [ ], + "approver_count" : 2, + "decliner_count" : 0, + "key" : "cuisine", + "last" : NumberLong(1377215982), + "suggester" : NumberLong(79908), + "value" : "german" +} +</example> +</div> +<div effect="fade-in"> +<example inline="1"> +{ + "_id" : ObjectId("5216190444670a5e20151202"), + "id" : "n1566340485", + "approvers" : [ + NumberLong(79999), + NumberLong(80106), + *NumberLong(83453),* + ], + "decliners" : [ ], + *"approver_count" : 3,* + "decliner_count" : 0, + "key" : "cuisine", + *"last" : NumberLong(1623422341),* + "suggester" : NumberLong(79908), + "value" : "german" +} +</example> +</div> +</slide> diff --git a/slides/map/3angle-what.xml b/slides/map/3angle-what.xml new file mode 100644 index 0000000..023eb90 --- /dev/null +++ b/slides/map/3angle-what.xml @@ -0,0 +1,26 @@ +<slide> +<title>Which objects do we care about?</title> + +<example inline="1"> +"ts" : [ + "addr:housenumber=48", + "addr:street=Mendener Straße", +|ff0000| "amenity|=restaurant", + "name=Blumenhof", + "wheelchair=yes" +], +</example> + +<blurb>For now:</blurb> +<example> +'ts' => array( + '$in' => array( + new MongoRegex( "/^amenity=/" ), + new MongoRegex( "/^shop=/" ), + new MongoRegex( "/^tourism=/" ), + ) +) +</example> +<blurb>Most importantly, this includes pubs ;-)</blurb> + +</slide> diff --git a/slides/map/3angle-wrapup.xml b/slides/map/3angle-wrapup.xml new file mode 100644 index 0000000..aad8c77 --- /dev/null +++ b/slides/map/3angle-wrapup.xml @@ -0,0 +1,11 @@ +<slide> +<title>Wrap-up</title> + +<list> + <bullet>Foursquare</bullet> + <bullet>OpenStreetMap data</bullet> + <bullet>3angle as alternative</bullet> + <bullet>Importing, storage and queries with MongoDB</bullet> + <bullet>What's next?</bullet> +</list> +</slide> diff --git a/slides/map/4sq1.png b/slides/map/4sq1.png new file mode 100644 index 0000000..88995c6 Binary files /dev/null and b/slides/map/4sq1.png differ diff --git a/slides/map/4sq2.png b/slides/map/4sq2.png new file mode 100644 index 0000000..3cd4c34 Binary files /dev/null and b/slides/map/4sq2.png differ diff --git a/slides/map/4sq3.png b/slides/map/4sq3.png new file mode 100644 index 0000000..4c21343 Binary files /dev/null and b/slides/map/4sq3.png differ diff --git a/slides/map/4sq4.png b/slides/map/4sq4.png new file mode 100644 index 0000000..72d2068 Binary files /dev/null and b/slides/map/4sq4.png differ diff --git a/slides/map/artwork.png b/slides/map/artwork.png new file mode 100644 index 0000000..2bb57de Binary files /dev/null and b/slides/map/artwork.png differ diff --git a/slides/map/clock-hour.jpg b/slides/map/clock-hour.jpg new file mode 100644 index 0000000..898e4e1 Binary files /dev/null and b/slides/map/clock-hour.jpg differ diff --git a/slides/map/combine-points.png b/slides/map/combine-points.png new file mode 100644 index 0000000..6aa3cab Binary files /dev/null and b/slides/map/combine-points.png differ diff --git a/slides/map/edit-points.png b/slides/map/edit-points.png new file mode 100644 index 0000000..bb8be82 Binary files /dev/null and b/slides/map/edit-points.png differ diff --git a/slides/map/foursquare-addict.xml b/slides/map/foursquare-addict.xml new file mode 100644 index 0000000..15fbf08 --- /dev/null +++ b/slides/map/foursquare-addict.xml @@ -0,0 +1,5 @@ +<slide> + <title>Foursquare</title> + + <iframe align="right" width="1000" filename='examples/3angle/?l=foursquare&zoom=7;&lat=:-:lat:-:&lon=:-:lon:-:'/> +</slide> diff --git a/slides/map/foursquare1.xml b/slides/map/foursquare1.xml new file mode 100644 index 0000000..029e287 --- /dev/null +++ b/slides/map/foursquare1.xml @@ -0,0 +1,5 @@ +<slide> + <title>Foursquare</title> + + <image filename="4sq1.png"/> +</slide> diff --git a/slides/map/foursquare2.xml b/slides/map/foursquare2.xml new file mode 100644 index 0000000..db1fa36 --- /dev/null +++ b/slides/map/foursquare2.xml @@ -0,0 +1,5 @@ +<slide> + <title>Foursquare</title> + + <image filename="4sq2.png"/> +</slide> diff --git a/slides/map/foursquare3.xml b/slides/map/foursquare3.xml new file mode 100644 index 0000000..de5ca10 --- /dev/null +++ b/slides/map/foursquare3.xml @@ -0,0 +1,5 @@ +<slide> + <title>Foursquare</title> + + <image filename="4sq3.png"/> +</slide> diff --git a/slides/map/foursquare4.xml b/slides/map/foursquare4.xml new file mode 100644 index 0000000..b47af9e --- /dev/null +++ b/slides/map/foursquare4.xml @@ -0,0 +1,5 @@ +<slide> + <title>Foursquare</title> + + <image filename="4sq4.png"/> +</slide> diff --git a/slides/map/import-example-froscon.xml b/slides/map/import-example-froscon.xml new file mode 100644 index 0000000..accf118 --- /dev/null +++ b/slides/map/import-example-froscon.xml @@ -0,0 +1,30 @@ +<slide> +<title>Example data point</title> + +<example>db.poiConcat.find( { _id: 'n1566340485' } ).pretty();</example> + +<example> +{ + "_id" : "n1566340485", + "ty" : NumberLong(1), + "l" : { + "type" : "Point", + "coordinates" : [ 7.1903879, 50.7841392 ] + }, + "ts" : [ + "addr:housenumber=48", + "addr:street=Mendener Straße", + "amenity=restaurant", + "name=Blumenhof", + "wheelchair=yes" + ], + "m" : { + "v" : NumberLong(4), + "cs" : NumberLong(15878090), + "uid" : NumberLong(92274), + "ts" : NumberLong(1367019680) + } +} +</example> +</slide> + diff --git a/slides/map/import-script.xml b/slides/map/import-script.xml index e99f06b..dea05c4 100644 --- a/slides/map/import-script.xml +++ b/slides/map/import-script.xml @@ -2,7 +2,6 @@ <title>The import script</title> <list> - <bullet>Open file with XML Reader</bullet> <bullet>Loop over all nodes, and: <list> <bullet>*Store the node in a different cache database*</bullet> @@ -15,6 +14,11 @@ <bullet>Store the way into the collection</bullet> </list> </bullet> - <bullet>(Delete the cache database)</bullet> + <bullet>Loop over all the relations, and: + <list> + <bullet>*See whether we have multi-polygon relations and do something clever with them*</bullet> + <bullet>Remove ways that were converted into a multi-polygon</bullet> + </list> + </bullet> </list> </slide> diff --git a/slides/map/mask-08-argentina-partial.png b/slides/map/mask-08-argentina-partial.png new file mode 100644 index 0000000..6451994 Binary files /dev/null and b/slides/map/mask-08-argentina-partial.png differ diff --git a/slides/map/mask-08-argentina.png b/slides/map/mask-08-argentina.png new file mode 100644 index 0000000..ccdf478 Binary files /dev/null and b/slides/map/mask-08-argentina.png differ diff --git a/slides/map/osm-happy-face.xml b/slides/map/osm-happy-face.xml index e12fbff..d7558b0 100644 --- a/slides/map/osm-happy-face.xml +++ b/slides/map/osm-happy-face.xml @@ -1,8 +1,7 @@ <slide> -<title>Google Map Maker vs. OpenStreetMap (2)</title> -<subtitle>OpenStreetMap</subtitle> +<title>OpenStreetMap</title> -<image filename="500px-Simple_happy_face.svg.png"/> +<image align="left" filename="500px-Simple_happy_face.svg.png"/> <list> <bullet>The raw vector data is available to download with an open license giving everyone the freedom to reuse and redistribute. Data users are permitted to make a commercial profit, but it's all on an even playing field. OpenStreetMap itself is a not-for-profit "good cause" open data organization.</bullet> <bullet>If you spend time contributing to OpenStreetMap you are helping a good cause, and building a dataset which can be free and open for all and forever. </bullet> diff --git a/slides/map/osm-mapping-party1.xml b/slides/map/osm-mapping-party1.xml index a66be82..022776e 100644 --- a/slides/map/osm-mapping-party1.xml +++ b/slides/map/osm-mapping-party1.xml @@ -4,9 +4,8 @@ <blurb>As OSM's main purpose is creating a database of free map data:</blurb> <list> <bullet>data needs to be generated (surveyed), which is best done by hand</bullet> - <bullet>data needs to be added to the database: Potlatch, JOSM</bullet> + <bullet>data needs to be added to the database</bullet> <bullet>surveying is more fun if you're not alone</bullet> - <bullet>why not do it in a group?</bullet> </list> <image filename='postbox.png'/> </div> diff --git a/slides/map/osm-sad-face-4sq.xml b/slides/map/osm-sad-face-4sq.xml new file mode 100644 index 0000000..8a6e303 --- /dev/null +++ b/slides/map/osm-sad-face-4sq.xml @@ -0,0 +1,11 @@ +<slide> +<title>Foursquare</title> + +<image align="left" filename="500px-Simple_sad_face.svg.png"/> +<list> + <bullet>Only simple points (of interest)</bullet> + <bullet>Foursquare owns the underlying data and they protect their commercial interests by keeping this locked away (even though it was contributed by you)</bullet> + <bullet>If you spend time contributing to Foursquare, you are helping a commercial company</bullet> +</list> + +</slide> diff --git a/slides/map/osm-sad-face.xml b/slides/map/osm-sad-face.xml index 26414ac..e645226 100644 --- a/slides/map/osm-sad-face.xml +++ b/slides/map/osm-sad-face.xml @@ -1,6 +1,5 @@ <slide> -<title>Google Map Maker vs. OpenStreetMap (1)</title> -<subtitle>Google Map Maker</subtitle> +<title>Google Map Maker</title> <image filename="500px-Simple_sad_face.svg.png"/> <list> diff --git a/slides/map/osm-xapi.xml b/slides/map/osm-xapi.xml index 2fca453..9557349 100644 --- a/slides/map/osm-xapi.xml +++ b/slides/map/osm-xapi.xml @@ -7,13 +7,12 @@ <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</blurb> -<example>http://download.geofabrik.de/openstreetmap/</example> <blurb>A metro extract:</blurb> <example>http://metro.teczno.com/#manchester</example> <blurb>XAPI (via Overpass):</blurb> +<example>http://www.overpass-api.de/api/xapi?map?bbox=7.12,50.73,7.25,50.81</example> <example>http://www.overpass-api.de/api/xapi?*[bbox=7.1,51.2,7.2,51.3][amenity=pub]</example> </div> diff --git a/slides/map/short-cut-road.jpg b/slides/map/short-cut-road.jpg new file mode 100644 index 0000000..ca372ea Binary files /dev/null and b/slides/map/short-cut-road.jpg differ diff --git a/slides/map/thumbnails.png b/slides/map/thumbnails.png new file mode 100644 index 0000000..b5c928b Binary files /dev/null and b/slides/map/thumbnails.png differ diff --git a/slides/map/vis-artwork.xml b/slides/map/vis-artwork.xml new file mode 100644 index 0000000..8bda293 --- /dev/null +++ b/slides/map/vis-artwork.xml @@ -0,0 +1,10 @@ +<slide> +<title>Artwork</title> + +<list> + <bullet>Put a 900x472 pixel image in %config/title-image.jpg%</bullet> + <bullet>Run: %./create-artwork.sh%</bullet> +</list> +<break lines="3"/> +<image filename="artwork.png"/> +</slide> diff --git a/slides/map/vis-calculate-difference.xml b/slides/map/vis-calculate-difference.xml new file mode 100644 index 0000000..d3faf69 --- /dev/null +++ b/slides/map/vis-calculate-difference.xml @@ -0,0 +1,15 @@ +<slide> +<title>Calculating the difference</title> + +<list> + <bullet>Basically we just use Osmosis to do the hard work:<example> +osmosis \ + --rx {$files[$i + 1]} --rx {$files[$i]} \ + --derive-change \ + --write-xml-change file='changes/diff-{$m[2]}.osc'</example> + </bullet> + <bullet>We take a short cut if the file sizes are the same</bullet> +</list> +<break lines="2"/> +<image align="center" filename="short-cut-road.jpg"/> +</slide> diff --git a/slides/map/vis-combine-edit-points.xml b/slides/map/vis-combine-edit-points.xml new file mode 100644 index 0000000..b4c0d7b --- /dev/null +++ b/slides/map/vis-combine-edit-points.xml @@ -0,0 +1,6 @@ +<slide> +<title>Combine rendered maps and edit point overlays</title> + +<break lines="3"/> +<image filename="combine-points.png"/> +</slide> diff --git a/slides/map/vis-convert-images-into-movie.xml b/slides/map/vis-convert-images-into-movie.xml new file mode 100644 index 0000000..65b5da0 --- /dev/null +++ b/slides/map/vis-convert-images-into-movie.xml @@ -0,0 +1,18 @@ +<slide> +<title>From images to movie</title> + +<list> + <bullet>Blend with title image for start</bullet> + <bullet>Blend with black for end</bullet> + <bullet>Using %mencoder% to combine into movie: +<example>OPTIONS="-ovc lavc -lavcopts vcodec=msmpeg4v2:vbitrate=16000" +mencoder "mf://artwork/title*.jpg" -mf fps=25 -o title.avi $OPTIONS +mencoder "mf://images/x*.jpg" -mf fps=25 -o middle.avi $OPTIONS +mencoder "mf://artwork/end*.jpg" -mf fps=25 -o end.avi $OPTIONS + +mencoder -oac copy -oac copy -ovc copy -o test.avi title.avi middle.avi end.avi</example> + </bullet> +</list> + +<image filename="thumbnails.png"/> +</slide> diff --git a/slides/map/vis-fetching-data.xml b/slides/map/vis-fetching-data.xml new file mode 100644 index 0000000..f003d87 --- /dev/null +++ b/slides/map/vis-fetching-data.xml @@ -0,0 +1,11 @@ +<slide> +<title>Fetching data</title> + +<list> + <bullet>%./update.sh% fetches the next state of the map</bullet> + <bullet>You might have to tweak %configuration.txt% to get to a whole hour</bullet> + <bullet>Sometimes you get 14 or 16 minutes</bullet> + <bullet>You can either run it every 20 minutes, but I prefer to wait til the editting is over</bullet> + <bullet>You can remove any unwanted file from the %dumps% directory</bullet> +</list> +</slide> diff --git a/slides/map/vis-getting-data.xml b/slides/map/vis-getting-data.xml new file mode 100644 index 0000000..aec367e --- /dev/null +++ b/slides/map/vis-getting-data.xml @@ -0,0 +1,22 @@ +<slide> +<title>Getting the data</title> + +<list> + <bullet>It is a lot easier if you do this *before* the party starts</bullet> + <bullet>I use an extract from %http://download.geofabrik.de/%</bullet> + <bullet>Create %config.txt% and change the coordinates: +<example># osmosis +bbox=left=-0.176 right=-0.115 top=51.53 bottom=51.50 +# edits, make sure LON1 < LON2 and LAT1 > LAT2 +LON1=-0.15447 +LON2=-0.13512 +LAT1=51.5176 +LAT2=51.5086</example> + </bullet> + <bullet>Extract the part that you need:<example> +../osmosis-latest/bin/osmosis --rbf workers=3 file=great-britain-latest.osm.pbf \ + --bb `cat config.txt | grep "bbox=" | cut -d "=" -f 2-` --lp --wx party.osm +</example> + </bullet> +</list> +</slide> diff --git a/slides/map/vis-how-does-it-work-automated.xml b/slides/map/vis-how-does-it-work-automated.xml new file mode 100644 index 0000000..9e2bcba --- /dev/null +++ b/slides/map/vis-how-does-it-work-automated.xml @@ -0,0 +1,15 @@ +<slide> +<title>How do I make them?</title> + +<list> + <bullet>Get map data (%.osm%) from before the mapping party</bullet> + <bullet>Grab a new data set every 15 minutes</bullet> + <bullet>De-duplicate %osm% files to save space</bullet> + <bullet>Find a suitable cover photo and generate artwork</bullet> + <bullet>For each two data sets, calculate the difference</bullet> + <bullet>Calculate and generate images containing changes</bullet> + <bullet>Render each map file with Mapnik to an image</bullet> + <bullet>Combine all the images into a video</bullet> + <bullet>Add music to video</bullet> +</list> +</slide> diff --git a/slides/map/vis-how-does-it-work.xml b/slides/map/vis-how-does-it-work.xml new file mode 100644 index 0000000..70932d2 --- /dev/null +++ b/slides/map/vis-how-does-it-work.xml @@ -0,0 +1,25 @@ +<slide> +<title>How do I make them?</title> + +<div effect="fade-out"> +<list> + <bullet>Get map data (%.osm%) from before the mapping party</bullet> +</list> +</div> +<div effect="fade-in"> +<list> + <bullet>*Get map data (%.osm%) from before the mapping party*</bullet> +</list> +</div> +<list> + <bullet>Grab a new data set every 15 minutes</bullet> + <bullet>De-duplicate %osm% files to save space</bullet> + <bullet>Find a suitable cover photo and generate artwork</bullet> + <bullet>For each two data sets, calculate the difference</bullet> + <bullet>Calculate and generate images containing changes</bullet> + <bullet>Render each map file with Mapnik to an image</bullet> + <bullet>Combine all the images into a video</bullet> + <bullet>Add music to video</bullet> +</list> + +</slide> diff --git a/slides/map/vis-is-that-all.xml b/slides/map/vis-is-that-all.xml new file mode 100644 index 0000000..2ddb3dc --- /dev/null +++ b/slides/map/vis-is-that-all.xml @@ -0,0 +1,5 @@ +<slide> + +<blurb class="quote-page">Is that all?</blurb> +<div effect="fade-in"><blurb align="center">Not really...</blurb></div> +</slide> diff --git a/slides/map/vis-music.xml b/slides/map/vis-music.xml new file mode 100644 index 0000000..709430f --- /dev/null +++ b/slides/map/vis-music.xml @@ -0,0 +1,20 @@ +<slide> +<title>Music</title> + +<list> + <bullet>Jamendo to find CC-BY music</bullet> + <bullet>Match length with length of video</bullet> + <bullet>There's lots of "substandard" music</bullet> +</list> + +<blurb>%http://www.jamendo.com/en/search ?qs=fq=license_cc:(sa AND -nd AND -nc) &q=tags_idstr:"electronic"&sort=duration asc%</blurb> + +<list> + <bullet>Use %mencoder% to add sound track:</bullet> +</list> + +<example>mencoder -ovc copy \ + -audiofile /home/derick/media/mp3/cc-by/Olga_Scotland_-_Ernst.mp3 -oac copy \ + test.avi \ + -o progress.avi</example> +</slide> diff --git a/slides/map/vis-not-too-spectacular.xml b/slides/map/vis-not-too-spectacular.xml new file mode 100644 index 0000000..e0a539d --- /dev/null +++ b/slides/map/vis-not-too-spectacular.xml @@ -0,0 +1,5 @@ +<slide> + +<blurb class="quote-page">Right.</blurb> +<blurb class="center">that wasn't too spectacular</blurb> +</slide> diff --git a/slides/map/vis-prerequisites.xml b/slides/map/vis-prerequisites.xml new file mode 100644 index 0000000..e4d81c1 --- /dev/null +++ b/slides/map/vis-prerequisites.xml @@ -0,0 +1,10 @@ +<slide> +<title>What do I need?</title> + +<list> + <bullet>ImageMagick</bullet> + <bullet>PHP 5.3+ (with GD)</bullet> + <bullet>Osmosis</bullet> + <bullet>A working Mapnik rendering stack with all the default locations and users</bullet> +</list> +</slide> diff --git a/slides/map/vis-progress-what-does-it-show.xml b/slides/map/vis-progress-what-does-it-show.xml new file mode 100644 index 0000000..fa01fcd --- /dev/null +++ b/slides/map/vis-progress-what-does-it-show.xml @@ -0,0 +1,11 @@ +<slide> +<title>The progress video</title> + +<list> + <bullet>Each node modification creates an expanding circle</bullet> + <bullet>Different colours for different contributors (mod 5 on the user id)</bullet> + <bullet>GPX tracks in the same colours as the contributir</bullet> + <bullet>Auto-zoom if required</bullet> + <bullet>Some catchy music</bullet> +</list> +</slide> diff --git a/slides/map/vis-render-edit-points.xml b/slides/map/vis-render-edit-points.xml new file mode 100644 index 0000000..6010400 --- /dev/null +++ b/slides/map/vis-render-edit-points.xml @@ -0,0 +1,11 @@ +<slide> +<title>Creating the edit points</title> + +<list> + <bullet>Calculates bounding box in sliding window</bullet> + <bullet>Draws expanding circles for each change</bullet> + <bullet>Optionally also adds GPX tracks</bullet> +</list> + +<image filename="edit-points.png"/> +</slide> diff --git a/slides/map/vis-render-maps.xml b/slides/map/vis-render-maps.xml new file mode 100644 index 0000000..b51f436 --- /dev/null +++ b/slides/map/vis-render-maps.xml @@ -0,0 +1,14 @@ +<slide> +<title>Render maps</title> + +<blurb>For each map "frame":</blurb> +<list> + <bullet>Import %.osm% file into PostGreSQL:<example>osm2pgsql -S /home/derick/install/osm2pgsql/default.style --slim -d gis -C 2400 $i</example></bullet> + <bullet>Only if it's not the same as the previous one</bullet> + <bullet>Read calculated bounding boxes and put those in the environment</bullet> + <bullet>Run mapnik to render image: +<example>export MAPNIK_MAP_FILE=/home/derick/install/mapnik/osm.xml +/home/derick/install/mapnik/generate_image.py ${LAT1} ${LON1} ${LAT2} ${LON2}</example> + </bullet> +</list> +</slide> diff --git a/slides/map/vis-setup-replication.xml b/slides/map/vis-setup-replication.xml new file mode 100644 index 0000000..1d1e7ab --- /dev/null +++ b/slides/map/vis-setup-replication.xml @@ -0,0 +1,12 @@ +<slide> +<title>Set-up replication</title> + +<list> + <bullet>Remove left-over stuff: <example>rm configuration.txt</example></bullet> + <bullet>Initialise replication: <example>../osmosis-latest/bin/osmosis --rrii</example></bullet> + <bullet>Get a matching state file from %http://planet.openstreetmap.org/replication/minute% and save it as %state.txt%</bullet> + <bullet>Edit %configuration.txt% and make it:<example> +baseUrl=http://planet.openstreetmap.org/replication/minute +maxInterval = 900</example></bullet> +</list> +</slide> diff --git a/slides/map/vis-shots.xml b/slides/map/vis-shots.xml new file mode 100644 index 0000000..abd348a --- /dev/null +++ b/slides/map/vis-shots.xml @@ -0,0 +1,5 @@ +<slide> +<title>Recent variants</title> + +<video filename="shotts.webm" align="center" width="1000" height="563"/> +</slide> diff --git a/slides/map/vis-start.xml b/slides/map/vis-start.xml new file mode 100644 index 0000000..7fec863 --- /dev/null +++ b/slides/map/vis-start.xml @@ -0,0 +1,15 @@ +<slide> +<title>It all started in Kensington</title> + +<div effect="fade-out"> +<list> + <bullet>I've been going to mapping parties since summer 2010</bullet> + <bullet>A year later I started playing with rendering my own maps</bullet> + <bullet>And thought it'd be nice to see what happened during a mapping party</bullet> +</list> +</div> + +<div effect="fade-in"> +<video filename="south-kensington-mapping.webm" align="center" width="1000" height="563"/> +</div> +</slide> diff --git a/slides/map/vis-what-next.xml b/slides/map/vis-what-next.xml new file mode 100644 index 0000000..6c7bba1 --- /dev/null +++ b/slides/map/vis-what-next.xml @@ -0,0 +1,10 @@ +<slide> +<title>What's next?</title> + +<list> + <bullet>Better contrast for Year of Edits ☺</bullet> + <bullet>Wrap up scripts so that they're easier reusable</bullet> + <bullet>Perhaps a few more different visualisations</bullet> + <bullet>Any ideas or hints?</bullet> +</list> +</slide> diff --git a/slides/map/vis-yoe-basic-idea.xml b/slides/map/vis-yoe-basic-idea.xml new file mode 100644 index 0000000..cdb7899 --- /dev/null +++ b/slides/map/vis-yoe-basic-idea.xml @@ -0,0 +1,14 @@ +<slide> +<title>Year of Edits</title> + +<blurb>The basic idea is:</blurb> + +<list> + <bullet>Display every edit made throughout a year</bullet> + <bullet>Colours change with time</bullet> + <bullet>Make it 3D</bullet> + <bullet>…and spinning</bullet> + <bullet>(Idea "copied" from ITO World)</bullet> + <bullet>Make it easy to configure and reuse</bullet> +</list> +</slide> diff --git a/slides/map/vis-yoe-changes-video-partial.xml b/slides/map/vis-yoe-changes-video-partial.xml new file mode 100644 index 0000000..3ae4737 --- /dev/null +++ b/slides/map/vis-yoe-changes-video-partial.xml @@ -0,0 +1,5 @@ +<slide> +<title>Year of Edits 2013 (Argentina)</title> + +<video filename="yearofedits2013-argentina-part.webm"/> +</slide> diff --git a/slides/map/vis-yoe-changes-video.xml b/slides/map/vis-yoe-changes-video.xml new file mode 100644 index 0000000..94ffc36 --- /dev/null +++ b/slides/map/vis-yoe-changes-video.xml @@ -0,0 +1,5 @@ +<slide> +<title>Combined change images</title> + +<video filename="yearofedits2012-changes-part.webm"/> +</slide> diff --git a/slides/map/vis-yoe-flat-to-3d.xml b/slides/map/vis-yoe-flat-to-3d.xml new file mode 100644 index 0000000..5bb6812 --- /dev/null +++ b/slides/map/vis-yoe-flat-to-3d.xml @@ -0,0 +1,17 @@ +<slide> +<title>Flat to 3D</title> + +<list> + <bullet>The images need to wrapped around a sphere</bullet> + <bullet>Some tricky 3D rotation required</bullet> +</list> +<div effect="fade-in"> +<list> + <bullet>Say hello to the *POV-Ray* ray-tracer</bullet> + <bullet>Zoom and rotation follows an "interesting" formula</bullet> + <bullet>Lower layer is a Earth map</bullet> + <bullet>Transparent "changes" layer</bullet> + <bullet>I also add atmosphere and some other effects</bullet> +</list> +</div> +</slide> diff --git a/slides/map/vis-yoe-mask.xml b/slides/map/vis-yoe-mask.xml new file mode 100644 index 0000000..af2703a --- /dev/null +++ b/slides/map/vis-yoe-mask.xml @@ -0,0 +1,4 @@ +<slide> +<title>Partial "Year of Edits" video — Mask</title> +<image filename="mask-08-argentina.png"/> +</slide> diff --git a/slides/map/vis-yoe-reaction-period.xml b/slides/map/vis-yoe-reaction-period.xml new file mode 100644 index 0000000..f2e4c53 --- /dev/null +++ b/slides/map/vis-yoe-reaction-period.xml @@ -0,0 +1,9 @@ +<slide> +<title>The redaction process</title> + +<list> + <bullet>One off thing</bullet> + <bullet>Each "redaction square" produces a ball that's flying away</bullet> + <bullet>Took "bloody ages" to render</bullet> +</list> +</slide> diff --git a/slides/map/vis-yoe-redaction.xml b/slides/map/vis-yoe-redaction.xml new file mode 100644 index 0000000..2918747 --- /dev/null +++ b/slides/map/vis-yoe-redaction.xml @@ -0,0 +1,5 @@ +<slide> +<title>The Year of Edits videos</title> + +<image filename="year-of-edits-redaction.jpg"/> +</slide> diff --git a/slides/map/vis-yoe-special-variants.xml b/slides/map/vis-yoe-special-variants.xml new file mode 100644 index 0000000..7d81836 --- /dev/null +++ b/slides/map/vis-yoe-special-variants.xml @@ -0,0 +1,8 @@ +<slide> +<title>Special variants</title> + +<list> + <bullet>Burgos: A progress video with hourly instead of minutely updates, from 2009 til "now"</bullet> + <bullet>A "year of edits" video with the changes in just Argentina</bullet> +</list> +</slide> diff --git a/slides/map/vis-yoe-step1-grabbing-changes.xml b/slides/map/vis-yoe-step1-grabbing-changes.xml new file mode 100644 index 0000000..7c2ca95 --- /dev/null +++ b/slides/map/vis-yoe-step1-grabbing-changes.xml @@ -0,0 +1,11 @@ +<slide> +<title>Grabbing changes</title> + +<list> + <bullet>A script fetches all files from %http://planet.openstreetmap.org/replication/hour/000/%</bullet> + <bullet>This gives me a file for each hour</bullet> +</list> + +<image filename="clock-hour.jpg"/> + +</slide> diff --git a/slides/map/vis-yoe-step2-combining-changes.xml b/slides/map/vis-yoe-step2-combining-changes.xml new file mode 100644 index 0000000..bf8b96c --- /dev/null +++ b/slides/map/vis-yoe-step2-combining-changes.xml @@ -0,0 +1,16 @@ +<slide> +<title>From changes file to image</title> + +<list> + <bullet>A year has 365 * 24 = 8760 hours</bullet> + <bullet>At 25 frames/sec the video would take 700 seconds</bullet> + <bullet>10 minutes is boring, so a frame for every 6 hours</bullet> +</list> +<break/> +<blurb>A script:</blurb> +<list> + <bullet>Combines 6 "change files"</bullet> + <bullet>Maps each long/lat to a 11520 pixels horizontal and 5760 vertical</bullet> + <bullet>Writes out an image which keeps into account previous changes as well</bullet> +</list> +</slide> diff --git a/slides/map/vis-yoe-video-redaction.xml b/slides/map/vis-yoe-video-redaction.xml new file mode 100644 index 0000000..1113d97 --- /dev/null +++ b/slides/map/vis-yoe-video-redaction.xml @@ -0,0 +1,5 @@ +<slide> +<title>Redaction period</title> + +<video filename="yearofedits2012-redaction.webm"/> +</slide> diff --git a/slides/map/vis-yoe-video.xml b/slides/map/vis-yoe-video.xml new file mode 100644 index 0000000..fb4a098 --- /dev/null +++ b/slides/map/vis-yoe-video.xml @@ -0,0 +1,5 @@ +<slide> +<title>The start</title> + +<video filename="yearofedits2012-start.webm"/> +</slide> diff --git a/slides/map/year-of-edits-redaction.jpg b/slides/map/year-of-edits-redaction.jpg new file mode 100644 index 0000000..04352f5 Binary files /dev/null and b/slides/map/year-of-edits-redaction.jpg differ diff --git a/slides/mongodb/geo-aggregation2.xml b/slides/mongodb/geo-aggregation2.xml index fdcb80d..9680805 100644 --- a/slides/mongodb/geo-aggregation2.xml +++ b/slides/mongodb/geo-aggregation2.xml @@ -19,6 +19,7 @@ res = db.poiConcat.aggregate( [ { '$or' : [ { ts: 'amenity=pub' }, { ts: 'amenity=bar' }, + { ts: 'amenity=restaurant' }, ] } } @@ -42,6 +43,7 @@ res = db.poiConcat.aggregate( [ {| '$or' : [ { ts: 'amenity=pub' }, { ts: 'amenity=bar' }, + { ts: 'amenity=restaurant' }, ] } } @@ -65,6 +67,7 @@ res = db.poiConcat.aggregate( [ { |ff0000| '$or' : [| |ff0000| { ts: 'amenity=pub' },| |ff0000| { ts: 'amenity=bar' },| +|ff0000| { ts: 'amenity=restaurant' },| |ff0000| ]| |ff0000| }| } diff --git a/slides/mongodb/resources.xml b/slides/mongodb/resources.xml index 0a2af53..1b86f88 100644 --- a/slides/mongodb/resources.xml +++ b/slides/mongodb/resources.xml @@ -1,12 +1,7 @@ <slide type="thanks"> <break/> <qrcode>http://derickrethans.nl/talks/:-:talk_id:-:</qrcode> -<blurb class="event-presenter"> -Slides:<br/>:-:joindin:-:<br/><br/> -:-:speaker:-:—@:-:twitter:-:—:-:email:-: -</blurb> -<div class="footer-thanks"> -<image align="left" filename="10gen.png" pdf-scale="0.4" x-offset="2" y-offset="12.3"/> -<image align="right" filename="mongodb.png" pdf-scale="0.4" x-offset="18" y-offset="13.3"/> -</div> +<break/> +<blurb class="pres-url-small">:-:joindin:-:</blurb> +<blurb class="pres-url-small">:-:email:-:—@:-:twitter:-:</blurb> </slide> diff --git a/slides/mongodb/title.xml b/slides/mongodb/title.xml index ac517fa..12a3416 100644 --- a/slides/mongodb/title.xml +++ b/slides/mongodb/title.xml @@ -2,10 +2,7 @@ <break lines="2"/> <blurb class="event-title">:-:title:-:</blurb> <break lines="1"/> -<blurb class="event-presenter">:-:speaker:-:—:-:email:-:—@:-:twitter:-:</blurb> +<blurb class="event-presenter">:-:speaker:-:</blurb> +<blurb class="pres-url-small">:-:email:-:—@:-:twitter:-:</blurb> <blurb class="pres-url-small">:-:joindin:-:</blurb> -<div class="footer"> -<image align="left" filename="10gen-small.png" pdf-scale="0.4" x-offset="2" y-offset="12.3"/> -<image align="right" filename="mongodb-small.png" pdf-scale="0.4" x-offset="18" y-offset="13.3"/> -</div> </slide> diff --git a/templates/default/video.ezt b/templates/default/video.ezt new file mode 100644 index 0000000..f3658ad --- /dev/null +++ b/templates/default/video.ezt @@ -0,0 +1,19 @@ +{use $node, $pres, $inline = false} +{var $align = get_attribute( $node, 'align' )} +{var $attr = get_attribute( $node, 'attr' )} +{var $width = get_attribute( $node, 'width' )} +{var $height = get_attribute( $node, 'height' )} +{var $source = ''} +{if !$width}{$width = 1010}{/if} +{if !$height}{$height = 592}{/if} +{if str_starts_with(get_attribute($node, 'filename'), 'http://')} +{$source = get_attribute($node, 'filename')} +{else} +{$source = str_append($pres->base, get_attribute( $node, 'filename' ))} +{/if} +<div{if $align} align='{$align}'{/if}> +<video {if $inline}class='inline' {/if} width="{$width}" height="{$height}" preload controls autoplay> + <source src="{$source}" type='video/webm; codecs="vp8, vorbis"' /> +</video> +{if $attr}<span class='attribution'>{$attr}</span>{/if} +</div>