/
KML Metacard Transformer
KML Metacard Transformer
Description
The KML Metacard Transformer is responsible for translating a Metacard into a KML formatted document.
Usage
Using the REST Endpoint for example, request a metacard with the transform option set to the KML shortname.
http://localhost:8181/services/catalog/96fa82e5c0034ef8aeaa45b15f126eef?transform=kml
Example Output
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <kml xmlns:ns2="http://www.google.com/kml/ext/2.2" xmlns="http://www.opengis.net/kml/2.2" xmlns:ns4="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0" xmlns:ns3="http://www.w3.org/2005/Atom"> <Folder> <name>DDF Query Results</name> <open xsi:type="xs:boolean" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">true</open> <Document id="96fa82e5c0034ef8aeaa45b15f126eef-doc"> <name>Example Title</name> <open xsi:type="xs:boolean" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">true</open> <Style id="defaultStyle"> <LineStyle> <color>8fff0000</color> <width>4.0</width> </LineStyle> <PolyStyle> <color>7dcc0000</color> <fill xsi:type="xs:boolean" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">true</fill> <outline xsi:type="xs:boolean" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">true</outline> </PolyStyle> </Style> <Placemark id="96fa82e5c0034ef8aeaa45b15f126eef"> <name>Example Title</name> <description>Example description. <a href="http://localhost:8181/services/catalog//96fa82e5c0034ef8aeaa45b15f126eef"> Example Title </a> </description> <styleUrl>#defaultStyle</styleUrl> </Placemark> </Document> </Folder> </kml>
Installation and Uninstallation
Install the ddf-kml-transformer feature using the Web Console or System Console.
Configuration
None
Implementation Details
Transformer Shortname | kml |
---|---|
MIME Type | application/vnd.google-earth.kml+xml |
Metacard Mapping
Metacard | KML | Notes |
---|---|---|
Metacard.ID | Placemark ID | |
Metacard.ID | Document ID | "-doc" suffix added |
DDMS Title | Placemark Name | |
DDMS Description & DDMS Title | Placemark Description | Placemark Description includes DDMS Description, the REST URL to access the complete metacard and the DDMS Title. |
DDMS Geometry | KML Geometry |
Known Issues
None
, multiple selections available,