MichDe / wordpress-geo-mashup

Automatically exported from code.google.com/p/wordpress-geo-mashup
1 stars 0 forks source link

Export to KML #29

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

Feature request: export locations to KML file (or similar) for import into
Google Earth.

Thanks!

Wordpress: 2.0.10
Geo-mashup: 1.0.2

Original issue reported on code.google.com by oba...@gmail.com on 16 Apr 2007 at 8:07

GoogleCodeExporter commented 9 years ago
Ha, I was just thinking of adding that one myself ;)

Original comment by dylankk...@gmail.com on 16 Apr 2007 at 8:09

GoogleCodeExporter commented 9 years ago
+1 from me as well. I'm looking to use Geo Mashup for 
http://www.roadsignmath.com/
and the pre-WordPress one I had Google Earth support. A KML output would be 
awesome.

Original comment by jthingel...@gmail.com on 19 Aug 2007 at 6:36

GoogleCodeExporter commented 9 years ago
I made a wordpress kml-export. Place the file feed-kml.php in the wp-includes
directory. Place the file wp-kml.php in your wordpress main directory en point 
your
browser to it (http://yourdomain/wp-kml.php).

Original comment by rjf.buz...@gmail.com on 22 May 2008 at 10:20

Attachments:

GoogleCodeExporter commented 9 years ago
updated version of feed-kml.php (lat/lon were mixed up)

Original comment by rjf.buz...@gmail.com on 22 May 2008 at 11:31

Attachments:

GoogleCodeExporter commented 9 years ago
This script adds a network url to Google Earth that points to your kml file 9see
above). You'll have to edit the file to fill in the correct url. Put this 
script in
your main wordpress directory and point your browser to it.

Original comment by rjf.buz...@gmail.com on 22 May 2008 at 11:34

Attachments:

GoogleCodeExporter commented 9 years ago
I would be nice to make a kml export script that organizes the locations 
according to
categories (folders in the kml file) and uses the category icons. 

Original comment by rjf.buz...@gmail.com on 22 May 2008 at 11:36

GoogleCodeExporter commented 9 years ago
Thank you RJF, this is exactly what I was looking for!
I imported the KML in Google Maps "My Maps" and everything looks great.
However, when I import the KML in Google Earth, the locations are off by a few 
miles.
I guess this is an issue with Google Earth.

Thanks a lot!

Original comment by oba...@gmail.com on 28 May 2008 at 8:34

GoogleCodeExporter commented 9 years ago
Bonjour,

I don't understand english quite Well.
Is the solution to my problem inside this discussion ? 
http://gibon-saumur.homeip.net/india/saltmarch/?p=893
Thanks
Bapu

Original comment by bernard....@gmail.com on 18 Dec 2008 at 1:33

GoogleCodeExporter commented 9 years ago
This is great RJF, thanks a lot.  Do you have plans to implement that script 
with
categories and icons?

Original comment by amenity....@gmail.com on 13 Jan 2009 at 11:09

GoogleCodeExporter commented 9 years ago
http://www.webhoop.com/payfon/wp-kml.php

