Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.io.gml.writer.internal.geometry
Interface GeometryConverter<S extends com.vividsolutions.jts.geom.Geometry,T extends com.vividsolutions.jts.geom.Geometry>

Type Parameters:
S - the source geometry type
T - the target geometry type
All Known Implementing Classes:
AbstractGeometryCollectionConverter, AbstractGeometryConverter, MultiLineStringToLineString, MultiPointToPoint, MultiPolygonToPolygon, PolygonToMultiLineString

public interface GeometryConverter<S extends com.vividsolutions.jts.geom.Geometry,T extends com.vividsolutions.jts.geom.Geometry>

Converts a geometry to another kind of geometry

Author:
Simon Templer
Partner:
01 / Fraunhofer Institute for Computer Graphics Research

Method Summary
 T convert(S geometry)
          Convert the given geometry
 Class<S> getSourceType()
          Get the source geometry type
 Class<T> getTargetType()
          Get the target geometry type
 boolean lossOnConversion(S geometry)
          Determines if there is a loss of information when converting the given geometry
 

Method Detail

getTargetType

Class<T> getTargetType()
Get the target geometry type

Returns:
the target geometry type

getSourceType

Class<S> getSourceType()
Get the source geometry type

Returns:
the source geometry type

convert

T convert(S geometry)
Convert the given geometry

Parameters:
geometry - the source geometry
Returns:
the converted geometry

lossOnConversion

boolean lossOnConversion(S geometry)
Determines if there is a loss of information when converting the given geometry

Parameters:
geometry - the source geometry
Returns:
if there would be a loss of information

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d