ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

How Line Statistics works

Available with Spatial Analyst license.

  • Examples

The Line Statistics tool calculates a statistic on the values of the specified field for all lines in a circular neighborhood around each output raster cell.

The available statistics types are Mean, Majority, Maximum, Median, Minimum, Minority, Range, Variety and Length. Only the majority, minority, median and length statistics are weighted according to the length of the line.

Examples

The following examples illustrate how the weighting occurs for the median, majority, and minority statistics. In the example, there are 11 line segments in the neighborhood of a particular raster cell, with seven different values among them.

Weighting of line segments

Calculation of the median statistic

All the line segments in the neighborhood are placed end to end, and the value of the segment at the midpoint is chosen as the median.

Median statistic

Calculation of the majority and minority statistics

The value with the greatest total line length in the neighborhood is the majority value, and the value with the least total line length in the neighborhood is the minority value.

Determining Majority and Minority

Related topics

  • An overview of the Neighborhood toolset
  • Line Statistics

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2021 Esri. | Privacy | Legal