Class GridAndGeoUtils

java.lang.Object
edu.ie3.util.geo.GeoUtils
edu.ie3.datamodel.utils.GridAndGeoUtils

public class GridAndGeoUtils extends edu.ie3.util.geo.GeoUtils
This class offers some useful methods for handling geographical problems related to grids
  • Field Summary

    Fields inherited from class edu.ie3.util.geo.GeoUtils

    DEFAULT_GEOMETRY_FACTORY, EARTH_RADIUS
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.locationtech.jts.geom.LineString
    Deprecated, for removal: This API element is subject to removal in a future version.
    static org.locationtech.jts.geom.LineString
    Builds a straight line string between the both nodes that can be compared safely even if the two provided nodes contain exactly equal coordinates
    static tech.units.indriya.ComparableQuantity<javax.measure.quantity.Length>
    Calculates the distance between two NodeInput entities using GeoUtils.calcHaversine(double, double, double, double)

    Methods inherited from class edu.ie3.util.geo.GeoUtils

    buildCirclePolygon, buildConvexHull, buildCoordinate, buildPoint, buildPoint, buildPolygon, buildSafeLineString, buildSafeLineStringBetweenCoords, buildSafeLineStringBetweenPoints, calcHaversine, calcHaversine, calcHaversine, calcOrderedCoordinateDistances, calculateBoundingBox, equalAreaProjection, getCoordinateDistances, orthogonalProjection, orthogonalProjection, reverseEqualAreaProjection, totalLengthOfLineString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • buildLineStringBetweenNodes

      @Deprecated(since="1.1.0", forRemoval=true) public static org.locationtech.jts.geom.LineString buildLineStringBetweenNodes(NodeInput a, NodeInput b)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Builds a straight line string between the both nodes
      Parameters:
      a - Starting point of the line string
      b - Ending point of the line string
      Returns:
      The equivalent straight line string
    • buildSafeLineStringBetweenNodes

      public static org.locationtech.jts.geom.LineString buildSafeLineStringBetweenNodes(NodeInput a, NodeInput b)
      Builds a straight line string between the both nodes that can be compared safely even if the two provided nodes contain exactly equal coordinates
      Parameters:
      a - Starting point of the line string
      b - Ending point of the line string
      Returns:
      The equivalent straight line string
    • distanceBetweenNodes

      public static tech.units.indriya.ComparableQuantity<javax.measure.quantity.Length> distanceBetweenNodes(NodeInput nodeA, NodeInput nodeB)
      Calculates the distance between two NodeInput entities using GeoUtils.calcHaversine(double, double, double, double)
      Parameters:
      nodeA - start node
      nodeB - end node
      Returns:
      distance between start node and end node