Polygons: sf not null
Polygons: sf not null
Super classes
epi.geosampler::Base -> epi.geosampler::ModShiny -> epi.geosampler::ApplicationModule -> UserData
Methods
Inherited methods
Initialize Application class for shiny app
Returns
A new Application object
Update Cells
This method updates the cells of a given set of polygons.
Method updateCells()
Usage
UserData$updateCells(polygons_sf)
Arguments
polygons_sf
A sf object containing the polygons to update.
Returns
The updated polygons_sf object with the cells information added.
Method drawNewFeature()
Usage
UserData$drawNewFeature(map, feature)
Method getChoicesStatus()
Usage
UserData$getChoicesStatus()
Method getChoicesPriority()
Usage
UserData$getChoicesPriority()
Method getTileStatus()
Usage
UserData$getTileStatus(polygon = NULL)
Method displayGridIdentifyStatus()
Usage
UserData$displayGridIdentifyStatus(map, token, force = FALSE, ...)
Method displayGuidePolygon()
Usage
UserData$displayGuidePolygon(map)
Method displayGuidePoint()
Usage
UserData$displayGuidePoint(map)
Method invertSelection()
Usage
UserData$invertSelection(map)
Usage
UserData$load(project_active = NULL, force = FALSE)
Method cutPolygons()
Usage
UserData$cutPolygons(map, line)
Method makeValidPolygons()
Usage
UserData$makeValidPolygons(sf, id_max = 0L)
Method displayPolygons()
Usage
UserData$displayPolygons(
map,
only_selected = FALSE,
sample = FALSE,
cells = FALSE,
plan = FALSE,
fit = TRUE,
status = TRUE,
sf = NULL,
...
)
Method addPolygon()
Usage
UserData$addPolygon(map, polygon)
Method deletePolygon()
Usage
UserData$deletePolygon(map, id)
Method editPolygon()
Usage
UserData$editPolygon(map, feature)
Method togglePolygonSelected()
Usage
UserData$togglePolygonSelected(map, id)
Method togglePolygonFocused()
Usage
UserData$togglePolygonFocused(map, id, group, step)
Method setStylePolygonFocused()
Usage
UserData$setStylePolygonFocused(map, focused, group = "polygons")
Method addProject()
Usage
UserData$addProject(status, priority, name, description)
Method projectClone()
Usage
UserData$projectClone(status, priority, name, description)
Method projectEdit()
Usage
UserData$projectEdit(status, priority, description)
Method projectSelect()
Usage
UserData$projectSelect(name = "default")
Method addRoof()
Usage
UserData$addRoof(map, lng, lat, ...)
Method removeRoof()
Usage
UserData$removeRoof(map, roof_id, ...)
Method roofsAddOSM()
Usage
UserData$roofsAddOSM(map, progress, ...)
Method addRoofs()
Usage
UserData$addRoofs(map, roofs, ...)
Method addSample()
Usage
UserData$addSample(map = NULL)
Method addSamples()
Usage
UserData$addSamples(map, sf, ...)
Method displayRoofs()
Usage
UserData$displayRoofs(map, roofs, tile_x = roofs$x[1L], tile_y = roofs$y[1L])
Method generateSamples()
Usage
UserData$generateSamples(
map = NULL,
type = "SP_QDR",
method = "random",
count = 35L,
size = 25L,
polygon_idx = NULL,
samples = NULL
)
Usage
UserData$save(
delimit = FALSE,
identify = FALSE,
sample = FALSE,
result = FALSE,
project = FALSE
)
Method clear()
Usage
UserData$clear(
delimit = FALSE,
identify = FALSE,
sample = FALSE,
result = FALSE
)
Method rollback()
Usage
UserData$rollback(
delimit = FALSE,
identify = FALSE,
sample = FALSE,
result = FALSE
)
Method readFromCache()
Usage
UserData$readFromCache(file)
Method saveToCache()
Usage
UserData$saveToCache(rds, file)
Method sampleAppend()
Usage
UserData$sampleAppend(map = NULL, polygon_idx = NULL)
Method calculateSample()
Usage
UserData$calculateSample(progress = NULL)
Method displaySample()
Usage
UserData$displaySample(
map,
polygon_idx,
samples_idx = NULL,
plan = FALSE,
fit = FALSE,
tooltip = FALSE,
status = TRUE,
...
)
Method sampleDisplayToTable()
Usage
UserData$sampleDisplayToTable(
table_id,
polygon_idx,
samples_idx = NULL,
plan = FALSE,
tooltip = FALSE,
...
)
Method sampleExportFilename()
Usage
UserData$sampleExportFilename(extension)
Method sampleExportToDoc()
Usage
UserData$sampleExportToDoc(file, open = TRUE, polygon_idx = NULL)
Method sampleExportToDocEach()
Usage
UserData$sampleExportToDocEach(
file,
open = TRUE,
polygon_idx = NULL,
samples_idxs = NULL
)
Method sampleQuadratEdit()
Usage
UserData$sampleQuadratEdit(map, id, ...)
Method sampleQuadratPost()
Usage
UserData$sampleQuadratPost(map, feature)
Method sampleLoadTable()
Usage
UserData$sampleLoadTable(tbl_id)
Method sampleToggleSelect()
Usage
UserData$sampleToggleSelect(map, sample)
Method samplesSetValueFromTable()
Usage
UserData$samplesSetValueFromTable(map, recs, vars, values)
Method samplesSetValueFromMap()
Usage
UserData$samplesSetValueFromMap(table_id, id, var, value)
Method addCell()
Usage
UserData$addCell(map, token, cell = NULL, inverse = FALSE, toggle = TRUE)
Method searchSwipeTile()
Usage
UserData$searchSwipeTile(
map,
direction,
map_size,
token,
mapped = FALSE,
valid = FALSE,
invalid = FALSE,
lat = NULL,
lon = NULL
)
Method invalidateGrid()
Usage
UserData$invalidateGrid()
Method clone()
The objects of this class are cloneable with this method.
Usage
UserData$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.