processRanges: Process ranges
Description
Each polygon range is overlayed on the canvas
and the results are saved to the active project file.Usage
processRanges(dir,con,metadata = TRUE, ...)
Arguments
con
An sqlite connection pointing to a valid rangeMapper
project.
metadata
A logical value. If TRUE ranges metadata: range area, median range centroid and range extents (min, max) are saved to metadata_ranges table
...
One or several user defined functions applied on each range. The output of these functions will be appended to metadata_ranges table
Warning
If thousands of range map polygons are processed, their geometries are complex and/or the canvas resolution is relatively high this step can be time consuming. However, once this step has been performed and the results saved to the database, the other operations are very fast.Details
The overlay is performed using overlay
. If the overlay returns no results (i.e. the polygon is smaller than a grid cell) then the centroid of the range will snap to the nearest point and only one grid cell will be returned for that range.References
Valcu, M., Dale, J. and Kempenaers, B. (in prep) rangeMapper: A platform for the study of macroecology of life history traits.