Description Usage Arguments Value Examples
The CSW_GetCapabilities
function gives information about the capabilities that are available to query the catalog. By calling this function without arguments we receive an xml
document with this information. We can view the contents of this document (e.g. with the utility function CSW_display_node
) and study its structure. We see among other things the operations that are available and the parameters with which these operations can be called. Apart of viewing the document we can also select parts of it with functions of the xml2 package by using XPATH
expressions. The vignette shows how one can see which operations are provided by the CSW interface and which parameters are available for the GetRecords operation (i.e. the CSW_GetRecords
function).
1 2 3 4 5 | CSW_GetCapabilities(sections = c("OperationsMetadata",
"ServiceIdentification", "ServiceProvider", "Filter_Capabilities"),
typeNames = c("csw:Record", "gmd:MD_Metadata",
"gfc:FC_FeatureCatalogue", "dcat"), version = CSW_get_version(),
baseurl = CSW_get_url(), verbose = c("N", "F", "Y"))
|
sections |
Character vector to restrict the output to one of the |
typeNames |
Character vector with 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 |
An xml
document with the indicated server capabilities.
1 2 3 4 5 6 7 8 | ## Not run:
exp1 = CSW_GetCapabilities(sections = 'OperationsMetadata',
typeNames = 'csw:Record')
# CSW_display_node(exp1)
exp2 = CSW_GetCapabilities(sections = 'OperationsMetadata',
typeNames = 'gmd:MD_Metadata')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.