public class GMLFilterFeature extends XMLFilterImpl implements GMLHandlerJTS
This filter simply reads in the events and coordinates passed to it by its GMLFilterDocument child and converts them into JTS objects. Note that it passes through anything not specifically sent to it by GMLFilterDocument (i.e. more or less everything not in geometry.xsd). The parent of this filter must implement GMLHandlerJTS in order to receive the JTS objects passed by this filter.
Constructor and Description |
---|
GMLFilterFeature(GMLHandlerFeature parent)
Constructor with parent, which must implement GMLHandlerJTS.
|
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length)
Reads the only internal characters read by pure GML parsers, which are coordinates.
|
void |
endElement(String namespaceURI,
String localName,
String qName)
Checks for GML element end and - if not a coordinates element - sends it directly on down the
chain to the appropriate parent handler.
|
void |
geometry(Geometry geometry)
Manages the start of a new main or sub geometry.
|
void |
setSchema(String uri) |
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
Checks for GML element start and - if not a coordinates element - sends it directly on down
the chain to the appropriate parent handler.
|
endDocument, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
endDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping
public GMLFilterFeature(GMLHandlerFeature parent)
parent
- The parent of this filter.public void setSchema(String uri)
public void geometry(Geometry geometry)
geometry
in interface GMLHandlerJTS
geometry
- The geometry from the child.public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
startElement
in class XMLFilterImpl
namespaceURI
- The namespace of the element.localName
- The local name of the element.qName
- The full name of the element, including namespace prefix.atts
- The element attributes.SAXException
- Some parsing error occured while reading coordinates.public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class XMLFilterImpl
ch
- Raw coordinate string from the GML document.start
- Beginning character position of raw coordinate string.length
- Length of the character string.SAXException
- Some parsing error occurred while reading coordinates.public void endElement(String namespaceURI, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class XMLFilterImpl
namespaceURI
- Namespace of the element.localName
- Local name of the element.qName
- Full name of the element, including namespace prefix.SAXException
- Parsing error occurred while reading coordinates.Copyright © 1996–2023 Geotools. All rights reserved.