Class JtsGeometryConverter
java.lang.Object
org.esa.snap.core.util.converters.JtsGeometryConverter
- All Implemented Interfaces:
Converter<org.locationtech.jts.geom.Geometry>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformat(org.locationtech.jts.geom.Geometry value) Converts a value of the type returned byConverter.getValueType()to its plain text representation.Class<? extends org.locationtech.jts.geom.Geometry> Gets the value type.org.locationtech.jts.geom.GeometryConverts a value from its plain text representation to a Java object instance of the type returned byConverter.getValueType().static void
-
Constructor Details
-
JtsGeometryConverter
public JtsGeometryConverter()
-
-
Method Details
-
getValueType
Description copied from interface:ConverterGets the value type.- Specified by:
getValueTypein interfaceConverter<org.locationtech.jts.geom.Geometry>- Returns:
- The value type.
-
parse
Description copied from interface:ConverterConverts a value from its plain text representation to a Java object instance of the type returned byConverter.getValueType().- Specified by:
parsein interfaceConverter<org.locationtech.jts.geom.Geometry>- Parameters:
text- The textual representation of the value.- Returns:
- The converted value.
- Throws:
ConversionException- If the conversion fails.
-
format
Description copied from interface:ConverterConverts a value of the type returned byConverter.getValueType()to its plain text representation. -
registerConverter
public static void registerConverter()
-