public class StkTerrainServer extends QuantizedMeshTerrainProvider
A terrain provider for reading terrain data from an STK Terrain Server, or any server that provides the STK Terrain Server Public REST API. This can be a server on the internet, your local network, or your local machine.
The terrain data used by this class is tile-based, in quantized-mesh format.
Constructor and Description |
---|
StkTerrainServer()
Initializes a new instance with the default values, which will connect to an AGI server for terrain data.
|
StkTerrainServer(Proxy proxy)
Initializes a new instance, which will connect to an AGI server for terrain data.
|
StkTerrainServer(Proxy proxy,
TerrainCacheGroup cacheGroup)
Initializes a new instance, which will connect to an AGI server for terrain data.
|
StkTerrainServer(String baseUri,
String tilesetName)
Initializes a new instance as a member of the default
TerrainCacheGroup ,
which will request tiles at the maximum available Tile Map Service zoom level. |
StkTerrainServer(String baseUri,
String tilesetName,
int zoomLevel)
Initializes a new instance as a member of the default
TerrainCacheGroup . |
StkTerrainServer(String baseUri,
String tilesetName,
int zoomLevel,
Proxy proxy)
Initializes a new instance as a member of the default
TerrainCacheGroup . |
StkTerrainServer(String baseUri,
String tilesetName,
int zoomLevel,
TerrainCacheGroup cacheGroup)
Initializes a new instance.
|
StkTerrainServer(String baseUri,
String tilesetName,
int zoomLevel,
TerrainCacheGroup cacheGroup,
Proxy proxy)
Initializes a new instance.
|
StkTerrainServer(String baseUri,
String tilesetName,
Proxy proxy)
Initializes a new instance as a member of the default
TerrainCacheGroup ,
which will request tiles at the maximum available Tile Map Service zoom level. |
StkTerrainServer(String baseUri,
String tilesetName,
TerrainCacheGroup cacheGroup)
Initializes a new instance which will request tiles at the maximum available zoom level.
|
StkTerrainServer(String baseUri,
String tilesetName,
TerrainCacheGroup cacheGroup,
Proxy proxy)
Initializes a new instance which will request tiles at the maximum available zoom level.
|
Modifier and Type | Method and Description |
---|---|
QuantizedMeshTerrainTile |
getMesh(int level,
int x,
int y)
Gets a mesh for a specified set of coordinates.
|
String |
getTilesetName()
Gets the name of the tileset to read.
|
extentToCoordinateExtent, findMostDetailedAvailableTile, getCache, getDefaultInterpolator, getFirstPartials, getFirstPartials, getHeight, getHeight, getHeightNativeUnits, getLocalMinimumSampleSpacing, getMaximumLevel, getMetadata, getMinimumSampleSpacing, getNumberOfXTilesAtLevel, getNumberOfYTilesAtLevel, getSecondPartials, getSecondPartials, getZoomLevel, isTileAvailable, latitudeToYTileCoordinate, longitudeToXTileCoordinate, preloadExtent, setDefaultInterpolator, setZoomLevel, tileCoordinatesToExtent, unloadExtent, validateTileCoordinates
getBoundingExtent, getBoundingExtentNativeUnits, getGradient, getHeightReference, getHeightRelativeToShape, getHessian, getNativeToMeters, getNormal, getRadiansToNative, getReferenceSurface, getShape, getShapeFixedFrame, inGlobalBounds, setBoundingExtent, setBoundingExtentNativeUnits, setHeightReference, setNativeToMeters, setRadiansToNative, setReferenceSurface, setShape, setShapeFixedFrame
public StkTerrainServer()
TerrainCacheGroup
,
the TilesetName
(get
) will default to "world",
and the provider will request tiles at the maximum zoom level.
Note that an internet connection is required to use this constructor successfully.
public StkTerrainServer(@Nullable Proxy proxy)
TerrainCacheGroup
,
the TilesetName
(get
) will default to "world",
and the provider will request tiles at the maximum zoom level.
Note that an internet connection is required to use this constructor successfully.
proxy
- The proxy to use when connecting. Optional, default is null
.public StkTerrainServer(@Nullable Proxy proxy, @Nonnull TerrainCacheGroup cacheGroup)
TilesetName
(get
) will default to "world",
and the provider will request tiles at the maximum zoom level.
Note that an internet connection is required to use this constructor successfully.
proxy
- The proxy to use when connecting. Optional, default is null
.cacheGroup
- The cache group of which this provider is a member.ArgumentNullException
- Thrown when cacheGroup
is null
.public StkTerrainServer(@Nonnull String baseUri, @Nonnull String tilesetName)
TerrainCacheGroup
,
which will request tiles at the maximum available Tile Map Service zoom level.baseUri
- The uri of the terrain server.tilesetName
- The name of the tileset to use.ArgumentNullException
- Thrown when baseUri
or tilesetName
is null
.public StkTerrainServer(@Nonnull String baseUri, @Nonnull String tilesetName, @Nullable Proxy proxy)
TerrainCacheGroup
,
which will request tiles at the maximum available Tile Map Service zoom level.baseUri
- The uri of the terrain server.tilesetName
- The name of the tileset to use.proxy
- The proxy to use when connecting. Optional, default is null
.ArgumentNullException
- Thrown when baseUri
or tilesetName
is null
.public StkTerrainServer(@Nonnull String baseUri, @Nonnull String tilesetName, int zoomLevel)
TerrainCacheGroup
.baseUri
- The uri of the terrain server.tilesetName
- The name of the tileset to use.zoomLevel
- The Tile Map Service zoom level to request tiles at.ArgumentNullException
- Thrown when baseUri
or tilesetName
is null
.public StkTerrainServer(@Nonnull String baseUri, @Nonnull String tilesetName, int zoomLevel, @Nullable Proxy proxy)
TerrainCacheGroup
.baseUri
- The uri of the terrain server.tilesetName
- The name of the tileset to use.zoomLevel
- The Tile Map Service zoom level to request tiles at.proxy
- The proxy to use when connecting. Optional, default is null
.ArgumentNullException
- Thrown when baseUri
or tilesetName
is null
.public StkTerrainServer(@Nonnull String baseUri, @Nonnull String tilesetName, @Nonnull TerrainCacheGroup cacheGroup)
baseUri
- The uri of the terrain server.tilesetName
- The name of the tileset to use.cacheGroup
- The cache group of which this provider is a member.ArgumentNullException
- Thrown when baseUri
, tilesetName
, or cacheGroup
is null
.public StkTerrainServer(@Nonnull String baseUri, @Nonnull String tilesetName, @Nonnull TerrainCacheGroup cacheGroup, @Nullable Proxy proxy)
baseUri
- The uri of the terrain server.tilesetName
- The name of the tileset to use.cacheGroup
- The cache group of which this provider is a member.proxy
- The proxy to use when connecting. Optional, default is null
.ArgumentNullException
- Thrown when baseUri
, tilesetName
, or cacheGroup
is null
.public StkTerrainServer(@Nonnull String baseUri, @Nonnull String tilesetName, int zoomLevel, @Nonnull TerrainCacheGroup cacheGroup)
baseUri
- The uri of the terrain server.tilesetName
- The name of the tileset to use.zoomLevel
- The Tile Map Service zoom level to request tiles at.cacheGroup
- The cache group of which this provider is a member.ArgumentNullException
- Thrown when baseUri
, tilesetName
, or cacheGroup
is null
.public StkTerrainServer(@Nonnull String baseUri, @Nonnull String tilesetName, int zoomLevel, @Nonnull TerrainCacheGroup cacheGroup, @Nullable Proxy proxy)
baseUri
- The uri of the terrain server.tilesetName
- The name of the tileset to use.zoomLevel
- The Tile Map Service zoom level to request tiles at.cacheGroup
- The cache group of which this provider is a member.proxy
- The proxy to use when connecting. Optional, default is null
.ArgumentNullException
- Thrown when baseUri
, tilesetName
, or cacheGroup
is null
.public QuantizedMeshTerrainTile getMesh(int level, int x, int y)
getMesh
in class QuantizedMeshTerrainProvider
level
- The zoom level.x
- The X tile coordinate.y
- The Y tile coordinate.DataUnavailableException
- Thrown when the requested tile does not exist.ArgumentOutOfRangeException
- Thrown when the tile coordinates are invalid.