public class WCSConnector
extends java.lang.Object
Constructor and Description |
---|
WCSConnector(java.net.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(java.net.URL url,
java.io.File dstFile,
ICancellable cancel) |
java.io.File |
getCoverage(WCSStatus status,
ICancellable cancel)
Sends a GetCoverage request to the client.
|
java.lang.String |
getCoverageDescription(java.lang.String coverageName)
Returns a String containing a description of an specific coverage.
|
void |
getCoverageURL(WCSStatus status,
ICancellable cancel,
java.io.File file)
Sends a GetCoverage request to the client.
|
java.lang.String |
getDescription()
Returns name and description of the server.
|
java.awt.geom.Rectangle2D |
getFullExtent(java.lang.String coverageName,
java.lang.String srs)
Returns the coverage's MAX extent from the server.
|
int |
getHeight(java.lang.String coverageName)
Gets the maximum height in pixels of this coverage
|
java.lang.String |
getLabel()
Returns a human-readable string containing the server's name.
|
java.lang.String |
getLabel(java.lang.String coverageName)
Returns the label of an specific coverage given by the coverage name
|
WCSLayerNode |
getLayer(java.lang.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
|
java.awt.geom.Point2D |
getMaxResolution(java.lang.String coverageName)
Returns the max resolution of a specific coverage given by the coverage's name.
|
java.lang.String |
getName()
Returns the string "WCSDriver", which is the driver's name.
|
java.util.ArrayList |
getSRSs(java.lang.String coverageName)
Returns an ArrayList containing a set of Strings with the coverage's SRSs.
|
java.util.ArrayList |
getTimes(java.lang.String coverageName)
Returns an ArrayList containing strings for the time positions of an
specific coverage given by the coverage's name.
|
java.lang.String |
getVersion()
Returns a string containing the server's WCS version number.
|
int |
getWidth(java.lang.String coverageName)
Gets the maximum width in pixels of this coverage
|
void |
setHost(java.lang.String host)
Sets the server that we want to connect to.
|
public WCSConnector(java.net.URL url) throws java.net.ConnectException, java.io.IOException
java.net.ConnectException
java.io.IOException
public java.lang.String getName()
public void setHost(java.lang.String host) throws java.io.IOException
host
- java.io.IOException
public java.lang.String getLabel()
public java.lang.String getVersion()
public java.lang.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(java.lang.String layerName)
layerName
- public WCSLayerNode[] getLayerList()
public boolean connect(boolean override, ICancellable cancel) throws java.io.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.
java.io.IOException
public void close()
public java.lang.String getLabel(java.lang.String coverageName)
coverage
- name (string)public java.awt.geom.Rectangle2D getFullExtent(java.lang.String coverageName, java.lang.String srs) throws java.io.IOException
java.io.IOException
public java.awt.geom.Point2D getMaxResolution(java.lang.String coverageName)
coverage
- name (string)public int getWidth(java.lang.String coverageName)
coverageName
- public int getHeight(java.lang.String coverageName)
coverageName
- public java.util.ArrayList getSRSs(java.lang.String coverageName)
coverage
- name (string)public java.lang.String getCoverageDescription(java.lang.String coverageName)
coverage
- name (string)public java.util.ArrayList getTimes(java.lang.String coverageName)
coverage
- name (string)public java.io.File getCoverage(WCSStatus status, ICancellable cancel) throws RemoteServiceException
status
- WCSException
RemoteServiceException
public void getCoverageURL(WCSStatus status, ICancellable cancel, java.io.File file) throws RemoteServiceException
status
- WCSException
RemoteServiceException
public void downloadFile(java.net.URL url, java.io.File dstFile, ICancellable cancel) throws java.io.IOException
java.io.IOException