public abstract class WCSProtocolHandler
extends org.gvsig.remoteclient.ogc.OGCProtocolHandler
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
encoding
Encoding used to parse different xml documents.
|
protected java.util.Hashtable |
layerPool |
protected WCSServiceInformation |
serviceInfo
WCS metadata
|
| Constructor and Description |
|---|
WCSProtocolHandler() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
buildCapabilitiesSuitableVersionRequest(java.lang.String _host,
java.lang.String _version)
Builds the GetCapabilitiesRequest according to the OGC WCS Specifications
without a VERSION, to get the highest version than a WCS supports.
|
abstract WCSDescribeCoverageRequest |
createDescribeCoverageRequest(WCSStatus status) |
abstract WCSGetCoverageRequest |
createGetCoverageRequest(WCSStatus status) |
void |
describeCoverage(WCSStatus status,
boolean override,
org.gvsig.compat.net.ICancellable cancel)
Send a DescribeCoverage request using the settings passed in the status argument.
|
void |
getCapabilities(WCSStatus status,
boolean override,
org.gvsig.compat.net.ICancellable cancel)
Builds a GetCapabilities request that is sent to the WCS
the response will be parse to extract the data needed by the
WCS client.
|
java.io.File |
getCoverage(WCSStatus status,
org.gvsig.compat.net.ICancellable cancel)
Send a GetCoverage request using the settings passed in the status.
|
java.net.URL |
getCoverageURL(WCSStatus status,
org.gvsig.compat.net.ICancellable cancel) |
java.lang.String |
getExceptionMessage(java.io.File f)
Returns the exception message if the file is a XML instead of a image.
|
java.util.ArrayList |
getFormats() |
java.util.Hashtable |
getLayers() |
org.gvsig.remoteclient.ogc.OGCServiceInformation |
getServiceInformation() |
abstract boolean |
parseDescribeCoverage(java.io.File f)
parses the data retrieved by the DescribeCoverage XML document
|
void |
setHost(java.lang.String host) |
protected java.lang.String encoding
protected java.util.Hashtable layerPool
protected WCSServiceInformation serviceInfo
public static java.lang.String buildCapabilitiesSuitableVersionRequest(java.lang.String _host,
java.lang.String _version)
public abstract WCSDescribeCoverageRequest createDescribeCoverageRequest(WCSStatus status)
public abstract WCSGetCoverageRequest createGetCoverageRequest(WCSStatus status)
public void describeCoverage(WCSStatus status, boolean override, org.gvsig.compat.net.ICancellable cancel)
override - public void getCapabilities(WCSStatus status, boolean override, org.gvsig.compat.net.ICancellable cancel)
Builds a GetCapabilities request that is sent to the WCS the response will be parse to extract the data needed by the WCS client.
override, - if true the cache is ignoredpublic java.io.File getCoverage(WCSStatus status, org.gvsig.compat.net.ICancellable cancel) throws org.gvsig.remoteclient.exceptions.ServerErrorException, WCSException
org.gvsig.remoteclient.exceptions.ServerErrorExceptionWCSExceptionpublic java.net.URL getCoverageURL(WCSStatus status, org.gvsig.compat.net.ICancellable cancel) throws org.gvsig.remoteclient.exceptions.ServerErrorException
org.gvsig.remoteclient.exceptions.ServerErrorExceptionpublic java.lang.String getExceptionMessage(java.io.File f)
throws java.io.IOException
file3 - java.io.IOExceptionpublic java.util.ArrayList getFormats()
public java.util.Hashtable getLayers()
public org.gvsig.remoteclient.ogc.OGCServiceInformation getServiceInformation()
getServiceInformation in class org.gvsig.remoteclient.ogc.OGCProtocolHandlerpublic abstract boolean parseDescribeCoverage(java.io.File f)
public void setHost(java.lang.String host)
setHost in class org.gvsig.remoteclient.ogc.OGCProtocolHandlerCopyright © 2011-2014 gvSIG Association. All Rights Reserved.