|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gvsig.remoteclient.RemoteClient
org.gvsig.remoteclient.RasterClient
org.gvsig.remoteclient.wmts.WMTSClient
public class WMTSClient
Represents the class the with the necessary logic to connect to a OGCWMS and interpretate the data
| Field Summary | |
|---|---|
protected boolean |
forceLongitudeFirstAxisOrder
|
| Fields inherited from class org.gvsig.remoteclient.RemoteClient |
|---|
hostName, port, serviceName |
| Constructor Summary | |
|---|---|
WMTSClient(java.lang.String host)
Constructor. |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class org.gvsig.remoteclient.RemoteClient |
|---|
getHost, getPort, getServiceName, getSubtype, getType, setHost, setPort, setServiceName, setSubtype, setType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean forceLongitudeFirstAxisOrder
| Constructor Detail |
|---|
public WMTSClient(java.lang.String host)
throws java.net.ConnectException,
java.io.IOException
java.net.ConnectException
java.io.IOException| Method Detail |
|---|
public void setForceLongitudeFirstAxisOrder(boolean force)
force - public java.lang.String getVersion()
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 void close()
RemoteClientDoes ...
close in class RemoteClient
public 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.
ServerErrorException
WMTSException
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.
ServerErrorException
WMTSException
public java.net.URL getTileURL(WMTSStatus status)
throws java.net.MalformedURLException
ServerErrorException
java.net.MalformedURLException
public java.io.File downloadFile(java.net.URL url,
org.gvsig.compat.net.ICancellable cancel)
throws DownloadException
DownloadException
ServerErrorException
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 overridden
public 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 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.util.ArrayList getFormats(java.lang.String layerTitle)
layerTitle -
public WMTSServiceIdentification getServiceIdentification()
public WMTSServiceProvider getServiceProvider()
public WMTSThemes getThemes()
public java.util.ArrayList getTileMatrixSet()
public WMTSLayer getLayer(java.lang.String layerName)
layerName -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||