OGCAbstractObject
OGCAbstractObject
Format
R6Class
object.
Value
Object of R6Class
for modelling an OGCAbstractObject
Public fields
verbose.info
logical
property to indicate whether INFO logs have to be displayedverbose.debug
logical
property to indicate whether DEBUG logs have to be displayedloggerType
logger type, either
NULL
, "INFO", or "DEBUG"wrap
internal property for XML encoding
element
element used for XML encoding
namespace
namespace used for XML encoding
defaults
default values to be used for XML encoding
attrs
attributes to be used for XML encoding
Methods
Method new()
Initializes an object extending OGCAbstractObject
Usage
OGCAbstractObject$new(
xml = NULL,
element = NULL,
namespacePrefix = NULL,
attrs = list(),
defaults = list(),
wrap = FALSE,
logger = NULL
)
Arguments
xml
object of class XMLInternalNode-class from XML
element
element name
namespacePrefix
namespace prefix for XML encoding
attrs
list of attributes
defaults
list of default values
wrap
whether XML element has to be wrapped during XML encoding
logger
logger
Method encode()
Encodes as XML. The addNS
.
Extra parameters related to geometa objects: geometa_validate
(TRUE by default) and geometa_inspire
(FALSE by default) can be used to perform ISO and INSPIRE validation respectively. In that case on object of class
geometa::INSPIREMetadataValidator
, with a proper user API key, should be specified as geometa_inspireValidator
argument.
Usage
OGCAbstractObject$encode(
addNS = TRUE,
geometa_validate = TRUE,
geometa_inspire = FALSE,
geometa_inspireValidator = NULL
)
Arguments
addNS
addNS controls the addition of XML namespaces
geometa_validate
Relates to geometa object ISO validation. Default is
TRUE
geometa_inspire
Relates to geometa object INSPIRE validation. Default is
FALSE
geometa_inspireValidator
Relates to geometa object INSPIRE validation. Default is
NULL
Returns
an object of class XMLInternalNode-class from XML
Method print()
Provides a custom print output (as tree) of the current class