public class GmlHandler extends AbstractSaxEventHandler
GMLHandler. Uses WKTWriter to write the Geometries to WKT. Note: ONLY CAN PARSE GML2
points. Will throw hard-to-debug Null Pointer Exceptions if used with GML3 or other GML2
geometries. | Constructor and Description |
|---|
GmlHandler(com.vividsolutions.jts.io.gml2.GMLHandler gmlHandler,
Gml3ToWkt gml3Converter) |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length)
Takes in a sax event from
SaxEventHandlerDelegate, and if it is a gml:Point
or a sub-element of a gml:Point, it will * hand the event off to the GML handler for further
parsing. |
void |
endElement(String namespaceURI,
String localName,
String qName)
Takes in a sax event from
SaxEventHandlerDelegate, and if it is a gml:Point
or a sub-element of a gml:Point, it will * hand the event off to the GML handler for further
parsing. |
List<Attribute> |
getAttributes() |
Set<AttributeDescriptor> |
getSupportedAttributeDescriptors()
Get all the possible attribute types that can be returned by this factory's handler
|
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes)
Takes in a sax event from
SaxEventHandlerDelegate, and if it is a gml:Point
or a sub-element of a gml:Point, it will hand the event off to the GML handler for further
parsing. |
void |
startPrefixMapping(String prefix,
String uri) |
endDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocumentpublic GmlHandler(com.vividsolutions.jts.io.gml2.GMLHandler gmlHandler,
Gml3ToWkt gml3Converter)
public Set<AttributeDescriptor> getSupportedAttributeDescriptors()
SaxEventHandlerpublic void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping in interface ContentHandlerstartPrefixMapping in class AbstractSaxEventHandlerSAXExceptionpublic void startElement(String uri, String localName, String qName, Attributes attributes)
SaxEventHandlerDelegate, and if it is a gml:Point
or a sub-element of a gml:Point, it will hand the event off to the GML handler for further
parsing.uri - the URI that is passed in by SaxEventHandlerDelegatelocalName - the localName that is passed in by SaxEventHandlerDelegateqName - the qName that is passed in by SaxEventHandlerDelegateattributes - the attributes that are passed in by SaxEventHandlerDelegatepublic void endElement(String namespaceURI, String localName, String qName)
SaxEventHandlerDelegate, and if it is a gml:Point
or a sub-element of a gml:Point, it will * hand the event off to the GML handler for further
parsing. If it is a gml:Point, the point is stored as a WKT in the attributes listnamespaceURI - the namespaceURI that is passed in by SaxEventHandlerDelegatelocalName - the localName that is passed in by SaxEventHandlerDelegateqName - the qName that is passed in by SaxEventHandlerDelegatepublic void characters(char[] ch,
int start,
int length)
SaxEventHandlerDelegate, and if it is a gml:Point
or a sub-element of a gml:Point, it will * hand the event off to the GML handler for further
parsing.ch - the ch that is passed in by SaxEventHandlerDelegatestart - the start that is passed in by SaxEventHandlerDelegatelength - the length that is passed in by SaxEventHandlerDelegateThis work is licensed under a Creative Commons Attribution 4.0 International License.