public class WCSClient extends RasterClient
hostName, port, serviceName
Modifier and Type | Method and Description |
---|---|
void |
close()
Does ...
|
boolean |
connect(boolean override,
ICancellable cancel)
Checks the connection to de remote WMS and requests its capabilities.
|
File |
getCoverage(WCSStatus status,
ICancellable cancel)
Sends the GetCoverage request according to the settings passed in the status
argument.
|
Hashtable |
getCoverageList()
Returns a hash table containing the WCSCoverage's produced at parse time using
the coverage names as the Hashtable's keys
|
URL |
getCoverageURL(WCSStatus status,
ICancellable cancel)
Gets the GetMap URL.
|
String |
getDescription()
Returns a brief description of the service, it is a human-readable string.
|
String |
getExceptionMessage(File file)
Returns the exception message if the file is a XML instead of a image.
|
Rectangle2D |
getExtent(String coverageName,
String crs)
Given a coverage name and the CRS name, it returns the extent defined by the
server in the DescribeCoverage document.
|
ArrayList |
getFormats() |
String |
getLabel(String coverageName)
Given a coverage name, it returns the coverage's title.
|
String |
getServiceTitle()
Returns the title of the service.
|
String |
getVersion()
Returns the service version (1.0.0, 1.1.0, ...).
|
getHost, getPort, getServiceName, getSubtype, getType, setHost, setPort, setServiceName, setSubtype, setType
public WCSClient(String host) throws ConnectException, IOException
IOException
ConnectException
public boolean connect(boolean override, ICancellable cancel)
Checks the connection to de remote WMS and requests its capabilities.
connect
in class RemoteClient
override
- public void close()
RemoteClient
Does ...
close
in class RemoteClient
public String getServiceTitle()
public String getVersion()
public String getDescription()
public ArrayList getFormats()
public Hashtable getCoverageList()
public String getLabel(String coverageName)
coverageName
- public Rectangle2D getExtent(String coverageName, String crs)
coverageName
- crs
- public File getCoverage(WCSStatus status, ICancellable cancel) throws ServerErrorException, WCSException
status
- ServerErrorException
WCSException
public URL getCoverageURL(WCSStatus status, ICancellable cancel) throws ServerErrorException
Gets the GetMap URL. The final client should download the file
ServerErrorException
public String getExceptionMessage(File file) throws IOException
file
- IOException