public class WMSConnector
extends java.lang.Object
Constructor and Description |
---|
WMSConnector(java.net.URL url) |
Modifier and Type | Method and Description |
---|---|
boolean |
connect(boolean override,
ICancellable cancel)
Establishes the connection.
|
boolean |
connect(DataServerExplorerParameters p,
boolean override,
ICancellable cancel)
Establishes the connection.
|
boolean |
connect(ICancellable cancel)
Deprecated.
Use
#connect(WMSServerExplorerParameters, boolean, ICancellable)
instead |
void |
downloadFile(java.net.URL url,
java.io.File dstFile,
ICancellable cancel) |
java.lang.String |
getAbstract() |
BoundaryBox |
getBoundaryBoxFromRectangle(java.awt.geom.Rectangle2D r) |
void |
getCapabilities(java.net.URL server) |
java.lang.String |
getFeatureInfo(WMSStatus _wmsStatus,
int i,
int j,
int max_value,
ICancellable cancellable) |
java.util.Vector |
getFormats() |
java.lang.String |
getHost() |
java.util.Vector |
getInfoFormats() |
WMSLayerNode |
getLayer(java.lang.String layerName) |
java.lang.String[] |
getLayerNames() |
java.awt.geom.Rectangle2D |
getLayersExtent(java.lang.String[] layerName,
java.lang.String srs) |
WMSLayerNode |
getLayersTree() |
java.lang.String[] |
getLayerTitles() |
java.io.File |
getLegendGraphic(WMSStatus status,
java.lang.String layerName,
ICancellable cancel)
Gets the legend graphic of one layer
|
java.io.File |
getMap(WMSStatus status,
ICancellable cancel) |
void |
getMap(WMSStatus status,
ICancellable cancel,
java.io.File file) |
java.util.Hashtable |
getOnlineResources()
Returns a Hash table containing the values for each online resource.
|
java.awt.geom.Rectangle2D |
getRectangleFromBoundaryBox(BoundaryBox bbox) |
java.lang.String |
getServiceTitle() |
java.lang.String |
getVersion() |
boolean |
hasLegendGraphic() |
boolean |
isQueryable() |
public WMSConnector(java.net.URL url) throws java.net.ConnectException, java.io.IOException
java.net.ConnectException
java.io.IOException
public java.lang.String[] getLayerNames()
public java.lang.String[] getLayerTitles()
public void getCapabilities(java.net.URL server) throws RemoteServiceException
RemoteServiceException
public java.io.File getMap(WMSStatus status, ICancellable cancel) throws RemoteServiceException
RemoteServiceException
public void getMap(WMSStatus status, ICancellable cancel, java.io.File file) throws RemoteServiceException
status
- cancel
- file
- RemoteServiceException
public void downloadFile(java.net.URL url, java.io.File dstFile, ICancellable cancel) throws java.io.IOException
java.io.IOException
public java.io.File getLegendGraphic(WMSStatus status, java.lang.String layerName, ICancellable cancel) throws RemoteServiceException
RemoteServiceException
public boolean connect(boolean override, ICancellable cancel)
override,
- if true the previous downloaded data will be overriddenpublic boolean connect(DataServerExplorerParameters p, boolean override, ICancellable cancel)
override,
- if true the previous downloaded data will be overriddenpublic boolean connect(ICancellable cancel)
#connect(WMSServerExplorerParameters, boolean, ICancellable)
insteadcancel
- public java.lang.String getVersion()
public java.lang.String getServiceTitle()
public java.util.Hashtable getOnlineResources()
public java.util.Vector getFormats()
public java.util.Vector getInfoFormats()
public boolean isQueryable()
public boolean hasLegendGraphic()
public WMSLayerNode getLayersTree()
public java.awt.geom.Rectangle2D getRectangleFromBoundaryBox(BoundaryBox bbox)
public BoundaryBox getBoundaryBoxFromRectangle(java.awt.geom.Rectangle2D r)
public java.lang.String getAbstract()
public java.awt.geom.Rectangle2D getLayersExtent(java.lang.String[] layerName, java.lang.String srs)
public WMSLayerNode getLayer(java.lang.String layerName)
public java.lang.String getFeatureInfo(WMSStatus _wmsStatus, int i, int j, int max_value, ICancellable cancellable) throws RemoteServiceException
RemoteServiceException
public java.lang.String getHost()