C
- the geometry collection typeT
- the geometry type contained in the collectionpublic abstract class AbstractGeometryCollectionConverter<C extends com.vividsolutions.jts.geom.GeometryCollection,T extends com.vividsolutions.jts.geom.Geometry> extends AbstractGeometryConverter<C,T>
GeometryCollection
to a single Geometry
.geomFactory
Constructor and Description |
---|
AbstractGeometryCollectionConverter(Class<C> sourceType,
Class<T> targetType)
Constructor
|
Modifier and Type | Method and Description |
---|---|
T |
convert(C geometryCollection)
Convert the given geometry
|
protected abstract T |
createEmptyGeometry()
Create an empty target geometry
|
boolean |
lossOnConversion(C geometryCollection)
Determines if there is a loss of information when converting the given
geometry
|
getSourceType, getTargetType
public T convert(C geometryCollection)
GeometryConverter
geometryCollection
- the source geometryGeometryConverter.convert(Geometry)
protected abstract T createEmptyGeometry()
public boolean lossOnConversion(C geometryCollection)
GeometryConverter
geometryCollection
- the source geometryGeometryConverter.lossOnConversion(Geometry)
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a