|
IDL Reference Guide: Network Objects |
|
This section outlines the steps required to query and return information from an OGC server. The goal is to return a data file containing a specific geospatial coverage as unrendered data. A coverage is gridded data that typically has a 1-, 2-, or 3-axis spatial coordinate reference system. Broadly, an information request from a WCS sever requires determining what data is available from a server (coverage offering briefs), determining what data collection (coverage offerings) from which you want to request data (a coverage), making the requests, and returning unrendered data.
| Note You can implement a callback to return information about the status of requests. See Using Callbacks with the IDLnetOGCWCS Object for details. |
After you create an IDLnetOGCWCS object, you will need to complete the following steps:
| Note If dealing with secure WCS servers, see HTTP Authentication, Security and Encoding for additional information. |
A valid WCS server URL is required to establish communication with an OGC WCS server. Additionally, IDLnetOGCWCS URL-related property values must be set before data can be successfully requested from a OGC WCS server. Either set the required properties manually (using SetProperty) or pass a URL to ParseURL. The IDLnetOGCWCS::ParseUrl method automatically parses a given URL and sets related property values.
| Note Regardless of how properties are set, the URL_HOSTNAME and URL_PATH properties must be set before calling the GetCapabilities, DescribeCoverage or GetCoverage methods. |
The following table describes how the components of a given URL should be assigned to property values. Consider the following URL (which would typically exist on a single line):
http://my.hostname.com:8080/demo/cgi_path?customprefix& Version=1.0.0&SERVICE=WCS&CustomMiddle&Request=GetCapabilities& CustomSuffix
Components of this URL map to properties as follows.
|
Property
|
Value
|
|---|---|
http |
|
my.hostname.com |
|
8080 |
|
demo/cgi_path |
|
Version=1.0.0 |
|
CustomPrefix&CustomMiddle |
|
CustomSuffix |
The query portion of the URL passed to a WCS server (the parameter=value pairs following the ? character) always includes the following three parameters:
These three parameters are inserted into the URL automatically by IDL; any values specified for these parameters in the URL are ignored. They are not included when the URL_QUERY_PREFIX or URL_QUERY_SUFFIX properties are returned by the GetProperty method. Any query parameters that precede any of the three required parameters will be included in the URL_QUERY_PREFIX property by the ParseURL method; other nonrequired parameters will be included in the URL_QUERY_SUFFIX property.
| Note If not specified in the URL, property values besides URL_HOSTNAME and URL_PATH are set to default values. For example, the URL_PORT property defaults to 80 and the WCS_VERSION defaults to 1.0.0. |
IDL Online Help (March 06, 2007)