Skip to main content
Version: 7.0.0

overlapFeaturesGroupMetrics()

function overlapFeaturesGroupMetrics(options): Promise<Metric[]>;

Generate overlap group metrics using overlapFeatures operation

Parameters

ParameterTypeDescription
optionsobject-
options.featuresByClassRecord<string, Feature<Polygon, GeoJsonProperties>[]>features to overlap, keyed by class ID, use empty array if overlapArea operation
options.groupIdsstring[]Group identifiers - will generate group metric for each, even if result in zero value, so pre-filter if want to limit
options.metricIdstringCaller-provided metric ID
options.metricsobject[]The metrics to group
options.metricToGroup(sketchMetric) => stringFunction that given sketch metric and group name, returns true if sketch is in the group, otherwise false
options.onlyPresentGroups?booleanonly generate metrics for groups that sketches match to, rather than all
options.sketchSketch<Polygon> | SketchCollection<Polygon>Sketch - single or collection

Returns

Promise<Metric[]>