Search in sources :

Example 1 with ComplexContentHandler

use of org.geotools.xml.handlers.xsi.ComplexContentHandler in project chordatlas by twak.

the class Footprints method parse.

public static Callback parse(InputSource input) throws IOException, SAXException {
    // parse xml
    XMLReader reader = XMLReaderFactory.createXMLReader();
    Callback callback = new Callback();
    GMLFilterGeometry geometryCallback = new GMLFilterGeometry(callback);
    GMLFilterDocument gmlCallback = new GMLFilterDocument(geometryCallback);
    reader.setContentHandler(gmlCallback);
    ComplexContentHandler ch;
    reader.parse(input);
    return callback;
}
Also used : ComplexContentHandler(org.geotools.xml.handlers.xsi.ComplexContentHandler) GMLFilterDocument(org.geotools.gml.GMLFilterDocument) GMLFilterGeometry(org.geotools.gml.GMLFilterGeometry) XMLReader(org.xml.sax.XMLReader)

Aggregations

GMLFilterDocument (org.geotools.gml.GMLFilterDocument)1 GMLFilterGeometry (org.geotools.gml.GMLFilterGeometry)1 ComplexContentHandler (org.geotools.xml.handlers.xsi.ComplexContentHandler)1 XMLReader (org.xml.sax.XMLReader)1