R/package.R

#' @useDynLib spatialdatatable
#' @importFrom Rcpp sourceCpp
NULL

#' @import data.table
#' @import sf
NULL

#' spatial.data.table
#'
#' A \code{spatial.data.table} is an extension of \code{data.table}. All the usual
#' operations on a \code{data.table} should still work on a \code{spatial.data.table}.
#'
#'
#'
"_PACKAGE"


## TODO:
## - include a 'sequence' column to show the points in sequence
## - need an 'id' for polygons with holes, and non-simple (i.e., a polygon defined by two regions)
## - decode_pl() to accept a vector of polylines
## - methods for polylines
## -- length
##
## - if 'SimplifyPolyline' is called on a 'sdt_polyline' column, return a 'spdt_polyline column
##
## - re-building the package prevents := from working
##
## - specify all arguments should be columns of the data.table?
## --- exemplified by dtDestination, the 'distance' value must be
## --- a column / vector of values, otherwise if only one value is
## --- supplied, it's only treated as one value and only used
## --- on the first row, thre rest of the rows will assume
## --- distance == 0
## -- or, if a single value is supplied, assign it to ALL ROWS
SymbolixAU/spatialdatatable documentation built on May 6, 2019, 11:20 a.m.