|
Cookbook /
GeoTaggingSummary: Geotagging support within PmWiki using GeoRSS and KML compliant output options
Version: 1.2 (03 Nov 2009)
Prerequisites:
Status: Release
Maintainer: Smc
Categories: RSS, Integration
Discussion: GeoTagging-Talk
Questions answered by this recipe
DescriptionGeotagging support within PmWiki using GeoRSS and KML output options Installation1. Please download the following files and save in your cookbook folder:
Configuration1. local/config.php should be appended with the line: include_once("$FarmD/cookbook/georsswiki.php");
2. To add a 'KML' link for pages with geotagging information, edit your Wiki's Site/PageActions page to add the following:
(:if ! equal {*$Latitude} "":)
* %item rel=nofollow class=kml% [[{*$FullName}?action=pagekml | KML ]]
(:ifend:)
3. To add a 'GeoRSS' and 'KML' link for RecentChanges output with geotagging information, edit your Wiki's Site/SideBar page (or any other page) to add the following: * Geo Feeds: [-[[Site/AllRecentChanges?action=georss | GeoRSS]] [[Site/AllRecentChanges?action=kml | KML]]-] Testing Out1. Create and save one or more wiki pages e.g. WikiSandbox with the following markup somewhere within (adjust the coordinates to suit). The lat= and lon= can be omitted IF you make sure you input latitude space longitude (in that order): (:description This is a test geotagged wiki page:) (:coord lat=52.1234 lon=-2.2345:) 2. You'll now notice a new 'KML' link on your PageActions area. If using the standard PmWiki skin it's at the top right of your screen. Click this link to produce a KML file which can be loaded into GoogleEarth. On loading into GoogleEarth you'll be zoomed into and auto centered on a new pushpin. Click the push pin to display summary information about your page which has a URL link back to your wiki page. Example screen shot below: ![]() 3. You'll also notice two new links on your sidebar next to 'Geo Feeds' called 'GeoRSS' and 'KML'. Click this link will produce an appropriately formatted GeoRSS or KML feed from a list of all recent changes. The KML link, when opened in GoogleEarth will show the location of all wiki pages on the map. The GeoRSS feed can be feed you favorite web map server with similar data. ![]() IntegrationThe following new page actions are available:
Design NotesAdded custom markup directive (:coord:) to save geotag information as a {$Latitude} and {$Longitude} page variable. We reuse Pm's core RSS feed capability with new configuration to output KML and GeoRSS feeds using the ?action parameters defined above. This allows you to pin wiki pages to your favorite desktop of web mapping software e.g. GoogleEarth. Each wiki page also has meta name tags called 'ICBM' and 'geo.position' which allow your pages to be indexed by geo search engine bots. Future Enhancements (in priority order)
Release Notes
CommentsSee Discussion at GeoTagging-Talk See Also
ContributorsUser notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki. |