T
- the geometry typepublic interface GeometryWriter<T extends com.vividsolutions.jts.geom.Geometry>
Modifier and Type | Method and Description |
---|---|
Set<QName> |
getCompatibleTypes()
Get the compatible types' names for the geometry type that can be handled
by this writer.
|
Class<T> |
getGeometryType()
Get the geometry type represented by the writer
|
DefinitionPath |
match(TypeDefinition type,
DefinitionPath basePath,
String gmlNs)
Matches the type against the encoding patterns.
|
void |
write(XMLStreamWriter writer,
T geometry,
TypeDefinition elementType,
QName elementName,
String gmlNs)
Write a geometry.
|
Class<T> getGeometryType()
Set<QName> getCompatibleTypes()
null
namespace in a name
references the GML namespaceDefinitionPath match(TypeDefinition type, DefinitionPath basePath, String gmlNs)
type
- the type definitionbasePath
- the definition pathgmlNs
- the GML namespacenull
otherwisevoid write(XMLStreamWriter writer, T geometry, TypeDefinition elementType, QName elementName, String gmlNs) throws XMLStreamException
writer
- the XML stream writergeometry
- the geometry to writeelementType
- the last type definition in the matching pathelementName
- the corresponding element namegmlNs
- the GML namespaceXMLStreamException
- if an error occurs writing the geometryBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a