Class StringToLineStringConverter

java.lang.Object
org.bremersee.geojson.converter.StringToLineStringConverter
All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<String,org.locationtech.jts.geom.LineString>

public class StringToLineStringConverter extends Object implements org.springframework.core.convert.converter.Converter<String,org.locationtech.jts.geom.LineString>
The string to line string converter.
Author:
Christian Bremer
  • Constructor Details

    • StringToLineStringConverter

      public StringToLineStringConverter(GeoJsonGeometryFactory geometryFactory)
      Instantiates a new string to line string converter.
      Parameters:
      geometryFactory - the geometry factory
  • Method Details

    • convert

      public org.locationtech.jts.geom.LineString convert(@NonNull String source)
      Specified by:
      convert in interface org.springframework.core.convert.converter.Converter<String,org.locationtech.jts.geom.LineString>