public class ElevationModule extends Object implements GraphBuilderModule
GraphBuilderModule
plugin that applies elevation data to street
data that has already been loaded into a (@link Graph}, creating elevation profiles for each Street encountered
in the Graph. Data sources that could be used include auto-downloaded and cached National Elevation Dataset (NED)
raster data or a GeoTIFF file. The elevation profiles are stored as PackedCoordinateSequence
objects, where
each (x,y) pair represents one sample, with the x-coord representing the distance along the edge measured from the
start, and the y-coord representing the sampled elevation at that point (both in meters).Constructor and Description |
---|
ElevationModule(ElevationGridCoverageFactory factory)
used only for testing purposes
|
ElevationModule(ElevationGridCoverageFactory factory,
File cacheDirectory,
boolean readCachedElevations,
boolean writeCachedElevations,
boolean includeEllipsoidToGeoidDifference,
boolean multiThreadElevationCalculations,
double elevationUnitMultiplier) |
Modifier and Type | Method and Description |
---|---|
void |
buildGraph(Graph graph,
GraphBuilderModuleSummary graphBuilderModuleSummary)
Process whatever inputs were supplied to this module and add the resulting elements to the given graph.
|
void |
checkInputs()
Check that all inputs to the graphbuilder are valid; throw an exception if not.
|
public ElevationModule(ElevationGridCoverageFactory factory)
public ElevationModule(ElevationGridCoverageFactory factory, File cacheDirectory, boolean readCachedElevations, boolean writeCachedElevations, boolean includeEllipsoidToGeoidDifference, boolean multiThreadElevationCalculations, double elevationUnitMultiplier)
public void buildGraph(Graph graph, GraphBuilderModuleSummary graphBuilderModuleSummary)
GraphBuilderModule
buildGraph
in interface GraphBuilderModule
public void checkInputs()
GraphBuilderModule
checkInputs
in interface GraphBuilderModule
Copyright © 2020. All rights reserved.