Description Usage Arguments Value Remarks Examples
The CSW_GetRecords
function retrieves catalog entries from the CSW server (unless resultType='validate'
is specified). The default output format is a data.frame
with as alternatives an xml_document
or list
(see output
). The fields of the data.frame
are determined by the ElementSetName
argument that results in few (brief
), more (summary
) and most (full
) fields. The relation between typeNames
, outputSchema
and namespace
is not clear to me, but it seems that the argument values must correspond: taking the first option for typeNames
one should also take the first one for outputSchema
and namespace
. Also see remarks.
The default constraint language and its version are CQL_TEXT
and 1.1.0
but can be overwritten by arguments of this function. See the vignette for examples and references for the query language.
1 2 3 4 5 6 7 8 9 10 11 12 | CSW_GetRecords(constraint = "", constraintLanguage = "CQL_TEXT",
constraint_language_version = "1.1.0", resultType = c("results",
"validate"), 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"), maxRecords = "",
startPosition = "", output = c("table", "list", "xml"),
version = CSW_get_version(), baseurl = CSW_get_url(),
verbose = c("N", "F", "Y"))
|
constraint |
Character vector with a constraint written with |
constraintLanguage |
Character vector indicating in which language the constraint is written. Default |
constraint_language_version |
Character vector indicating the version of the constraint language. Default |
resultType |
Character vector with one of |
typeNames |
Character vector with one (or both?) of |
outputSchema |
Character vector with one (or more?) of |
ElementSetName |
Character vector with one of |
namespace |
Character vector with one or both of |
maxRecords |
Integer indicating the number of records that will be read from the server. Default is determined by the CSW server (for the default |
startPosition |
Integer indicating the number of the first record that will be returned. The default is 1. To read e.g. the records of a constraint with 150 hits one can issue two requests: the first one with |
output |
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 record description in the indicated layout.
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 (?)
1 2 3 4 | ## Not run:
exp1 = CSW_GetRecords(constraint="AnyText LIKE 'duin%'" )
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.