Class GeoPtConverter
java.lang.Object
com.maplander.backend.repository.converter.GeoPtConverter
- All Implemented Interfaces:
jakarta.persistence.AttributeConverter<com.utils.geo.GeoPt,org.locationtech.jts.geom.Point>
public class GeoPtConverter
extends Object
implements jakarta.persistence.AttributeConverter<com.utils.geo.GeoPt,org.locationtech.jts.geom.Point>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.locationtech.jts.geom.PointconvertToDatabaseColumn(com.utils.geo.GeoPt geoPt) com.utils.geo.GeoPtconvertToEntityAttribute(org.locationtech.jts.geom.Point point)
-
Constructor Details
-
GeoPtConverter
public GeoPtConverter()
-
-
Method Details
-
convertToDatabaseColumn
public org.locationtech.jts.geom.Point convertToDatabaseColumn(com.utils.geo.GeoPt geoPt) - Specified by:
convertToDatabaseColumnin interfacejakarta.persistence.AttributeConverter<com.utils.geo.GeoPt,org.locationtech.jts.geom.Point>
-
convertToEntityAttribute
public com.utils.geo.GeoPt convertToEntityAttribute(org.locationtech.jts.geom.Point point) - Specified by:
convertToEntityAttributein interfacejakarta.persistence.AttributeConverter<com.utils.geo.GeoPt,org.locationtech.jts.geom.Point>
-