AggregateField class final
Defines a field or statistical ArcadeExpression for summarizing aggregated data from an AggregationFeatureReduction.
Feature reduction uses statistical methods to aggregate geoelements into logical groups based on their location. Attribute values for each group (AggregateGeoElement) can be summarized for any numeric field using a specified AggregateStatisticType, such as the average, maximum, or sum. A common workflow is to summarize aggregated groups with the number of geoelements they represent.
- Implemented types
Constructors
- AggregateField.withArcadeExpression({required String name, required ArcadeExpression statisticExpression, required AggregateStatisticType statisticType})
-
Creates an AggregateField object.
factory
- AggregateField.withFieldName({required String name, required String statisticFieldName, required AggregateStatisticType statisticType})
-
Creates an AggregateField object.
factory
Properties
- alias ↔ String
-
A display name for the field that appears in a Popup, label, and other
UI elements.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- name ↔ String
-
A name that uniquely identifies the aggregate field within the
AggregationFeatureReduction.aggregateFields collection. Clusters will
not draw correctly if AggregateField.name is empty or does not match the
field name used by AggregationFeatureReduction.renderer.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statisticExpression ↔ ArcadeExpression?
-
An Arcade expression that must evaluate to either a string or a number.
getter/setter pair
- statisticFieldName ↔ String
-
An attribute name from the source dataset that contains numeric values to
summarize.
getter/setter pair
- statisticType ↔ AggregateStatisticType
-
Defines the type of statistic for summarizing values returned from
AggregateField.statisticFieldName or
AggregateField.statisticExpression.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited