Description Usage Arguments Value Remarks Examples
This function is the only function of the CSW package that actually retrieves data from the CSW Server. Most often this function will not be used directly by the user. For the various CSW operations dedicated functions are provided that generate a string with parameters that is passed to CSW_GetData
. With the parameter verbose
one can indicate that this generated string is printed in the console log. These parameters can then specified for this function (e.g. when an option would be needed that is not provided for by the dedicated functions). See example.
1 2 3 4 | CSW_GetData(request = c("GetCapabilities", "GetRecords",
"DescribeRecord", "GetDomain", "GetRecordById", "Transaction",
"Harvest"), version = CSW_get_version(), baseurl = CSW_get_url(),
verbose = c("N", "F", "Y"), ...)
|
request |
Character vector indicating the CSW operation that has to be performed. One of |
version |
Character vector with CSW version. Default is |
baseurl |
Character vector with base url of the CSW server. Default is http://nationaalgeoregister.nl/geonetwork/srv/dut/csw? but this can be changed for the remainder of the session with |
verbose |
Character |
... |
Optionally one or more |
An xml
document with the requested information.
CSW_GetData
always returns an xml document where other functions sometimes try to reformat the information when requested. Using this function can help with debugging when there is a problem (e.g. with this formatting).
1 2 3 4 5 6 7 8 9 | ## Not run:
# exp1 and exp2 request the same information from the server:
exp1 = CSW_DescribeRecord(typeName = 'gmd:MD_Metadata',
namespace = 'gmd:http://www.isotc211.org/2005/gmd',verbose='N')
exp2 = CSW_GetData(request='DescribeRecord',
namespace ='gmd:http://www.isotc211.org/2005/gmd',
typeName ='gmd:MD_Metadata',verbose='N')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.