Class PointUtil

java.lang.Object
org.localify.common.PointUtil

@Service public class PointUtil extends Object
  • Constructor Details

    • PointUtil

      public PointUtil(org.locationtech.jts.geom.GeometryFactory geometryFactory)
  • Method Details

    • toPoint

      public org.locationtech.jts.geom.Point toPoint(double longitude, double latitude)
      Creates a point.
      Note: Points in SRID 4326 are (lon, lat).
      Parameters:
      longitude - the point's longitude (X value)
      latitude - the point's latitude (Y value)
      Returns:
      the new Point