Package org.codice.ddf.spatial.kml.util
Class KmlTransformations
java.lang.Object
org.codice.ddf.spatial.kml.util.KmlTransformations
-
Method Summary
Modifier and TypeMethodDescriptionstatic de.micromata.opengis.kml.v_2_2_0.DocumentencloseDoc(de.micromata.opengis.kml.v_2_2_0.Placemark placemark, de.micromata.opengis.kml.v_2_2_0.Style style, String documentId, String docName) Encapsulate the kml content (placemarks, etc.) with a style in a KML Document element.static de.micromata.opengis.kml.v_2_2_0.KmlencloseKml(de.micromata.opengis.kml.v_2_2_0.Document doc, String docId, String docName) Wrap KML document with the opening and closing kml tags
-
Method Details
-
encloseKml
public static de.micromata.opengis.kml.v_2_2_0.Kml encloseKml(de.micromata.opengis.kml.v_2_2_0.Document doc, String docId, String docName) Wrap KML document with the opening and closing kml tags- Parameters:
document-folderId- which should be the subscription id if it exists- Returns:
- completed KML
-
encloseDoc
public static de.micromata.opengis.kml.v_2_2_0.Document encloseDoc(de.micromata.opengis.kml.v_2_2_0.Placemark placemark, de.micromata.opengis.kml.v_2_2_0.Style style, String documentId, String docName) Encapsulate the kml content (placemarks, etc.) with a style in a KML Document element. If either content or style are not null, they will be in the resulting Document- Parameters:
style-documentId- which should be the metacard idkml-- Returns:
- KML DocumentType element with style and content
-