public class WCSConnector extends Object
Constructor and Description |
---|
WCSConnector(URL url) |
Modifier and Type | Method and Description |
---|---|
void |
close()
No close operation is needed since WCS service it is a non-session based
protocol.
|
boolean |
connect(boolean override,
ICancellable cancel)
Establishes the connection to the WCS server.
|
void |
downloadFile(URL url,
File dstFile,
ICancellable cancel) |
File |
getCoverage(WCSStatus status,
ICancellable cancel)
Sends a GetCoverage request to the client.
|
String |
getCoverageDescription(String coverageName)
Returns a String containing a description of an specific coverage.
|
void |
getCoverageURL(WCSStatus status,
ICancellable cancel,
File file)
Sends a GetCoverage request to the client.
|
String |
getDescription()
Returns name and description of the server.
|
Rectangle2D |
getFullExtent(String coverageName,
String srs)
Returns the coverage's MAX extent from the server.
|
int |
getHeight(String coverageName)
Gets the maximum height in pixels of this coverage
|
String |
getLabel()
Returns a human-readable string containing the server's name.
|
String |
getLabel(String coverageName)
Returns the label of an specific coverage given by the coverage name
|
WCSLayerNode |
getLayer(String layerName)
Returns the layer descriptor for a given coverage name.
|
WCSLayerNode[] |
getLayerList()
Returns an array of WCSLayer's with the descriptors of all coverages
|
Point2D |
getMaxResolution(String coverageName)
Returns the max resolution of a specific coverage given by the coverage's name.
|
String |
getName()
Returns the string "WCSDriver", which is the driver's name.
|
ArrayList |
getSRSs(String coverageName)
Returns an ArrayList containing a set of Strings with the coverage's SRSs.
|
ArrayList |
getTimes(String coverageName)
Returns an ArrayList containing strings for the time positions of an
specific coverage given by the coverage's name.
|
String |
getVersion()
Returns a string containing the server's WCS version number.
|
int |
getWidth(String coverageName)
Gets the maximum width in pixels of this coverage
|
void |
setHost(String host)
Sets the server that we want to connect to.
|
public WCSConnector(URL url) throws ConnectException, IOException
ConnectException
IOException
public String getName()
public void setHost(String host) throws IOException
host
- IOException
public String getLabel()
public String getVersion()
public String getDescription()
Returns name and description of the server. It is supposed to be used as the source of the abstract field in your application's interface.
Devuelve nombre y descripción (abstract) del servidor.
public WCSLayerNode getLayer(String layerName)
layerName
- public WCSLayerNode[] getLayerList()
public boolean connect(boolean override, ICancellable cancel) throws IOException
Actually, it sends a GetCapabilities and a general DescribeCoverage request (not a coverage-specific DescribeCoverage request) to read the necessary data for building further GetCoverage requests.
override
- IOException.
IOException
public void close()
public String getLabel(String coverageName)
coverage
- name (string)public Rectangle2D getFullExtent(String coverageName, String srs) throws IOException
IOException
public Point2D getMaxResolution(String coverageName)
coverage
- name (string)public int getWidth(String coverageName)
coverageName
- public int getHeight(String coverageName)
coverageName
- public ArrayList getSRSs(String coverageName)
coverage
- name (string)public String getCoverageDescription(String coverageName)
coverage
- name (string)public ArrayList getTimes(String coverageName)
coverage
- name (string)public File getCoverage(WCSStatus status, ICancellable cancel) throws RemoteServiceException
status
- WCSException
RemoteServiceException
public void getCoverageURL(WCSStatus status, ICancellable cancel, File file) throws RemoteServiceException
status
- WCSException
RemoteServiceException
public void downloadFile(URL url, File dstFile, ICancellable cancel) throws IOException
IOException