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


IHydrologyOp2.StreamToFeature Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > SpatialAnalyst > ESRI.ArcGIS.SpatialAnalyst > Interfaces > IH > IHydrologyOp2 Interface > IHydrologyOp2.StreamToFeature Method
ArcGIS Developer Help

IHydrologyOp2.StreamToFeature Method

Converts a raster representing a linear network to features representing the linear network.

[Visual Basic .NET]
Public Function StreamToFeature ( _
    ByVal streamRaster As IGeoDataset, _
    ByVal directionRaster As IGeoDataset, _
    ByVal performWeeding As Boolean _
) As IGeoDataset
[C#]
public IGeoDataset StreamToFeature (
    IGeoDataset streamRaster,
    IGeoDataset directionRaster,
    bool performWeeding
);
[C++]
HRESULT StreamToFeature(
  IGeoDataset* streamRaster,
  IGeoDataset* directionRaster,
  VARIANT_BOOL performWeeding
);
[C++]
Parameters
streamRaster [in]

streamRaster is a parameter of type IGeoDataset* directionRaster [in]
directionRaster is a parameter of type IGeoDataset* performWeeding [in]
performWeeding is a parameter of type bool

Product Availability

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

Remarks

streamRaster

An input Raster, RasterDataset, RasterBand, or RasterDescriptor representing a raster linear network.

directionRaster

An input Raster, RasterDataset, RasterBand, or RasterDescriptor showing the direction of flow out of each cell.

This can be created using the IHydrologyOp::FlowDirection method.

performWeeding

a Boolean specifying whether or not a weed tolerance will be used to generalize line features.

If FALSE, no weeding is done

If TRUE, the featureclass is weeded to reduce the number of vertices.


The WEED option uses the Douglas-Puecker algorithm.

 

See Also

IHydrologyOp2 Interface