A nested spatial partition: a flat table of weighted leaf regions ("atoms") plus the ordered hierarchy of geoframes that groups them.
Usage
Geoscale(leaftable, geoframes, members, geometry = NULL, meta = list())Arguments
- leaftable
data.framewith a uniqueregionkey column, one column per geoframe ingeoframes, and one or more numeric weight columns.- geoframes
Ordered character vector of geoframe names (coarsest first); each name must appear as a column in
leaftable.- members
Named list;
members[[lvl]]is the full ordered set of codes present at geoframelvl. Must equal the non-NAvalues ofleaftable[[lvl]]as a set.- geometry
Optional
sfc(orNULL) with one geometry per row ofleaftable, in the same order.- meta
Named list of attributes (
name,desc,weights,default_weight,crs,source,labels).
Details
Construct with geoscale_from_leaftable() (the general escape hatch),
geoscale_build() (from a parent-child mapping), or
geoscale_from_provider() (from a data source such as Natural Earth).
