rmap_to_sf {rangeMapper} | R Documentation |
Get sf
data.frame-s.
Description
Convert rangeMapper
to sf
.
Usage
rmap_to_sf(con, src, pattern)
## S4 method for signature 'rmapConnection,missing,missing'
rmap_to_sf(con)
## S4 method for signature 'rmapConnection,character,missing'
rmap_to_sf(con, src)
## S4 method for signature 'rmapConnection,missing,character'
rmap_to_sf(con, pattern)
Arguments
con |
a rangeMapper connection made with |
src |
the name of the source table. If missing all |
pattern |
a string that identifies several map names. It can be a regular expression. |
Details
rmap_to_sf()
retrieves one of the project's system tables:
wkt_canvas
, wkt_ranges
or bbox
or one or several map
-s tables.
Value
an sf data.frame.
Examples
con = rmap_connect()
wrens = read_wrens()
rmap_add_ranges(con, x = wrens, ID = 'sci_name')
rmap_prepare(con, 'hex', cellsize = 500)
rmap_save_map(con) # default is a species_richness map.
rmap_save_subset(con, dst = 'ss1', species_richness = 'species_richness > 5')
rmap_save_map(con, subset = 'ss1', dst = 'species_richness_min5')
x = rmap_to_sf(con)
x = rmap_to_sf(con, 'species_richness_min5')
dbDisconnect(con)
[Package rangeMapper version 2.0.3 Index]