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;
}
Aggregations