Package edu.ie3.datamodel.utils
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 TypeMethodDescriptionstatic 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 coordinatesstatic tech.units.indriya.ComparableQuantity<javax.measure.quantity.Length>
distanceBetweenNodes
(NodeInput nodeA, NodeInput nodeB) Calculates the distance between twoNodeInput
entities usingGeoUtils.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
-
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 stringb
- 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 stringb
- 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 twoNodeInput
entities usingGeoUtils.calcHaversine(double, double, double, double)
- Parameters:
nodeA
- start nodenodeB
- end node- Returns:
- distance between start node and end node
-
buildSafeLineStringBetweenNodes(NodeInput, NodeInput)
instead