public class MultiSourceElevationProvider extends TileBasedElevationProvider
NOOP
Constructor and Description |
---|
MultiSourceElevationProvider() |
MultiSourceElevationProvider(String cacheDir) |
MultiSourceElevationProvider(TileBasedElevationProvider srtmProvider,
TileBasedElevationProvider globalProvider) |
Modifier and Type | Method and Description |
---|---|
boolean |
canInterpolate()
Returns true if bilinear interpolation is enabled.
|
double |
getEle(double lat,
double lon) |
void |
release()
Release resources.
|
MultiSourceElevationProvider |
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'.
|
MultiSourceElevationProvider |
setBaseURL(String baseURL)
For the MultiSourceElevationProvider you have to specify the base URL separated by a ';'.
|
MultiSourceElevationProvider |
setDAType(DAType daType)
Set to true if you have a small area and need high speed access.
|
MultiSourceElevationProvider |
setInterpolate(boolean interpolate)
Configuration option to use bilinear interpolation to find the elevation at a point from the
surrounding elevation points.
|
String |
toString() |
getCacheDir, getDirectory, setDownloader
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEle
public MultiSourceElevationProvider(TileBasedElevationProvider srtmProvider, TileBasedElevationProvider globalProvider)
public MultiSourceElevationProvider()
public MultiSourceElevationProvider(String cacheDir)
public double getEle(double lat, double lon)
public MultiSourceElevationProvider setBaseURL(String baseURL)
setBaseURL
in class TileBasedElevationProvider
public MultiSourceElevationProvider setDAType(DAType daType)
TileBasedElevationProvider
setDAType
in class TileBasedElevationProvider
public MultiSourceElevationProvider setInterpolate(boolean interpolate)
TileBasedElevationProvider
setInterpolate
in class TileBasedElevationProvider
public boolean canInterpolate()
ElevationProvider
canInterpolate
in interface ElevationProvider
canInterpolate
in class TileBasedElevationProvider
public void release()
ElevationProvider
public MultiSourceElevationProvider setAutoRemoveTemporaryFiles(boolean autoRemoveTemporary)
TileBasedElevationProvider
setAutoRemoveTemporaryFiles
in class TileBasedElevationProvider
Copyright © 2012–2022. All rights reserved.