public class ElevationUtils extends Object
| Constructor and Description |
|---|
ElevationUtils() |
| Modifier and Type | Method and Description |
|---|---|
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 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 © 2019. All rights reserved.