ArcGIS Developer Help  (GeoDatabase)    

IErrorFeatureContainer.ErrorFeatures Property

An enumeration of error features that match the passed in parameters.

[Visual Basic 6.0]
Property ErrorFeatures(
    ByVal SpatialReference As ISpatialReference, _
    ByVal Rule As ITopologyRule, _
    ByVal Extent As IEnvelope, _
    ByVal Errors As Boolean, _
    ByVal Exceptions As Boolean _
) As IEnumTopologyErrorFeature
[Visual Basic .NET]
Public Function get_ErrorFeatures ( _
    ByVal SpatialReference As ISpatialReference, _
    ByVal Rule As ITopologyRule, _
    ByVal Extent As IEnvelope, _
    ByVal Errors As Boolean, _
    ByVal Exceptions As Boolean _
) As IEnumTopologyErrorFeature
[C#]
public IEnumTopologyErrorFeature get_ErrorFeatures (
    ISpatialReference SpatialReference,
    ITopologyRule Rule,
    IEnvelope Extent,
    bool Errors,
    bool Exceptions
);
[Java]
public IEnumTopologyErrorFeature getErrorFeatures (
    ISpatialReference SpatialReference,
    ITopologyRule Rule,
    IEnvelope Extent,
    boolean Errors,
    boolean Exceptions
)
[C++]
HRESULT get_ErrorFeatures(
  ISpatialReference* SpatialReference,
  ITopologyRule* Rule,
  IEnvelope* Extent,
  VARIANT_BOOL Errors,
  VARIANT_BOOL Exceptions,
  IEnumTopologyErrorFeature** ErrorFeatures
);
[C++]

Parameters

SpatialReference [in]

  SpatialReference is a parameter of type ISpatialReference

Rule [in]

  Rule is a parameter of type ITopologyRule

Extent [in]

  Extent is a parameter of type IEnvelope

Errors [in]

  Errors is a parameter of type VARIANT_BOOL

Exceptions [in]

  Exceptions is a parameter of type VARIANT_BOOL

ErrorFeatures [out, retval]

  ErrorFeatures is a parameter of type IEnumTopologyErrorFeature

Product Availability

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

Errors Returned

ErrorFeatures will return an error if:

Remarks

ErrorFeatures will return an enumeration of error features belonging to the Topology Rule and within the Envelope that is supplied. The enumeration can contain Errors, errors marked as Exceptions or Both. To determine if a TopologyErrorFeature has been marked as an Exception, use the ITopologyErrorFeature::IsException property. If no error feature exists that matches the parameters, an empty enumeration is returned.

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

[Visual Basic 6.0]

For example:

'Assume we have a reference to a Topology called pTopology and a Topology Rule called pRule
Dim pErrorFeatCont As IErrorFeatureContainer
Dim pEnumTopoError As IEnumTopologyErrorFeature
Dim pTopoError As ITopologyErrorFeature
Dim pGeoDataset As IGeoDataset

Set pErrorFeatCont = pTopology
Set pGeoDataset = pTopology
Set pEnumTopoError = pErrorFeatCont.ErrorFeatures(pGeoDataset.SpatialReference, pRule, pGeoDataset.Extent, True, False)

Set pTopoError = pEnumTopoError.Next

See Also

IErrorFeatureContainer Interface

Example

IErrorFeatureContainer ErrorFeatures Example

 


Feedback Send feedback on this page