IDL Reference Guide: Network Objects |
IDLnetOGCWMS objects have the following properties. Properties with the word "Yes" in the "Init" column of the property table can be set via IDLnetOGCWMS::Init.
Note For a discussion of the property description tables shown below, see About Object Property Descriptions. |
Objects of this class have the following properties.
This property specifies the type of authentication used when connecting to an OGC server. Supported authentication modes are:
When AUTHENTICATION is set, one or both of the USERNAME and PASSWORD properties must also be set. If neither of these properties is set, this property is ignored.
This property contains data that is to be passed to the function defined by the CALLBACK_FUNCTION property when a callback is initiated. The data contained in the variable is defined and set by the caller. When a callback is initiated, this data is passed, unmodified, directly to callback function. Data can be of any type supported by IDL variables including numerical, string, pointer and structure data. If this property is not set, the GetCapabilities, GetMap, and GetFeatureInfo methods will pass the integer value zero to the callback function.
This property is the name of the .pro
code function to be called when GetCapabilities, GetMap, and GetFeatureInfo methods are retrieving information from the remote server. The function provides status information in addition to providing a way to cancel an operation. If this property is not set, then no callbacks will be made by the previously noted methods. See Using Callbacks with the IDLnetOGCWMS Object for more information.
The default value is a null string.
The IDLnetOGCWCS::GetCapabilities method returns and stores an XML file that contains information about the layers available on the remote server. Set this property to define the path and filename of this file, minus the extension. The file type extension is automatically set based on the type of file downloaded (typically .xml
). If this property stays the same between calls to GetCapabilities, the last file received is overwritten.
This property defaults to a file named cap
, located in your application user directory. If a file was returned by the most recent call to the GetCapabilities method, the LAST_FILE property will contain the full path and filename of the downloaded file.
Note Do not include a file type extension in the filename. If the retrieved file does not have the same extension as that given, the name will be appended with the file type extension of the received file (but this property will remain unchanged). For example, if you include the . xml extension (cap.xml ) and the file received is an HTML file, the filename of the file on disk will be cap.xml.html , while this property remains cap.xml . Always omit the file type extension to avoid such inconsistencies. |
This property cannot be set to a null string.
This property controls how long to wait for a successful connection to an OGC server before ending the attempt to establish a connection. The default is 180 seconds.
This property indicates the document type of the last file received. The value of this property is extracted from the Content-Type field of an HTTP response header.
This property determines if a compressed or encoded response will be requested from a remote OGC WMS server (during GetCapabilities, GetMap, and GetFeatureInfo method calls). By default, the IDLnetOGCWMS object requests an unencoded response (ENCODE=0) in order to reduce the number of bytes that need to be sent over the network.
Note The server does not have to respond with compressed or encoded data. You can determine the encoding, if any, by examining the "Content-Encoding" header in the response. See the VERBOSE property for information on how to access such information. |
Allowable values are:
The IDLnetOGCWMS::GetFeatureInfo method returns and stores a feature file from the WMS server. Set this property to define the path and filename of this file, minus the extension. The file type extension is automatically set based on the type of file downloaded. If this property stays the same (the path and filename are unchanged, and the same type of file is retrieved) between calls to GetFeatureInfo, the last file received is overwritten.
This property defaults to a file named feature
, located in your application user directory. If a file was returned by the most recent call to the GetFeatureInfo method, the LAST_FILE property will contain the full path and filename of the downloaded file.
Note Do not include a file type extension in the filename. If the retrieved file does not have the same extension as that given, the name will be appended with the file type extension of the received file (but this property will remain unchanged). For example, if you include the . txt extension (feature.txt ) and the file received is an .html file, the filename of the file on disk will be feature.txt.html , while this property remains feature.txt . Always omit the file type extension to avoid such inconsistencies. |
This property cannot be set to a null string.
Note This property is set automatically and need not be modified unless you have specific HTTP header information that you want included in a GET request sent to a remote WMS server. |
Warning This property is automatically set to the default value (clearing any custom header information) after a call to any IDLnetOGCWMS::Get* method except GetProperty. Clearing the HEADERS property prevents the inadvertent use of custom header values in future calls to Get methods. |
Set this property to a string or array of strings containing one or more valid header fields and values separated by a colon. Each string in the string array should contain a single header field.
The HTTP header Host, Accept and Encode fields are set by default. To add, disable or modify headers, do one of the following:
HEADERS=
"Accept:
" disables the header field.
HEADERS="Accept:''"
clears the field contents.
Set this property to an empty string to clear all custom headers and reset default values if appropriate. For example, HEADERS=''
clears all custom changes.
Note This method cannot be used to modify the first method line of a HTTP request (typically GET or POST). |
Retrieving this property will return only those headers set using this method. Use the VERBOSE keyword to see the default header information included in a request.
This property contains the full path and filename of the file retrieved from the last successful call to one of the GetCapabilities, GetFeatureInfo, or GetMap methods. If the most recent call did not return a file, this property will contain a null string. The default value is an empty string.
The IDLnetOGCWMS::GetMap method returns and stores a map file containing the layers requested from the WMS server. Set this property to define the path and filename of this file, minus the extension. The file type extension is automatically set based on the type of file downloaded. If this property stays the same (the path and filename are unchanged, and the same type of file is retrieved) between calls to GetMap, the last file received is overwritten.
This property defaults to a file named map
, located in your application user directory. If a file was returned by the most recent call to the GetMap method, the LAST_FILE property will contain the full path and filename of the downloaded file.
Note Do not include a file type extension in the filename. If the retrieved file does not have the same extension as that given, the name will be appended with the file type extension of the received file (but this property will remain unchanged). For example, if you include the . tiff extension (cov.tiff ) and the file received is a .gml file, the filename of the file on disk will be cov.tiff.gml , while this property remains cov.tiff . Always omit the file type extension to avoid such inconsistencies. |
This property cannot be set to a null string.
This property contains the password required for successful authentication with a secure WMS server. The default value is an empty string.
This property specifies the type of authentication that will be used when connecting to a proxy server. Supported authentication modes are:
When PROXY_AUTHENTICATION is set and you are using a proxy server, the PROXY_USERNAME and PROXY_PASSWORD properties must also be set. If either of these properties are not set, then this property is ignored.
This property specifies the hostname or IP address of the proxy server. This property must be set when connecting to an intranet or the internet through a proxy server. The default value is an empty string.
This property contains the password required for successful authentication with a secure proxy server. The default value is an empty string.
This property specifies the TCP/IP port that the proxy server listens to for incoming requests. The default value is "80", the standard port for an HTTP request. This property must be set when connecting to an intranet or the internet through a proxy server.
This property contains the username required for successful authentication with a secure proxy server. The default value is an empty string.
This read-only property contains the HTTP response header from the last request made to an OGC WMS server. The default value is an empty string.
Set this property to the full path and filename of the file containing one or more certificates to be verified with the peer when communicating with a secure server. The default location is IDL_DIR
/bin/bin.
platform
directory where IDL_DIR
is your IDL installation directory. A default bundle of Certificate Authority (CA) certificates is installed in this location. Use this property to specify the location of an alternate certificate file.
When negotiating a SSL connection, the server sends a certificate indicating its identity. Use this property to determine whether you have connected to the expected server as follows:
0
|
No verification. The connection succeeds regardless of the name fields in the certificate.
|
1
|
Verify server. When this property is non-zero, the Common Name field or a Subject Alternate Name field in the certificate must match the host name in the URL (the URL_HOSTNAME property), or the connection fails. The default.
|
Note To guard against a dishonest server, authenticate its certificate. See SSL_VERIFY_PEER. |
SSL peer authentication depends on verification of a chain of digital signatures contained in one or more Certificate Authority (CA) certificates. See SSL_CERTIFICATE_FILE for information on the default CA certificates installed with IDL and how to supply your own certificates.
Note Certificate authentication is typically used in conjunction with server verification. See SSL_VERIFY_HOST for details. |
This property controls how long to wait for the transmission from the OGC server to complete before ending the attempt. The default is 1800 seconds.
This property specifies the host name or IP address of the remote OGC WMS server.
Note This property and the URL_PATH property must be set before calling GetCapabilities, GetMap, or GetFeatureInfo. The hostname and path elements are integral components of the request that is sent to the WMS server. |
You can either set this property manually or pass a URL to the IDLnetOGCWMS::ParseUrl method. See Translating a URL into Property Values for more information. The default value is an empty string.
This property specifies the path to the remote OGC WMS server.
Note This property and the URL_HOSTNAME property must be set before calling GetCapabilities, GetMap, or GetFeatureInfo. The path and hostname elements are integral components of the request that is sent to the WMS server. |
You can either set this property manually or pass a URL to the IDLnetOGCWMS::ParseUrl method. See Translating a URL into Property Values for more information. The default value is an empty string.
This property specifies the TCP/IP port at which the remote server listens for incoming requests. You can either set this property manually or pass a URL to the IDLnetOGCWCS::ParseUrl method. See Translating a URL into Property Values for more information. The default value is "80", the standard port for an HTTP request.
This property specifies a prefix containing additional query information that will be prepended to the main portion of a request. You can either set this property manually or pass a URL to the IDLnetOGCWMS::ParseUrl method. See Translating a URL into Property Values for more information. The default value is an empty string.
This property specifies a suffix containing additional query information that will be appended to the main portion of a request. See Translating a URL into Property Values for more information on this property. The default value is an empty string.
This property specifies the name of the protocol used to communicate with the remote WMS server when a request is made. You can either set this property manually or pass a URL to the IDLnetOGCWCS::ParseUrl method. See Translating a URL into Property Values for more information. Possible values are:
String Value
|
Description
|
---|---|
|
This is the default.
|
|
Use this setting when making a secure request and Secure Socket Layer (SSL) is supported by the remote WMS server. See SSL_CERTIFICATE_FILE, SSL_VERIFY_HOST, and SSL_VERIFY_PEER for SSL-related configuration parameters.
|
This property contains the username required for successful authentication with a secure WMS server. The default value is an empty string.
Set this property to a non-zero value to return verbose connection and HTTP header information associated with an IDLnetOGCWMS::GetCapabilities, IDLnetOGCWMS::GetMap, or IDLnetOGCWMS::GetFeatureInfo method request. By default, this property is set to zero, and only standard information is returned.
To access this information, the CALLBACK_FUNCTION property must also be set. The callback function's StatusInfo variable will contain:
Each message is limited to 512 bytes of text.
Note For a simple example of using a callback to return VERBOSE status information, see IDLnetOGCWMS::GetLayers. |
This property defines the version of the OGC WMS standard supported by the IDLnetOGCWMS object. The default value is "Version=1.1.1" but "Version=1.3.0" is also an allowable value.
IDL Online Help (March 06, 2007)