|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vividsolutions.jts.io.gml2.GMLReader
Reads the gml geometry(s) from the user specified xml fragment into a JTS geometry.
This reader ignores namespace prefixes, and disables both the validation and namespace options on the SAXParser.
For a full description of GML geometries, visit the OGC web site http://www.opengeospatial.org/.
In most use cases, portions of a document will be delegated to this package.
It is the caller's responsibility to ensure that the supplied PrecisionModel
matches the precision of the incoming data.
If a lower precision for the data is required, a subsequent
process must be run on the data to reduce its precision.
Constructor Summary | |
GMLReader()
|
Method Summary | |
Geometry |
read(java.io.Reader reader,
GeometryFactory geometryFactory)
Reads the Character Stream into a single JTS Geometry Where a collection of Geometries are found, a JTS GeometryCollection is returned. |
Geometry |
read(java.lang.String gml,
GeometryFactory geometryFactory)
Reads the GML2 String into a single JTS Geometry Where a collection of Geometries are found, a JTS GeometryCollection is returned. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GMLReader()
Method Detail |
public Geometry read(java.lang.String gml, GeometryFactory geometryFactory) throws org.xml.sax.SAXException, java.io.IOException, javax.xml.parsers.ParserConfigurationException
gml
- The GML String to parsegeometryFactory
- When null, a default will be used.
javax.xml.parsers.ParserConfigurationException
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
read(Reader, GeometryFactory)
public Geometry read(java.io.Reader reader, GeometryFactory geometryFactory) throws org.xml.sax.SAXException, java.io.IOException, javax.xml.parsers.ParserConfigurationException
reader
- The input sourcegeometryFactory
- When null, a default will be used.
org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
- Note: The parser will be both namespace aware and validating.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |