Class StringToGeometryConverter

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

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

    • StringToGeometryConverter

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

    • convert

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