public class KmlLightDocument extends Object
| Constructor and Description |
|---|
KmlLightDocument()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPlacemark(Node name,
Node address,
Node description,
Node timespan)
Create a
|
Element |
createAddress(String street,
String municipality,
String zip)
Create a Note: it's up to the processing application to convert
the address to (GPS) coordinates.
|
Element |
createDescriptionNode(String description)
Create a
|
Element |
createName(String name)
Create a
|
Element |
createTimespan(Date begin,
Date end)
Create a
|
byte[] |
getDocumentAsBytes()
Get the raw KML bytes
|
public static final String KML_NS
public KmlLightDocument()
throws IOException
IOExceptionpublic Element createName(String name)
name - name to be usedpublic Element createAddress(String street, String municipality, String zip)
street - street name and numbermunicipality - muncipality / cityzip - zip codepublic Element createDescriptionNode(String description)
description - text to be usedpublic Element createTimespan(Date begin, Date end)
begin - public void addPlacemark(Node name, Node address, Node description, Node timespan)
name - the name (title)address - the addressdescription - the short descriptiontimespan - day of birthpublic byte[] getDocumentAsBytes()
throws IOException
IOExceptionCopyright © 2008-2018 FedICT. All Rights Reserved.