This patch allows exporting the latitude and longitude added to a node via the location module as a KML file for use with Google Earth, Marble, and other compatible software.

Unlike CSV or XML feeds, the KML format requires a specific set of fields to be present: name, description, and coordinates. Field labels are used to indicate which fields are to be used. To use this, add the field "Location: Coordinates" with the label "coordinates", and add the placemark's name (e.g., the "Node: Title" field) with the label "name". Descriptions of the placemark are added using a CDATA region which can include arbitrary HTML, which will be rendered by Google Earth.

I'm including a PNG icon to be used with KML files, which is required for the patch.

The patch depends on a minor patch to the location module: #558144: Output KML-compatible decimal degrees

Further information on the structure of KML files is available at http://en.wikipedia.org/wiki/Keyhole_Markup_Language

CommentFileSizeAuthor
kml.png470 bytesmvc
views_bonus_kml.patch5.57 KBmvc
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

neclimdul’s picture

Oh cool, don't know how i missed this. I'd kinda wanted to have a KML plugin but never got around to looking at it. Will definitely review soon.

hvalentim’s picture

Gosh! Wonderful and much needed!
Any chance we will see it incorporated soon?

jeffschuler’s picture

subscribe.

maybe this should move into http://drupal.org/project/views_data_export ?

neclimdul’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)