GeoNodeManager | R Documentation |
GeoNode REST API Manager
GeoNode REST API Manager
R6Class
object.
Object of R6Class
with methods for communication with
the REST API of a GeoNode instance.
verbose.info
if geonode4R logs have to be printed
verbose.debug
if curl logs have to be printed
loggerType
the type of logger
url
the Base url of GeoNode
logger()
Prints a log message
GeoNodeManager$logger(type, text)
type
type of log, "INFO", "WARN", "ERROR"
text
text
INFO()
Prints an INFO log message
GeoNodeManager$INFO(text)
text
text
WARN()
Prints an WARN log message
GeoNodeManager$WARN(text)
text
text
ERROR()
Prints an ERROR log message
GeoNodeManager$ERROR(text)
text
text
new()
This method is used to instantiate a GeoNodeManager with the url
of the
GeoNode and credentials to authenticate (user
/pwd
).
By default, the logger
argument will be set to NULL
(no logger).
This argument accepts two possible values: INFO
: to print only geosapi logs,
DEBUG
: to print geosapi and CURL logs.
The keyring_backend
can be set to use a different backend for storing
the GeoNode user password with keyring (Default value is 'env').
GeoNodeManager$new(url, user, pwd, logger = NULL, keyring_backend = "env")
url
url
user
user
pwd
pwd
logger
logger
keyring_backend
keyring backend. Default is 'env'
getUrl()
Get URL
GeoNodeManager$getUrl()
the Geoserver URL
connect()
Connects to geoServer
GeoNodeManager$connect()
TRUE
if connected, raises an error otherwise
getExecutionStatus()
Get execution status
GeoNodeManager$getExecutionStatus(execution_id)
execution_id
the execution id
the status of execution
getCategories()
Get categories
GeoNodeManager$getCategories(raw = FALSE)
raw
Controls the output. Default will return an object of class data.frame.
an object of class list
getCategory()
Get category
GeoNodeManager$getCategory(id, raw = FALSE)
id
category id
raw
Controls the output. Default will return an object of class data.frame.
an object of class list
getResourceByUUID()
Get resource by UUID
GeoNodeManager$getResourceByUUID(uuid)
uuid
resource uuid (or semantic id if used in place of uuid)
an object of class list
getResourceByAlternate()
Get resource by Alternate
GeoNodeManager$getResourceByAlternate(alternate)
alternate
resource alternate
an object of class list
getResource()
Get resource
GeoNodeManager$getResource(id)
id
resource id
an object of class list
deleteResource()
Deletes a resource
GeoNodeManager$deleteResource(id)
id
resource (either a dataset or document) id
TRUE
if deleted, FALSE
otherwise
upload()
Uploads resource files
GeoNodeManager$upload(files)
files
files
an object of class list giving the upload status
uploadMetadata()
Uploads ISO 19115 dataset metadata
GeoNodeManager$uploadMetadata(id, file)
id
dataset id
file
a metadata XML file following ISO 19115 specification
an object
getDataset()
Get dataset standardized metadata
GeoNodeManager$getDataset(id)
id
dataset id
an object of class list
clone()
The objects of this class are cloneable with this method.
GeoNodeManager$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
## Not run:
GeoNodeManager$new("http://localhost:8080", "user", "password")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.