Class PolygonWKTConverter

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

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

    • PolygonWKTConverter

      public PolygonWKTConverter()
  • Method Details

    • convertToDatabaseColumn

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

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