public class WMTSClient extends RasterClient
Represents the class the with the necessary logic to connect to a OGCWMS and interpretate the data
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
forceLongitudeFirstAxisOrder |
hostName, port, serviceName| Constructor and Description |
|---|
WMTSClient(java.lang.String host)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Does ...
|
boolean |
connect(boolean override,
org.gvsig.compat.net.ICancellable cancel)
Does ...
|
boolean |
connect(org.gvsig.compat.net.ICancellable cancel) |
java.io.File |
downloadFile(java.net.URL url,
org.gvsig.compat.net.ICancellable cancel)
Downloads a file
|
void |
getCapabilities(WMTSServerDescription serverDescription,
boolean override,
org.gvsig.compat.net.ICancellable cancel)
One of the three interfaces defined by OGC WMS, it gets the service capabilities
|
java.lang.String |
getFeatureInfo(WMTSStatus status,
int x,
int y,
org.gvsig.compat.net.ICancellable cancel)
It will send a GetFeatureInfo request to the WMTS
Parsing the response and redirecting the info to the WMTS client
|
java.util.ArrayList |
getFormats(java.lang.String layerTitle)
Gets the list of formats supported by a layer
|
WMTSLayer |
getLayer(java.lang.String layerName)
Gets a layer
|
java.util.ArrayList |
getLayers()
Reads from the WMS Capabilities, the layers available in the service
|
int |
getNumberOfLayers()
Reads from the WMS Capabilities the number if layers available in the service
|
WMTSServiceIdentification |
getServiceIdentification()
Gets the host description
|
WMTSServiceProvider |
getServiceProvider()
Gets the host description
|
WMTSThemes |
getThemes()
Gets the list of themes
|
java.io.File |
getTile(WMTSStatus status,
org.gvsig.compat.net.ICancellable cancel)
One of the three interfaces that OGC WMS defines.
|
java.io.File |
getTile(WMTSStatus status,
org.gvsig.compat.net.ICancellable cancel,
java.io.File file)
Gets a tile downloading using a specific path and file.
|
java.util.ArrayList |
getTileMatrixSet()
Gets the set of tiles definition
|
java.net.URL |
getTileURL(WMTSStatus status)
Builds the URL to get a tile using a WMTSStatus object
|
java.lang.String |
getVersion() |
void |
setForceLongitudeFirstAxisOrder(boolean force)
Sets longitude first in the axis order
|
getHost, getPort, getServiceName, getSubtype, getType, setHost, setPort, setServiceName, setSubtype, setTypepublic WMTSClient(java.lang.String host)
throws java.net.ConnectException,
java.io.IOException
java.net.ConnectExceptionjava.io.IOExceptionpublic void close()
RemoteClientDoes ...
close in class RemoteClientpublic boolean connect(boolean override,
org.gvsig.compat.net.ICancellable cancel)
RemoteClientDoes ...
connect in class RemoteClientpublic boolean connect(org.gvsig.compat.net.ICancellable cancel)
public java.io.File downloadFile(java.net.URL url,
org.gvsig.compat.net.ICancellable cancel)
throws DownloadException
public void getCapabilities(WMTSServerDescription serverDescription, boolean override, org.gvsig.compat.net.ICancellable cancel)
One of the three interfaces defined by OGC WMS, it gets the service capabilities
override, - if true the previous downloaded data will be overriddenpublic java.lang.String getFeatureInfo(WMTSStatus status, int x, int y, org.gvsig.compat.net.ICancellable cancel)
It will send a GetFeatureInfo request to the WMTS Parsing the response and redirecting the info to the WMTS client
public java.util.ArrayList getFormats(java.lang.String layerTitle)
layerTitle - public WMTSLayer getLayer(java.lang.String layerName)
layerName - public java.util.ArrayList getLayers()
Reads from the WMS Capabilities, the layers available in the service
public int getNumberOfLayers()
Reads from the WMS Capabilities the number if layers available in the service
public WMTSServiceIdentification getServiceIdentification()
public WMTSServiceProvider getServiceProvider()
public WMTSThemes getThemes()
public java.io.File getTile(WMTSStatus status, org.gvsig.compat.net.ICancellable cancel) throws WMTSException, ServerErrorException
One of the three interfaces that OGC WMS defines. Request a map.
ServerErrorExceptionWMTSExceptionpublic java.io.File getTile(WMTSStatus status, org.gvsig.compat.net.ICancellable cancel, java.io.File file) throws WMTSException, ServerErrorException
Gets a tile downloading using a specific path and file.
ServerErrorExceptionWMTSExceptionpublic java.util.ArrayList getTileMatrixSet()
public java.net.URL getTileURL(WMTSStatus status) throws java.net.MalformedURLException
ServerErrorExceptionjava.net.MalformedURLExceptionpublic java.lang.String getVersion()
public void setForceLongitudeFirstAxisOrder(boolean force)
force - Copyright © 2013 gvSIG Association. All Rights Reserved.