svn: /web/presentations/trunk/ maps-tek11.xml slides/map/coordinate-transformation.xml slides/map/finding-food-data-mongo.xml
slides/map/finding-food-data-mysql.xml slides/map/finding-food-data-sqlite.xml slides/map/resources.xml

From: Date: Thu, 26 May 2011 21:12:06 +0000
Subject: svn: /web/presentations/trunk/ maps-tek11.xml slides/map/coordinate-transformation.xml slides/map/finding-food-data-mongo.xml
slides/map/finding-food-data-mysql.xml slides/map/finding-food-data-sqlite.xml slides/map/resources.xml
Groups: php.pres 
Request: Send a blank email to pres+get-1709@lists.php.net to get a copy of this message
derick Thu, 26 May 2011 21:12:06 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=311454 Log: - Updates for my tek mapping talk. Changed paths: U web/presentations/trunk/maps-tek11.xml U web/presentations/trunk/slides/map/coordinate-transformation.xml U web/presentations/trunk/slides/map/finding-food-data-mongo.xml U web/presentations/trunk/slides/map/finding-food-data-mysql.xml U web/presentations/trunk/slides/map/finding-food-data-sqlite.xml U web/presentations/trunk/slides/map/resources.xml Modified: web/presentations/trunk/maps-tek11.xml =================================================================== --- web/presentations/trunk/maps-tek11.xml 2011-05-26 19:28:07 UTC (rev 311453) +++ web/presentations/trunk/maps-tek11.xml 2011-05-26 21:12:06 UTC (rev 311454) @@ -38,10 +38,8 @@ <slide>slides/map/earth-not-a-sphere.xml</slide> <slide>slides/map/earth-sphere-approximation.xml</slide> <slide>slides/map/meridian.xml</slide> +<slide>slides/map/coordinates.xml</slide> <slide>slides/map/projections.xml</slide> -<slide>slides/map/coordinates.xml</slide> -<slide>slides/map/coordinate-transformation.xml</slide> -<slide>slides/map/grid-systems.xml</slide> <!-- SHOWING DATA @@ -88,7 +86,10 @@ <slide>slides/map/finding-food.xml</slide> <slide>slides/map/finding-distances.xml</slide> +<slide>slides/map/finding-food-data-sqlite.xml</slide> +<slide>slides/map/finding-food-data-mysql.xml</slide> <slide>slides/map/finding-food-take2.xml</slide> +<slide>slides/map/finding-food-data-mongo.xml</slide> <slide>slides/map/flickr.xml</slide> <!-- micro format: http://en.wikipedia.org/wiki/Geo_%28microformat%29 --> Modified: web/presentations/trunk/slides/map/coordinate-transformation.xml =================================================================== --- web/presentations/trunk/slides/map/coordinate-transformation.xml 2011-05-26 19:28:07 UTC (rev 311453) +++ web/presentations/trunk/slides/map/coordinate-transformation.xml 2011-05-26 21:12:06 UTC (rev 311454) @@ -6,11 +6,13 @@ <blurb>Helmert transformation:</blurb> <image filename="helmert2.png" attr="http://en.wikipedia.org/wiki/Helmert_transformation"/> - <blurb>WGS84 to OSGB36:</blurb> + <blurb>WGS84 to OSGB36 (OSTN2):</blurb> <example> cx: −446.448 cy: 125.157 cz: −542.06 s: 20.4894 rx: −0.1502 ry: −0.247 rz: −0.8421</example> <blurb>Accuracy of about 7m for a OSGB36/WGS84 transformation</blurb> + + <blurb>See also: <link href='http://wiki.openstreetmap.org/wiki/OSTN02_for_PHP'/></blurb> </slide> Modified: web/presentations/trunk/slides/map/finding-food-data-mongo.xml =================================================================== --- web/presentations/trunk/slides/map/finding-food-data-mongo.xml 2011-05-26 19:28:07 UTC (rev 311453) +++ web/presentations/trunk/slides/map/finding-food-data-mongo.xml 2011-05-26 21:12:06 UTC (rev 311454) @@ -37,8 +37,34 @@ <div effect="fade-in-out"> <blurb>Spatial Index</blurb> <example><![CDATA[ -db.poi.ensureIndex( { loc : '2d' } ); +db.poi.ensureIndex( { poi : '2d' } ); + +$s = $d->command( + array( + 'geoNear' => 'poi', + 'near' => array( $_GET['lat'], $_GET['lon'] ), + 'num' => 10000, + 'maxDistance' => $wantedD * (360 / (2*M_PI*6371.01)), // km to ° + 'query' => $query, + ) +); ]]></example> -<blurb>It is not a geospatial index (yet)</blurb> +<blurb>Geospatial Index (since 1.7)</blurb> +<!-- +<example><![CDATA[ +db.poi.ensureIndex( { poi : '2d' } ); + +$s = $d->command( + array( + 'geoNear' => 'poi', + 'spherical' => true, + 'near' => array( $_GET['lat'], $_GET['lon'] ), + 'num' => 10000, + 'maxDistance' => $wantedD / 6371.01, // km to radians + 'query' => $query, + ) +); +]]></example> +--> </div> </slide> Modified: web/presentations/trunk/slides/map/finding-food-data-mysql.xml =================================================================== --- web/presentations/trunk/slides/map/finding-food-data-mysql.xml 2011-05-26 19:28:07 UTC (rev 311453) +++ web/presentations/trunk/slides/map/finding-food-data-mysql.xml 2011-05-26 21:12:06 UTC (rev 311454) @@ -39,5 +39,7 @@ RETURN 2 * ASIN(SQRT(@d)) * 6371.01; END// ]]></example> + +<div><blurb>See also: <link href='http://drck.me/spat-mysql-8ls'/></blurb></div> </div> </slide> Modified: web/presentations/trunk/slides/map/finding-food-data-sqlite.xml =================================================================== --- web/presentations/trunk/slides/map/finding-food-data-sqlite.xml 2011-05-26 19:28:07 UTC (rev 311453) +++ web/presentations/trunk/slides/map/finding-food-data-sqlite.xml 2011-05-26 21:12:06 UTC (rev 311454) @@ -46,5 +46,6 @@ return $d * 6371.01; } ]]></example> +<div><blurb>See also: <link href='http://drck.me/spat-osm-sqlite-8la'/></blurb></div> </div> </slide> Modified: web/presentations/trunk/slides/map/resources.xml =================================================================== --- web/presentations/trunk/slides/map/resources.xml 2011-05-26 19:28:07 UTC (rev 311453) +++ web/presentations/trunk/slides/map/resources.xml 2011-05-26 21:12:06 UTC (rev 311454) @@ -13,6 +13,7 @@ <link href='http://www.flickr.com/services/api/'/> <link href='http://www.ordnancesurvey.co.uk/oswebsite/gps/information/coordinatesystemsinfo/guidecontents/index.html'/> <link href='http://en.wikipedia.org/wiki/Helmert_transformation'/> +<link href='http://wiki.openstreetmap.org/wiki/OSTN02_for_PHP'/> <link href='http://leaflet.cloudmade.com/examples/quick-start.html'/> <link href='http://code.google.com/apis/maps/documentation/javascript/'/> <link href='http://wiki.openstreetmap.org/wiki/Nominatim'/>

« previous php.pres (#1709) next »