CSW_GetRecordsAll: Get catalog info for all records satisfying constraint

Description Usage Arguments Value See Also Examples

View source: R/get_cat_data.R

Description

CSW_GetRecordsAll retrieves all records that satisfy a constraint by looping over CSW_GetRecords until all records are handled

Usage

1
2
3
4
5
CSW_GetRecordsAll(constraint, typeNames = c("csw:Record",
  "gfc:FC_FeatureCatalogue", "dcat", "gmd:MD_Metadata"),
  ElementSetName = c("summary", "full", "brief"), output = c("table",
  "list"), batchsize = 100, version = "2.0.2", verbose = F,
  baseurl = CSW_get_url())

Arguments

constraint

Character vector with a constraint written with constraintLanguage=CQL_TEXT and constraint_language_version==1.1.0.

typeNames

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

ElementSetName

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

output

Character vector with one of table and list. With table (the default) the results will be put in a data.frame. With list this table is placed in a list with the number of retrieved and total number of records satisfying the constraint.

batchsize

Integer with the number of records that will be retrieved in each iteration of the retrieval loop. Default 100.

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 .

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.

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 .

Value

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

See Also

CSW_GetRecords

Examples

1
2
3
4
## Not run: 
 exp1 = CSW_GetRecordsAll(constraint="AnyText LIKE 'duin%'" )

## End(Not run)

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