Class MultiPolygonWKTConverter

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

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

    • MultiPolygonWKTConverter

      public MultiPolygonWKTConverter()
  • Method Details

    • convertToDatabaseColumn

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

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