Package gov.nasa.worldwind.ogc
Class Wcs201ElevationCoverage
- java.lang.Object
-
- gov.nasa.worldwind.globe.AbstractElevationCoverage
-
- gov.nasa.worldwind.globe.TiledElevationCoverage
-
- gov.nasa.worldwind.ogc.Wcs201ElevationCoverage
-
- All Implemented Interfaces:
ElevationCoverage
,Retriever.Callback<ImageSource,java.lang.Void,java.nio.ShortBuffer>
public class Wcs201ElevationCoverage extends TiledElevationCoverage
Generates elevations from OGC Web Coverage Service (WCS) version 2.0.1.
Wcs201ElevationCoverage requires the WCS service address, coverage name, and coverage bounding sector. Get Coverage requests generated for retrieving data use the WCS version 2.0.1 protocol and are limited to the "image/tiff" format and the EPSG:4326 coordinate system. Wcs201ElevationCoverage does not perform version negotiation and assumes the service supports the format and coordinate system parameters detailed here. The subset CRS is configured as EPSG:4326 and the axis labels are set as "Lat" and "Long". The scaling axis labels are set as:
http://www.opengis.net/def/axis/OGC/1/i and http://www.opengis.net/def/axis/OGC/1/j
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class gov.nasa.worldwind.globe.TiledElevationCoverage
TiledElevationCoverage.TileFactory
-
-
Constructor Summary
Constructors Constructor Description Wcs201ElevationCoverage(Sector sector, int numLevels, java.lang.String serviceAddress, java.lang.String coverage)
Constructs a Web Coverage Service (WCS) elevation coverage with specified WCS configuration values.Wcs201ElevationCoverage(java.lang.String serviceAddress, java.lang.String coverage)
Attempts to construct a Web Coverage Service (WCS) elevation coverage with the provided service address and coverage id.
-
Method Summary
-
Methods inherited from class gov.nasa.worldwind.globe.TiledElevationCoverage
getTileFactory, getTileMatrixSet, retrievalFailed, retrievalRejected, retrievalSucceeded, setTileFactory, setTileMatrixSet
-
Methods inherited from class gov.nasa.worldwind.globe.AbstractElevationCoverage
getDisplayName, getHeightGrid, getHeightLimits, getTimestamp, getUserProperty, hasUserProperty, isEnabled, putUserProperty, removeUserProperty, setDisplayName, setEnabled
-
-
-
-
Constructor Detail
-
Wcs201ElevationCoverage
public Wcs201ElevationCoverage(Sector sector, int numLevels, java.lang.String serviceAddress, java.lang.String coverage)
Constructs a Web Coverage Service (WCS) elevation coverage with specified WCS configuration values.- Parameters:
sector
- the coverage's geographic bounding sectornumLevels
- the number of levels of elevations to generate, beginning with 2-by-4 geographic grid of 90-degree tiles containing 256x256 elevation pixelsserviceAddress
- the WCS service addresscoverage
- the WCS coverage name- Throws:
java.lang.IllegalArgumentException
- If any argument is null or if the number of levels is less than 0
-
Wcs201ElevationCoverage
public Wcs201ElevationCoverage(java.lang.String serviceAddress, java.lang.String coverage)
Attempts to construct a Web Coverage Service (WCS) elevation coverage with the provided service address and coverage id. This constructor initiates an asynchronous request for the DescribeCoverage document and then uses the information provided to determine a suitable Sector and level count. If the coverage id doesn't match the available coverages or there is another error, no data will be provided and the error will be logged.- Parameters:
serviceAddress
- the WCS service addresscoverage
- the WCS coverage name- Throws:
java.lang.IllegalArgumentException
- If any argument is null
-
-