RomFeature | R Documentation |
Object for storing a single feature with attribute and timeseries related
Has standard methods for managing data and meta data
feature class of type RomFeature
hydrotools::RomEntity
-> RomFeature
base_entity_type
kind of entity
pk_name
the name of this entity's pk column
name
of this entity
hydrocode
alpha code for this entity from original dataset
ftype
feature type
hydroid
unique ID (integer)
bundle
main content type, i.e. facility, well, intake, ...
fstatus
entity status
description
notes field
mps
linked features
geom
feature geometry WKT
nextdown_id
feature geometry WKT
parent_id
feature geometry WKT
sql_select_from
syntax to use to select via an odbc or other SQL based datasource
base_only
- how to export to list in case of complex multi table entity and ODBC
hydrotools::RomEntity$delete()
hydrotools::RomEntity$get_prop()
hydrotools::RomEntity$get_vardef()
hydrotools::RomEntity$handle_config()
hydrotools::RomEntity$insure_varid()
hydrotools::RomEntity$load_plugin()
hydrotools::RomEntity$propvalues()
hydrotools::RomEntity$save_field()
hydrotools::RomEntity$set_prop()
hydrotools::RomEntity$tsvalues()
new()
RomFeature$new(datasource = NULL, config, load_remote = FALSE)
datasource
RESTful repository object
config
list of attributes to set, see also: to_list() for format
load_remote
automatically query REST dataa source for matches?
object instance
get_id()
RomFeature$get_id()
get_id the unique id of this entity alias to remote pkid, subclassed as function
load_data()
RomFeature$load_data(config, load_remote)
config
load_remote
automatically query remote data source for matches?
the data from the remote connection
to_list()
RomFeature$to_list(base_only = FALSE)
base_only
include only base table columns (TRUE) or add fields (FALSE)
list of object attributes suitable for input to new() and from_list() methods
from_list()
RomFeature$from_list(config)
config
list of attributes to set, see also: to_list() for format
NULL
get_mps()
RomFeature$get_mps()
a dataframe of connected MPs
add_mp()
RomFeature$add_mp(thismp)
thismp
mp entity
add a connected MP. TBD
save()
RomFeature$save(push_remote = FALSE)
push_remote
update locally only or push to remote database
NULL
find_spatial_relations()
RomFeature$find_spatial_relations( target_entity = "dh_feature", inputs = list(bundle = NA, ftype = NA), operator = "st_contains", return_geoms = FALSE, query_remote = TRUE )
target_entity
what type to relate to (default dh_feature)
inputs
criteria to search for (list key = value format)
operator
what type of spatial function,default = st_contains Other options are 'overlaps' or 'st_within'
return_geoms
FALSE will return a smaller dataframe
query_remote
FALSE will search on in local datasource
dataframe of spatially related entities
clone()
The objects of this class are cloneable with this method.
RomFeature$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.