Class MultiPolygonWKTConverter

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

public class MultiPolygonWKTConverter extends Object implements jakarta.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 jakarta.persistence.AttributeConverter<org.locationtech.jts.geom.MultiPolygon,String>
    • convertToEntityAttribute

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