Class KMLReader
java.lang.Object
org.locationtech.jts.io.kml.KMLReader
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a reader that creates objects using the defaultGeometryFactory.KMLReader(Collection<String> attributeNames) Creates a reader that creates objects using the defaultGeometryFactory.KMLReader(GeometryFactory geometryFactory) Creates a reader that creates objects using the givenGeometryFactory.KMLReader(GeometryFactory geometryFactory, Collection<String> attributeNames) Creates a reader that creates objects using the givenGeometryFactory. -
Method Summary
-
Constructor Details
-
KMLReader
public KMLReader()Creates a reader that creates objects using the defaultGeometryFactory. -
KMLReader
Creates a reader that creates objects using the givenGeometryFactory.- Parameters:
geometryFactory- the factory used to createGeometrys.
-
KMLReader
Creates a reader that creates objects using the defaultGeometryFactory.- Parameters:
attributeNames- names of attributes that should be parsed (i.e. extrude, altitudeMode, tesselate, etc).
-
KMLReader
Creates a reader that creates objects using the givenGeometryFactory.- Parameters:
geometryFactory- the factory used to createGeometrys.attributeNames- names of attributes that should be parsed (i.e. extrude, altitudeMode, tesselate, etc).
-
-
Method Details
-
read
Reads a KML representation of aGeometryfrom aString. If any attribute names were specified duringKMLReaderconstruction, they will be stored asMapinGeometry.setUserData(Object)- Parameters:
kmlGeometryString- string that specifies kml representation of geometry- Returns:
- a
Geometryspecified bykmlGeometryString - Throws:
ParseException- if a parsing problem occurs
-