RomPropertyTree | R Documentation |
Object for storing a property and all of its sub-properties.
Has standard methods for managing data and meta data. This object class will use a recursive query to navigate a graph style database (e.g. VA Hydro) to get the requested property and all first-, second-, etc. order proerpties below it.
Instance of type RomPropertyTree
hydrotools::RomDataGroup
-> RomPropertyTree
base_entity_type
kind of entity
pk_name
the name of this entity's pk column, always root_pid
prop_list
The raw property rows returned. This will contain all subproperties of the property requested upon initialization of this instance
mps
linked features
geom
feature geometry WKT
sql_select_from
Enhanced form of query overrides default SQL guess from hydrotools:::fn_guess_sql(). This will use a recurvsive query to get property and all subproperties
new()
RomPropertyTree$new(datasource = NULL, config, load_remote = FALSE)
datasource
RESTful repository object
config
list of attributes to set, see also: to_list() for format. These should contain identifying information about the requested property and will ultimatley be passed to RomDataGroup$new() and to RomDataSource$get()
load_remote
automatically query REST dataa source for matches?
object instance of RomPropertyTree, populated with details of requested property and all subproperties (in propvalues())
get_id()
RomPropertyTree$get_id()
get_id the unique id of this entity alias to remote pkid, subclassed as function
to_list()
RomPropertyTree$to_list()
list of object attributes suitable for input to new() and from_list() methods
from_list()
RomPropertyTree$from_list(config)
config
list of properties to set, see also: to_list() for format
NULL
save()
RomPropertyTree$save(push_remote = FALSE)
push_remote
update locally only or push to remote database
NULL
load_data()
RomPropertyTree$load_data(config, load_remote)
config
list of properties from RomDataGroup$new()
load_remote
automatically query remote data source for matches?
Nothing, but will set the properties on this instance of RomPropertyTree with appropriate variable definitions in prop_list() and propvalues() via self$datasource$set_prop()
clone()
The objects of this class are cloneable with this method.
RomPropertyTree$clone(deep = FALSE)
deep
Whether to make a deep clone.
NA
NA
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.