public class ElevationUtils extends Object
Modifier and Type | Field and Description |
---|---|
static double |
GRAVITATIONAL_ACCELERATION_CONSTANT
This gravitational constant is actually dependent on latitude and height.
|
static double |
ZERO_ELEVATION_DRAG_RESISTIVE_FORCE_COMPONENT |
Constructor and Description |
---|
ElevationUtils() |
Modifier and Type | Method and Description |
---|---|
static double |
getDragResistiveForceComponent(double altitude)
Calculates the components of drag resistance except for the velocity assuming travel through dry earthy air.
|
static double |
getDynamicRollingResistance(double beta)
Coefficient for the dynamic rolling resistance, normalized to road inclination; CrVn = CrV*cos(β)
|
static PackedCoordinateSequence |
getPartialElevationProfile(PackedCoordinateSequence elevationProfile,
double start,
double end) |
static SlopeCosts |
getSlopeCosts(org.locationtech.jts.geom.CoordinateSequence elev,
boolean slopeLimit) |
static Double |
parseEleTag(String ele)
checks for units (m/ft) in an OSM ele tag value, and returns the value in meters
|
static double |
slopeSpeedCoefficient(double slope,
double altitude) |
public static final double GRAVITATIONAL_ACCELERATION_CONSTANT
public static final double ZERO_ELEVATION_DRAG_RESISTIVE_FORCE_COMPONENT
public static double getDynamicRollingResistance(double beta)
beta
- Inclination angle = arctan(grade/100)public static double getDragResistiveForceComponent(double altitude)
altitude
- The altitude in meterspublic static SlopeCosts getSlopeCosts(org.locationtech.jts.geom.CoordinateSequence elev, boolean slopeLimit)
elev
- The elevation profile, where each (x, y) is (distance along edge, elevation)slopeLimit
- Whether the slope should be limited to 0.35, which is the max slope for
streets that take cars.public static double slopeSpeedCoefficient(double slope, double altitude)
public static PackedCoordinateSequence getPartialElevationProfile(PackedCoordinateSequence elevationProfile, double start, double end)
Copyright © 2020. All rights reserved.