Raster Statistics Per Feature

ERDAS IMAGINE Help

HGD_Variant
16.5
HGD_Product
ERDAS IMAGINE
HGD_Portfolio_Suite
Producer

Category: Features

Default

Show All Ports

Raster_statistics_per_feature_default

Description

This operator computes statistics on pixels of the input raster that are inside a feature. The computed statistical values are added as attributes to the feature stream. By default, mean is computed. If not needed, CalcMeanport has to be set to False.

The attribute names for the output feature stream are constructed based on AttributeNamePrefix, AttributeBasename for the statistics being computed and the number of bands of the raster. If the constructed attribute name matches with the name of an existing field and the field type is appropriate, the existing field will be overwritten. otherwise, the operation will fail.

Limitations

The operator only works for AreaGeometry field types. An error is generated otherwise.

Connections

Name

Objects Supported

Description

Shown by Default

Required

Default Behavior or Behavior if not Required

FeaturesIn

IMAGINE.Features

Specify the features whose primary geometry field will be used to compute the statistics for each feature.

checkmark_gray

checkmark_gray

Raster

IMAGINE.Raster

Input raster that will be used to compute statistics.

checkmark_gray

checkmark_gray

CalcMean

IMAGINE.Bool

Flag to compute mean.

True

MeanAttributeBasename

IMAGINE.String

Attribute name for the mean pixel value within the feature.

mean

CalcMax

IMAGINE.Bool

Flag to compute maximum

False

MaxAttributeBasename

IMAGINE.String

Attribute name for the maximum pixel value within the feature.

Max

CalcMin

IMAGINE.Bool

Flag to compute minimum.

False

MinAttributeBasename

IMAGINE.String

Attribute name for the minimum pixel value within the feature.

Min

CalcMedian

IMAGINE.Bool

Flag to compute median.

False

MedianAttributeBasename

IMAGINE.String

Attribute name for the median pixel value within the feature.

Median

CalcMode

IMAGINE.Bool

Flag to compute mode.

False

ModeAttributeBasename

IMAGINE.String

Attribute name for the mode for the pixel values within the feature.

Mode

CalcStdDev

IMAGINE.Bool

Flag to compute standard deviation

False

StdDevAttributeBasename

IMAGINE.String

Attribute name for the standard deviation of the pixel values within the feature.

StdDev

CalcDiversity

IMAGINE.Bool

Flag to compute diversity

False

DiversityAttributeBasename

IMAGINE.String

Attribute name for the diveristy of the pixel values within the feature.

Diversity

CalcMajority

IMAGINE.Bool

Flag to compute majority

False

MajorityAttributeBasename

IMAGINE.String

Attribute name for the majority pixel value within the feature.

Majority

CalcMinority

IMAGINE.Bool

Flag to compute minority

False

MinorityAttributeBasename

IMAGINE.String

Attribute name for the minority pixel value within the feature.

Minority

CalcSum

IMAGINE.Bool

Flag to compute sum

False

SumAttributeBasename

IMAGINE.String

Attribute name for the sum of the pixel values within the feature.

Sum

CalcCount

IMAGINE.Bool

Flag to compute count

False

CountAttributeBasename

IMAGINE.String

Attribute name for the number of pixels within the feature.

Count

AttributeNamePrefix

IMAGINE.String

Prefix for attribute names

ZR_

FeaturesOut

IMAGINE.Features

The output features. These are the input features updated to include the computed zonal statistics as additional attributes.

checkmark_gray