Class JtsGeometryConverter
- java.lang.Object
-
- org.esa.snap.core.util.converters.JtsGeometryConverter
-
-
Constructor Summary
Constructors Constructor Description JtsGeometryConverter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
format(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>
getValueType()
Gets the value type.org.locationtech.jts.geom.Geometry
parse(String text)
Converts a value from its plain text representation to a Java object instance of the type returned byConverter.getValueType()
.static void
registerConverter()
-
-
-
Method Detail
-
getValueType
public Class<? extends org.locationtech.jts.geom.Geometry> getValueType()
Description copied from interface:Converter
Gets the value type.- Specified by:
getValueType
in interfaceConverter<org.locationtech.jts.geom.Geometry>
- Returns:
- The value type.
-
parse
public org.locationtech.jts.geom.Geometry parse(String text) throws ConversionException
Description copied from interface:Converter
Converts a value from its plain text representation to a Java object instance of the type returned byConverter.getValueType()
.- Specified by:
parse
in 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
public String format(org.locationtech.jts.geom.Geometry value)
Description copied from interface:Converter
Converts a value of the type returned byConverter.getValueType()
to its plain text representation.
-
registerConverter
public static void registerConverter()
-
-