The lat & long do not appear :(

Original comment by webh...@gmail.com on 4 Jan 2010 at 4:09

GoogleCodeExporter commented 9 years ago
Btw I am using wp Version 2.8.4

With geomashup Version 1.3alpha2

Original comment by webh...@gmail.com on 4 Jan 2010 at 5:09

GoogleCodeExporter commented 9 years ago
Thank you very much for this extremely valuable addition!
Just wanted to let you know, though, that I think I found a small bug. In
feed-kml-php, lines 17-20:

<?php if (get_option('rss_use_excerpt')) : ?>
        <description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
<?php else : ?>
        <description><![CDATA[<?php the_excerpt_rss() ?>]]></description>

...I guess the last line should call the_content_rss(), right? Otherwise you 
will
always just get the excerpt.

Original comment by anderslo...@gmail.com on 4 Mar 2010 at 11:36

GoogleCodeExporter commented 9 years ago
...oh and I also encountered the problem described by webhoop. I found that the 
code
examples in Issue 134 were helpful:
http://code.google.com/p/wordpress-geo-mashup/issues/detail?id=134

Original comment by anderslo...@gmail.com on 9 Mar 2010 at 12:38

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Trying to get this to work and running into the same problem as webhoop - no 
co-ordinates display in the KML 
file. I'm not very familiar with this stuff but from what anderslovlie says, we 
have to edit RJF's original file and use 
<?php $coordinates_array = GeoMashup::post_coordinates() ?> somwhere as the new 
way of extracting co-
ordinates - is that right?

Is anyone able to help with how exactly to do that?...

Original comment by jackfrui...@gmail.com on 13 Apr 2010 at 2:21

GoogleCodeExporter commented 9 years ago
This was the first feature improvement I thought of after installing the 
plugin. Hope
to see it in an official release. +1 for this to be included.

Original comment by kenfa...@gmail.com on 23 Apr 2010 at 7:05

GoogleCodeExporter commented 9 years ago
@jackfruitdesign: This is my code, which inserts a placemark for each geotagged 
post:

<?php while( have_posts()) : the_post(); 
if (function_exists('geo_mashup_map')) $coords = GeoMashup::post_coordinates(); 
if ($coords) :      // only insert placemark for posts which have been geotagged
?>
<!-- inserting placemark with description and various data -->
<Point>
     <coordinates><?php echo $coords['lng'] . ', ' . $coords['lat']; ?></coordinates>
</Point>

...so, in other words, you call GeoMashup::post_coordinates() and then you get 
an
array with the lat and the lng.

Original comment by teksto...@gmail.com on 27 Apr 2010 at 4:42

GoogleCodeExporter commented 9 years ago
I'm using pages with WP Geo mashup maps plugin and it works really well. But 
when
running wp-kml.php to get a kml file with my sites geographical positions it 
seems
there is an issue (see http://pralinkartan.se/wp-kml.php) as it doesn't seem to 
go
into the posts loop at all. Is it because the post loop ignores pages? How 
could I
get around this issue?

Original comment by elenat...@hotmail.com on 30 Apr 2010 at 10:56

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I sorted the page looping by specifying appropriate page parameters of query 
posts
function, and put the code before the posts loop like this: 
    <?php $args = array('showposts' => '-1','post_type' => 'page','post_status' =>
'publish','post__not_in' => array(2,5,20)); query_posts($args);?>

Original comment by elenat...@hotmail.com on 3 May 2010 at 2:57

GoogleCodeExporter commented 9 years ago
Hi guys,

this exports works perfectly for me. Great job ! Though I want to use this KML 
export of my blog to put it on an already existing google map on My Maps.

I tried to import the KML with the URL of the generated file from the plugin 
with this addition, but it doesn't work.

Any ideas ?

Original comment by mathe.br...@gmail.com on 16 Sep 2010 at 11:29

GoogleCodeExporter commented 9 years ago
Arg! I can't get this working at all any ideas: I get an endwhile error!

Original comment by lewisdma...@gmail.com on 28 Oct 2011 at 11:46

GoogleCodeExporter commented 9 years ago
Hi Dylan and all, geo mashup is great but I am relatively new kid on this 
block, i get the principles of sing an rss enabled feed to create the kml 
export, but as the issue was identified as medium priority just wondered if 
within geo mashup its still on the development integration horizon or whether 
you decided to leave it outside.

I ask because the need is specific to what I need to be able to do? Please let 
me know and presume if exports kml can be a zipped kmz and execute in normal 
way on the fly on webserver. 

Excuse my lack of familiarity with the kml I understand principles just 
wondered whether the above code snippet in the includes folder with mods is 
still the best way to go for this purpose?

Thanks again this is all great!

Original comment by a...@intriguing-networks.com on 22 Nov 2011 at 11:55

GoogleCodeExporter commented 9 years ago
This and all open issues are candidates for integration into Geo Mashup, but 
there's a shortage of development and testing resources for most issues. If you 
try any of the code on this issue, post your results!

Original comment by dylankk...@gmail.com on 27 Nov 2011 at 3:22

GoogleCodeExporter commented 9 years ago
is there any solution to this recently? The files above dont seem to work 
anymore.

Original comment by tur...@gmail.com on 3 Aug 2013 at 6:48

GoogleCodeExporter commented 9 years ago
I have no knowledge of PHP unfortunately but here's what I could work. 

1)download attached feed-kml.php and place it under your /includes/ directory.

2) download wp-kml.php and place it under your main installation directory.

3) browse to your wp-kml.php file.

Original comment by tur...@gmail.com on 3 Aug 2013 at 12:34

GoogleCodeExporter commented 9 years ago
attached

Original comment by tur...@gmail.com on 3 Aug 2013 at 12:34

Attachments:

GoogleCodeExporter commented 9 years ago
is there any solution to this recently? 

Original comment by davideon...@gmail.com on 11 Dec 2014 at 10:20