|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.esdihumboldt.hale.io.gml.writer.internal.geometry.AbstractTypeMatcher<Class<? extends com.vividsolutions.jts.geom.Geometry>>
eu.esdihumboldt.hale.io.gml.writer.internal.geometry.StreamGeometryWriter
public class StreamGeometryWriter
Write geometries for a GML document.
Constructor Summary | |
---|---|
StreamGeometryWriter(String gmlNs,
boolean simplifyGeometry)
Constructor |
Method Summary | |
---|---|
List<DefinitionPath> |
findCandidates(PropertyDefinition property,
Class<? extends com.vividsolutions.jts.geom.Geometry> geomType)
Find candidates for a possible path to use for writing the geometry |
static StreamGeometryWriter |
getDefaultInstance(String gmlNs,
boolean simplifyGeometry)
Get a geometry writer instance with a default configuration. |
protected DefinitionPath |
matchPath(TypeDefinition type,
Class<? extends com.vividsolutions.jts.geom.Geometry> geomType,
DefinitionPath path)
Determines if a type definition is compatible to a geometry type |
void |
registerGeometryWriter(GeometryWriter<?> writer)
Register a geometry writer |
void |
write(XMLStreamWriter writer,
com.vividsolutions.jts.geom.Geometry geometry,
PropertyDefinition property,
String srsName)
Write a geometry to a stream for a GML document |
Methods inherited from class eu.esdihumboldt.hale.io.gml.writer.internal.geometry.AbstractTypeMatcher |
---|
findCandidates |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StreamGeometryWriter(String gmlNs, boolean simplifyGeometry)
gmlNs
- the GML namespacesimplifyGeometry
- if geometries should be simplified before writing
them if possible (e.g. a MultiGeometry with only one geometry
is reduced to the contained geometry)Method Detail |
---|
public static StreamGeometryWriter getDefaultInstance(String gmlNs, boolean simplifyGeometry)
gmlNs
- the GML namespacesimplifyGeometry
- if geometries should be simplified before writing
them if possible (e.g. a MultiGeometry with only one geometry
is reduced to the contained geometry)
public void registerGeometryWriter(GeometryWriter<?> writer)
writer
- the geometry writerpublic void write(XMLStreamWriter writer, com.vividsolutions.jts.geom.Geometry geometry, PropertyDefinition property, String srsName) throws XMLStreamException
writer
- the XML stream writergeometry
- the geometryproperty
- the geometry propertysrsName
- the SRS name of a common SRS for the whole document, may
be null
XMLStreamException
- if any error occurs writing the geometrypublic List<DefinitionPath> findCandidates(PropertyDefinition property, Class<? extends com.vividsolutions.jts.geom.Geometry> geomType)
property
- the start propertygeomType
- the geometry type
protected DefinitionPath matchPath(TypeDefinition type, Class<? extends com.vividsolutions.jts.geom.Geometry> geomType, DefinitionPath path)
matchPath
in class AbstractTypeMatcher<Class<? extends com.vividsolutions.jts.geom.Geometry>>
type
- the type definitiongeomType
- the geometry typepath
- the current definition path
null
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |