Class PointWKTConverter

java.lang.Object
io.jmix.maps.converter.wkt.PointWKTConverter
All Implemented Interfaces:
javax.persistence.AttributeConverter<org.locationtech.jts.geom.Point,String>

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

    • PointWKTConverter

      public PointWKTConverter()
  • Method Details

    • convertToDatabaseColumn

      public String convertToDatabaseColumn(org.locationtech.jts.geom.Point point)
      Specified by:
      convertToDatabaseColumn in interface javax.persistence.AttributeConverter<org.locationtech.jts.geom.Point,String>
    • convertToEntityAttribute

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