gov.nasa.worldwind.ogc.kml
Class KMLMultiGeometry
java.lang.Object
gov.nasa.worldwind.util.xml.AbstractXMLEventParser
gov.nasa.worldwind.ogc.kml.KMLAbstractObject
gov.nasa.worldwind.ogc.kml.KMLAbstractGeometry
gov.nasa.worldwind.ogc.kml.KMLMultiGeometry
- All Implemented Interfaces:
- MessageListener, XMLEventParser
public class KMLMultiGeometry
- extends KMLAbstractGeometry
Represents the KML MultiGeometry element and provides access to its contents.
| Methods inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser |
allocate, doAddCharacters, doAddEventAttribute, doParseEventAttributes, doParseEventContent, freeResources, getAConstructor, getCharacters, getField, getField, getFields, getNamespaceURI, getParent, hasField, hasField, hasFields, mergeFields, newInstance, overrideFields, parse, parseCharacterContent, removeField, setField, setField, setFields, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
geometries
protected List<KMLAbstractGeometry> geometries
KMLMultiGeometry
public KMLMultiGeometry(String namespaceURI)
- Construct an instance.
- Parameters:
namespaceURI - the qualifying namespace URI. May be null to indicate no namespace qualification.
addGeometry
protected void addGeometry(KMLAbstractGeometry o)
applyChange
public void applyChange(KMLAbstractObject sourceValues)
- Overrides:
applyChange in class KMLAbstractGeometry
doAddEventContent
protected void doAddEventContent(Object o,
XMLEventParserContext ctx,
XMLEvent event,
Object... args)
throws XMLStreamException
- Overrides:
doAddEventContent in class AbstractXMLEventParser
- Throws:
XMLStreamException
getGeometries
public List<KMLAbstractGeometry> getGeometries()
mergeGeometries
protected void mergeGeometries(KMLMultiGeometry sourceMultiGeometry)
- Merge a list of incoming geometries with the current list. If an incoming geometry has the same ID as
an existing one, replace the existing one, otherwise just add the incoming one.
- Parameters:
sourceMultiGeometry - the incoming geometries.