public class WMSConnector extends Object
Constructor and Description |
---|
WMSConnector(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(URL url,
File dstFile,
ICancellable cancel) |
String |
getAbstract() |
BoundaryBox |
getBoundaryBoxFromRectangle(Rectangle2D r) |
void |
getCapabilities(URL server) |
String |
getFeatureInfo(WMSStatus _wmsStatus,
int i,
int j,
int max_value,
ICancellable cancellable) |
Vector |
getFormats() |
String |
getHost() |
Vector |
getInfoFormats() |
WMSLayerNode |
getLayer(String layerName) |
String[] |
getLayerNames() |
Rectangle2D |
getLayersExtent(String[] layerName,
String srs) |
WMSLayerNode |
getLayersTree() |
String[] |
getLayerTitles() |
File |
getLegendGraphic(WMSStatus status,
String layerName,
ICancellable cancel)
Gets the legend graphic of one layer
|
File |
getMap(WMSStatus status,
ICancellable cancel) |
void |
getMap(WMSStatus status,
ICancellable cancel,
File file) |
Hashtable |
getOnlineResources()
Returns a Hash table containing the values for each online resource.
|
Rectangle2D |
getRectangleFromBoundaryBox(BoundaryBox bbox) |
String |
getServiceTitle() |
String |
getVersion() |
boolean |
hasLegendGraphic() |
boolean |
isQueryable() |
public WMSConnector(URL url) throws ConnectException, IOException
ConnectException
IOException
public String[] getLayerNames()
public String[] getLayerTitles()
public void getCapabilities(URL server) throws RemoteServiceException
RemoteServiceException
public File getMap(WMSStatus status, ICancellable cancel) throws RemoteServiceException
RemoteServiceException
public void getMap(WMSStatus status, ICancellable cancel, File file) throws RemoteServiceException
status
- cancel
- file
- RemoteServiceException
public void downloadFile(URL url, File dstFile, ICancellable cancel) throws IOException
IOException
public File getLegendGraphic(WMSStatus status, 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 String getVersion()
public String getServiceTitle()
public Hashtable getOnlineResources()
public Vector getFormats()
public Vector getInfoFormats()
public boolean isQueryable()
public boolean hasLegendGraphic()
public WMSLayerNode getLayersTree()
public Rectangle2D getRectangleFromBoundaryBox(BoundaryBox bbox)
public BoundaryBox getBoundaryBoxFromRectangle(Rectangle2D r)
public String getAbstract()
public Rectangle2D getLayersExtent(String[] layerName, String srs)
public WMSLayerNode getLayer(String layerName)
public String getFeatureInfo(WMSStatus _wmsStatus, int i, int j, int max_value, ICancellable cancellable) throws RemoteServiceException
RemoteServiceException
public String getHost()