CSW_DescribeRecord: Get Description of CSW Records

Description Usage Arguments Value Remarks Examples

View source: R/get_cat_data.R

Description

This function gives a description of the catalog records in the form of an xml document. With typeName csw:Record the description follows a table format and that is why I like this format more than the one you get with typeName gmd:MD_Metadata. It is possible to get both formats in one xml document as shown in example exp12.

Usage

1
2
3
4
5
6
7
8
CSW_DescribeRecord(typeName = c("csw:Record", "gmd:MD_Metadata",
  "gmi:MI_Metadata"), typeNames = c("csw:Record", "gmd:MD_Metadata",
  "gmi:MI_Metadata"),
  namespace = c("csw:http://www.opengis.net/cat/csw/2.0.2",
  "gmd:http://www.isotc211.org/2005/gmd",
  "gmi:http://www.isotc211.org/2005/gmi"),
  outputFormat = "application/xml", version = CSW_get_version(),
  baseurl = CSW_get_url(), verbose = c("N", "F", "Y"))

Arguments

typeName

Character vector with one or both of csw:Record and gmd:MD_Metadata. But see remarks.

typeNames

alternative for typeName.

namespace

Character vector with one or both of csw:http://www.opengis.net/cat/csw/2.0.2 and gmd:http://www.isotc211.org/2005/gmd. See Remarks for the relation between typeName and namespace.

outputFormat

Character vector. Only application/xml is apparently (?) supported by CSW

version

Character vector with CSW version. Default is 2.0.2 but this can be changed for the remainder of the session with CSW_set_version .

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 CSW_set_url .

verbose

Character N, F or Y. When F the full generated and encoded url will be displayed, when Y the variable part of the url (without baseurl, service indication CSW and version) will be displayed in decoded form and when N (default) nothing of the generated url will be displayed.

Value

An xml document with the record description in the indicated layout.

Remarks

typeName gfc:FC_FeatureCatalogue and dcat were also mentioned as possible values but can not be combined with the two namespace options that are given here. Also found was the gmi analog for gmd but for the default catalog no results were delivered. Moreover the typeName and namespace must match: the first typeName with the first namespace and the same for the second one.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
exp1  = CSW_DescribeRecord()
exp2  = CSW_DescribeRecord(typeName = 'gmd:MD_Metadata',
       namespace = 'gmd:http://www.isotc211.org/2005/gmd')
exp12 = CSW_DescribeRecord(
    typeName =
        c('csw:Record',	'gmd:MD_Metadata') ,
    namespace = c(
        'csw:http://www.opengis.net/cat/csw/2.0.2',
        'gmd:http://www.isotc211.org/2005/gmd') )

## End(Not run)

HanOostdijk/CSW documentation built on May 29, 2019, 1:39 p.m.