Information about WMS server from capabilities document
[
accesses the Internet to read a capabilities document from a Web Map Service (WMS) server
specified by string or character vector capabilities
,infoRequestURL
]
= wmsinfo(serverURL
)serverURL
. A capabilities
document is an XML document that contains metadata describing the geographic content offered
by the server.
The wmsinfo
function returns the contents of the capabilities
document in capabilities
, a WMSCapabilities
object.
The wmsinfo
function also returns the character vector
infoRequestURL
, which is composed of the serverURL
with additional WMS parameters. You can insert infoRequestURL
into a
browser, or the urlread
function, to get the XML capabilities
document.
The wmsinfo
function requires an Internet connection. WMS servers can
periodically be unavailable. Retrieving the map can take several minutes.
[
reads the capabilities document from a WMS capabilities
,infoRequestURL
]
= wmsinfo(infoRequestURL
)infoRequestURL
and returns the
contents in capabilities
.
[
specifies the number of seconds before a server times out. Specify capabilities
,infoRequestURL
]
= wmsinfo(___,'TimeoutInSeconds',sec)sec
as
a non-negative integer. If you specify sec
as 0, then
wmsinfo
ignores the time-out mechanism.
To specify a proxy server to connect to the Internet, select File>Preferences>Web and enter your proxy information. Use this feature if you have a firewall.
wmsinfo
communicates with the server using a
WebMapServer
object representing an implementation of a WMS
specification. The object acts as a proxy to a WMS server and resides physically on the
client side. The object accesses the server's capabilities document. The object supports
multiple WMS versions and negotiates with the server to use the highest known version that
the server can support. The object automatically times-out after 60 seconds if a
connection is not made to the server.
WebMapServer
| wmsfind
| WMSLayer
| wmsread
| wmsupdate