How can I get KML output from GeoPress?
Hey, I'm just trying this out, so sorry if I'm asking a stupid question. But the GeoPress pages say you should be able to output KML to view content in Google Earth etc - how do you do that? Is there a link you can use to simply get all the geotagged posts in a kml format, like the KMLExport extension in MediaWiki?
If not: Please make that! :)
Anders S. Løvlie
If not: Please make that! :)
Anders S. Løvlie
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?There is a wp-kml.php in the GeoPress folder. You can either create a hyperlink in your template directly to this file, or you can create a file soft link in the terminal on your host.
I haven't found an automatic way in WordPress for a plugin to provide a file at the root leve.
1 person says
this answers the question
-
Thanks a lot! I got it working now.
Just fyi, though - I had to edit line 30 of the wp-kml.php file to get the right path to wp-config.php. (See error message I got initially below.)
Warning: require_once(wp-config.php) [function.require-once]: failed to open stream: No such file or directory in /usr/home/inventio/www/lovlie/locatext/wp/wp-content/plugins/geopress/wp-kml.php on line 30
Fatal error: require_once() [function.require]: Failed opening required 'wp-config.php' (include_path='.:/usr/local/share/pear') in /usr/home/inventio/www/lovlie/locatext/wp/wp-content/plugins/geopress/wp-kml.php on line 30
Cheers,
Anders S. Løvlie -
Inappropriate?Great - I assume you changed it to:
30: require_once('../../../wp-config.php');
I can add a Template function for something like geopress_kml_link(); that would just drop in a relative link to the wp-kml.link.php in the GeoPress plugin folder. -
Inappropriate?Thank you both. I have had success generating a KML file as you describe above.
I’m happy
-
Inappropriate?Could someone please provide a simple step by step explanation of how to do this for the benefit of non-technical users?
I’m confused
Loading Profile...



EMPLOYEE

