Package com.graphhopper.reader.dem
Class TileBasedElevationProvider
java.lang.Object
com.graphhopper.reader.dem.TileBasedElevationProvider
- All Implemented Interfaces:
ElevationProvider
- Direct Known Subclasses:
AbstractSRTMElevationProvider
,AbstractTiffElevationProvider
,MultiSourceElevationProvider
Provides basic methods that are usually used in an ElevationProvider using tiles from files.
- Author:
- Robin Boldt
-
Field Summary
Fields inherited from interface com.graphhopper.reader.dem.ElevationProvider
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if bilinear interpolation is enabled.protected File
protected Directory
setAutoRemoveTemporaryFiles
(boolean autoRemoveTemporary) Creating temporary files can take a long time as we need to unpack them as well as to fill our DataAccess object, so this option can be used to disable the default clear mechanism via specifying 'false'.setBaseURL
(String baseUrl) Specifies the service URL where to download the elevation data.Set to true if you have a small area and need high speed access.setDownloader
(Downloader downloader) setInterpolate
(boolean interpolate) Configuration option to use bilinear interpolation to find the elevation at a point from the surrounding elevation points.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.graphhopper.reader.dem.ElevationProvider
getEle, getEle, release
-
Constructor Details
-
TileBasedElevationProvider
-
-
Method Details
-
setInterpolate
Configuration option to use bilinear interpolation to find the elevation at a point from the surrounding elevation points. Has only an effect if called before the first getEle call. Turned off by default. -
canInterpolate
public boolean canInterpolate()Description copied from interface:ElevationProvider
Returns true if bilinear interpolation is enabled.- Specified by:
canInterpolate
in interfaceElevationProvider
-
setBaseURL
Specifies the service URL where to download the elevation data. An empty string should set it to the default URL. Default is a provider-dependent URL which should work out of the box. -
setDAType
Set to true if you have a small area and need high speed access. Default is DAType.MMAP -
setAutoRemoveTemporaryFiles
Creating temporary files can take a long time as we need to unpack them as well as to fill our DataAccess object, so this option can be used to disable the default clear mechanism via specifying 'false'. -
setDownloader
-
getCacheDir
-
getDirectory
-