public interface GeometryConverter<FROM>
extends de.cismet.commons.converter.Converter<FROM,com.vividsolutions.jts.geom.Geometry>, de.cismet.commons.converter.FormatHint
| Modifier and Type | Method and Description |
|---|---|
FROM |
convertBackward(com.vividsolutions.jts.geom.Geometry to,
String... params)
Converts a given instance of
Geometry back to the origin format FROM. |
com.vividsolutions.jts.geom.Geometry |
convertForward(FROM from,
String... params)
Converts a given instance
FROM to a Geometry. |
com.vividsolutions.jts.geom.Geometry convertForward(FROM from, String... params) throws de.cismet.commons.converter.ConversionException
FROM to a Geometry. The first parameter must be the EPSG
code, e.g. EPSG:4326.convertForward in interface de.cismet.commons.converter.Converter<FROM,com.vividsolutions.jts.geom.Geometry>from - the originating object that shall be converted to a Geometryparams - first parameter must be the EPSG codeGeometry which was create from the FROM instancede.cismet.commons.converter.ConversionException - if any error occurs during conversionFROM convertBackward(com.vividsolutions.jts.geom.Geometry to, String... params) throws de.cismet.commons.converter.ConversionException
Geometry back to the origin format FROM. The first
parameter must be the EPSG code, e.g. EPSG:4326.convertBackward in interface de.cismet.commons.converter.Converter<FROM,com.vividsolutions.jts.geom.Geometry>to - the geometry that shall be converted back to an instance of FROMparams - no parameters neededFROM which was create from the Geometry instancede.cismet.commons.converter.ConversionException - if any error occurs during conversionCopyright © 2012–2025 cismet GmbH. All rights reserved.