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


IDensityOp.LineDensity Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > SpatialAnalyst > ESRI.ArcGIS.SpatialAnalyst > Interfaces > ID > IDensityOp Interface > IDensityOp.LineDensity Method
ArcGIS Developer Help

IDensityOp.LineDensity Method

Calculates the simple density of lines in a radius around each output cell. Density is measured as length of lines per unit area.

[Visual Basic .NET]
Public Function LineDensity ( _
    ByVal lineFeatures As IGeoDataset, _
    [ByRef radiusDistance As Object], _
    [ByRef scaleFactor As Object] _
) As IGeoDataset
[C#]
public IGeoDataset LineDensity (
    IGeoDataset lineFeatures,
    ref object radiusDistance,
    ref object scaleFactor
);
[C++]
HRESULT LineDensity(
  IGeoDataset* lineFeatures,
  Variant* radiusDistance,
  Variant* scaleFactor
);
[C++]
Parameters
lineFeatures [in]

lineFeatures is a parameter of type IGeoDataset* radiusDistance [in, optional]
radiusDistance is a parameter of type VARIANT* scaleFactor [in, optional]
scaleFactor is a parameter of type VARIANT*

Product Availability

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

Remarks

lineFeatures

Input polyline featureclass, featureclass descriptor or featureDataset used to calculate the density of lines features around each output cell.

For density functions, SPOT is the default field used when no field has been specified.  If a SPOT field does not exist, then no field will be used, and each feature will be counted only once in the calculation. This is similar to specifying a keyword for the field of "NONE".  If a field other than NONE is used, the length of the line is considered to be its actual length times the value of the field for that line.  To specify the field use the FeatureClassDescriptor object.

[radiusDistance]

A circular neighborhood with the given radius. The default radius is calculated so that all cells in the output grid have at least one point within the neighborhood.

[scaleFactor]

Used to convert the map units of the input dataset to different units. The default value is 1, which calculates density in units of number of points per one square map unit. Effectively, output raster values are multiplied by the square of this factor.

 

See Also

IDensityOp Interface