Class SimpleGMLReader
java.lang.Object
com.vividsolutions.jump.util.io.SimpleGMLReader
Provides an easy way to read spatial data from a GML document. Attributes
are not read. Simply pass in a Reader on the GML, and the names of the
various tags. A List of Geometries will be returned.
Notice : currently, this class is only used in jumptest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreadFMEFile(File file) Reads a GML file that is in FME format.toGeometries(InputStream gml, String collectionElement, String featureElement, String geometryElement) toGeometries(String gml, String collectionElement, String featureElement, String geometryElement)
-
Constructor Details
-
SimpleGMLReader
public SimpleGMLReader()
-
-
Method Details
-
toGeometries
public List toGeometries(InputStream gml, String collectionElement, String featureElement, String geometryElement) throws Exception - Parameters:
gml- inputStream of an XML document containing GMLcollectionElement- the name of the feature-collection tagfeatureElement- the name of the feature taggeometryElement- the name of the geometry tag- Returns:
- a List of Geometries
- Throws:
Exception
-
toGeometries
-
readFMEFile
Reads a GML file that is in FME format.- Returns:
- the contents of the file, including both spatial and attribute data
- Throws:
Exception
-