Class LineStringWKTConverter

java.lang.Object
io.jmix.maps.converter.wkt.LineStringWKTConverter
All Implemented Interfaces:
jakarta.persistence.AttributeConverter<org.locationtech.jts.geom.LineString,String>

public class LineStringWKTConverter extends Object implements jakarta.persistence.AttributeConverter<org.locationtech.jts.geom.LineString,String>
Transforms LineString datatype into WKT (Well-known Text) representation that persists as a text and vice versa.
  • Constructor Details

    • LineStringWKTConverter

      public LineStringWKTConverter()
  • Method Details

    • convertToDatabaseColumn

      public String convertToDatabaseColumn(org.locationtech.jts.geom.LineString lineString)
      Specified by:
      convertToDatabaseColumn in interface jakarta.persistence.AttributeConverter<org.locationtech.jts.geom.LineString,String>
    • convertToEntityAttribute

      public org.locationtech.jts.geom.LineString convertToEntityAttribute(String s)
      Specified by:
      convertToEntityAttribute in interface jakarta.persistence.AttributeConverter<org.locationtech.jts.geom.LineString,String>