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
Comment | File | Size | Author |
---|---|---|---|
kml.png | 470 bytes | mvc | |
views_bonus_kml.patch | 5.57 KB | mvc |
Comments
Comment #1
neclimdulOh 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.
Comment #2
hvalentim CreditAttribution: hvalentim commentedGosh! Wonderful and much needed!
Any chance we will see it incorporated soon?
Comment #3
jeffschulersubscribe.
maybe this should move into http://drupal.org/project/views_data_export ?
Comment #4
neclimdul