ArcGIS Developer Help  (GeoDatabase)    

IErrorFeatureContainer.ErrorFeature Property

An error feature with that matches the passed in parameters.

[Visual Basic 6.0]
Property ErrorFeature(
    ByVal SpatialReference As ISpatialReference, _
    ByVal errorType As esriTopologyRuleType, _
    ByVal GeometryType As esriGeometryType, _
    ByVal OriginClassID As Long, _
    ByVal OriginOID As Long, _
    ByVal DestinationClassID As Long, _
    ByVal DestinationOID As Long _
) As ITopologyErrorFeature
[Visual Basic .NET]
Public Function get_ErrorFeature ( _
    ByVal SpatialReference As ISpatialReference, _
    ByVal errorType As esriTopologyRuleType, _
    ByVal GeometryType As esriGeometryType, _
    ByVal OriginClassID As Integer, _
    ByVal OriginOID As Integer, _
    ByVal DestinationClassID As Integer, _
    ByVal DestinationOID As Integer _
) As ITopologyErrorFeature
[C#]
public ITopologyErrorFeature get_ErrorFeature (
    ISpatialReference SpatialReference,
    esriTopologyRuleType errorType,
    esriGeometryType GeometryType,
    int OriginClassID,
    int OriginOID,
    int DestinationClassID,
    int DestinationOID
);
[Java]
public ITopologyErrorFeature getErrorFeature (
    ISpatialReference SpatialReference,
    esriTopologyRuleType errorType,
    esriGeometryType GeometryType,
    Long OriginClassID,
    Long OriginOID,
    Long DestinationClassID,
    Long DestinationOID
)
[C++]
HRESULT get_ErrorFeature(
  ISpatialReference* SpatialReference,
  esriTopologyRuleType errorType,
  esriGeometryType GeometryType,
  long OriginClassID,
  long OriginOID,
  long DestinationClassID,
  long DestinationOID,
  ITopologyErrorFeature** ErrorFeature
);
[C++]

Parameters

SpatialReference [in]

  SpatialReference is a parameter of type ISpatialReference

errorType [in]

  errorType is a parameter of type esriTopologyRuleType

GeometryType [in]

  GeometryType is a parameter of type esriGeometryType

OriginClassID [in]

  OriginClassID is a parameter of type long

OriginOID [in]

  OriginOID is a parameter of type long

DestinationClassID [in]

  DestinationClassID is a parameter of type long

DestinationOID [in]

  DestinationOID is a parameter of type long

ErrorFeature [out, retval]

  ErrorFeature is a parameter of type ITopologyErrorFeature

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

ErrorFeature returns an ITopologyErrorFeature corresponding to the specified parameters. If no error feature exists that matches the parameters, ITopologyErrorFeature is nothing.

ErrorFeature requires the spatial reference of the Topology, this can be obtained from the IGeoDataset interface.

[Visual Basic 6.0]

For example:

Dim pErrorFeatCont As IErrorFeatureContainer
Dim pTopoError As ITopologyErrorFeature
Dim pGeoDataset As IGeoDataset

Set pErrorFeatCont = pTopology
Set pGeoDataset = pTopology
Set pTopoError = pErrorFeatCont.ErrorFeature(pGeoDataset.SpatialReference, esriTRTAreaNoGaps, esriGeometryPoint, 1, 1, 0, 0)

See Also

IErrorFeatureContainer Interface

 


Feedback Send feedback on this page