Constructor and Description |
---|
KMLReader()
Creates a reader that creates objects using the default
GeometryFactory . |
KMLReader(Collection<String> attributeNames)
Creates a reader that creates objects using the default
GeometryFactory . |
KMLReader(GeometryFactory geometryFactory)
Creates a reader that creates objects using the given
GeometryFactory . |
KMLReader(GeometryFactory geometryFactory,
Collection<String> attributeNames)
Creates a reader that creates objects using the given
GeometryFactory . |
public KMLReader()
GeometryFactory
.public KMLReader(GeometryFactory geometryFactory)
GeometryFactory
.geometryFactory
- the factory used to create Geometry
s.public KMLReader(Collection<String> attributeNames)
GeometryFactory
.attributeNames
- names of attributes that should be parsed (i.e. extrude, altitudeMode, tesselate, etc).public KMLReader(GeometryFactory geometryFactory, Collection<String> attributeNames)
GeometryFactory
.geometryFactory
- the factory used to create Geometry
s.attributeNames
- names of attributes that should be parsed (i.e. extrude, altitudeMode, tesselate, etc).public Geometry read(String kmlGeometryString) throws ParseException
Geometry
from a String
.
If any attribute names were specified during KMLReader
construction,
they will be stored as Map
in Geometry.setUserData(Object)
kmlGeometryString
- string that specifies kml representation of geometryGeometry
specified by kmlGeometryString
ParseException
- if a parsing problem occursCopyright © 2024. All rights reserved.