Convert rangeMapper
to sf
.
rmap_to_sf(con, src, pattern) # S4 method for rmapConnection,missing,missing rmap_to_sf(con) # S4 method for rmapConnection,character,missing rmap_to_sf(con, src) # S4 method for rmapConnection,missing,character rmap_to_sf(con, pattern)
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. |
an sf data.frame.
rmap_to_sf()
retrieves one of the project's system tables:
wkt_canvas
, wkt_ranges
or bbox
or one or several map
-s tables.
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)