CSW_GetRecordById: Get catalog info for entry with given id

Description Usage Arguments Value Remarks See Also Examples

View source: R/get_cat_data.R

Description

The only difference with CSW_GetRecords is that the constraint and a 'resultsarguments of CSW_GetRecords are replace by theid' argument of CSW_GetRecordById. Therefore see CSW_GetRecords for details.

Usage

1
2
3
4
5
6
7
8
9
CSW_GetRecordById(id = "", typeNames = c("csw:Record",
  "gmd:MD_Metadata", "gfc:FC_FeatureCatalogue", "dcat"),
  outputSchema = c("http://www.opengis.net/cat/csw/2.0.2",
  "http://www.isotc211.org/2005/gmd", "http://www.isotc211.org/2005/gfc",
  "http://www.w3.org/ns/dcat#"), ElementSetName = c("summary", "full",
  "brief"), namespace = c("csw:http://www.opengis.net/cat/csw/2.0.2",
  "gmd:http://www.isotc211.org/2005/gmd"), output = c("table", "list",
  "xml"), version = CSW_get_version(), baseurl = CSW_get_url(),
  verbose = c("N", "F", "Y"))

Arguments

id

Character vector with the Identifier of the catalog entry that has to be retrieved.

typeNames

Character vector with one (or both?) of csw:Record and gmd:MD_Metadata. Also gfc:FC_FeatureCatalogue and dcat can be used.

outputSchema

Character vector with one (or more?) of http://www.opengis.net/cat/csw/2.0.2 , http://www.isotc211.org/2005/gmd, http://www.isotc211.org/2005/gfc and http://www.w3.org/ns/dcat#. The first two work and the first of them give a more table like presentation.

ElementSetName

Character vector with one of summary, full and brief indicating how much data is presented. Default summary.

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.

output

Character vector with one of table, list and xml. With table (the default) the results will be put in a (one row) data.frame. With list the output is conforming to that of CSW_GetRecords when list is requested (the number of retrieved (here 1) and total records (here 1) are gathered in a list). With xml the retrieved xml_document is passed through without conversion.

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

We have tried various combinations of typeNames (first two only), outputSchema (same) and namespace. These have only two possible outcomes and depend only on outputSchema: the csw output is more table like and the gmd output is more verbose (?)

See Also

CSW_GetRecords

Examples

1
2
3
4
5
6
7
## Not run: 
 exp1  = CSW_GetRecordById(
          id = "ecb96a41-19da-4a57-b570-05a1ee5743ca",
          ElementSetName = "brief",
          output = "xml")

## End(Not run)

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