This document is archived and information here might be outdated.  Recommended version.


INeighborhoodOp.LineStatistics Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > SpatialAnalyst > ESRI.ArcGIS.SpatialAnalyst > Interfaces > IN > INeighborhoodOp Interface > INeighborhoodOp.LineStatistics Method
ArcGIS Developer Help

INeighborhoodOp.LineStatistics Method

Calculates a statistic on the attributes of lines in a circular neighborhood around each output cell.

[Visual Basic .NET]
Public Function LineStatistics ( _
    ByVal lineDataset As IGeoDataset, _
    ByVal Type As esriGeoAnalysisStatisticsEnum, _
    ByVal Radius As Double _
) As IGeoDataset
[C#]
public IGeoDataset LineStatistics (
    IGeoDataset lineDataset,
    esriGeoAnalysisStatisticsEnum Type,
    double Radius
);
[C++]
HRESULT LineStatistics(
  IGeoDataset* lineDataset,
  esriGeoAnalysisStatisticsEnum Type,
  double Radius
);
[C++]
Parameters
lineDataset [in]

lineDataset is a parameter of type IGeoDataset* Type [in]
Type is a parameter of type esriGeoAnalysisStatisticsEnum Radius [in]
Radius is a parameter of type double

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Spatial Analyst Extension.

Remarks

lineDataset

input FeatureClass or FeatureClassDescriptor containing line features

type

an esriGeoAnalysisStatisticsEnum indicating which statistic will be calculated for all lines in the neighborhood

Enumeration types are:

esriGeoAnalysisStatsMajority for the majority value, esriGeoAnalysisStatsMaximum for the maximum value, esriGeoAnalysisStatsMean for the mean, esriGeoAnalysisStatsMedian for the median, esriGeoAnalysisStatsMinimum for the minimum value, esriGeoAnalysisStatsMinority for the minority value, esriGeoAnalysisStatsRange for the range of values, esriGeoAnalysisStatsStd for the standard deviation, esriGeoAnalysisStatsSum for the sum of the values, or esriGeoAnalysisStatsVariety for the variety of the values.

radius

the radius of the circular neighborhood around each output grid cell, expressed in map units

A commonly used radius is 5 times the output cell size.

 

See Also

INeighborhoodOp Interface