This document is archived and information here might be outdated. Recommended version. |
Checks if the embedded object can be replaced by the new shape without creating spatial conflict.
[Visual Basic .NET] Public Function CanReplace ( _ ByVal pShape As IGeometry, _ ByVal pSeed As ITinFeatureSeed, _ ByVal spacing As Double _ ) As Boolean
[C#] public bool CanReplace ( IGeometry pShape, ITinFeatureSeed pSeed, double spacing );
[C++]
HRESULT CanReplace(
IGeometry* pShape,
ITinFeatureSeed* pSeed,
double spacing
);
[C++]
Parameters pShape [in]
pShape is a parameter of type IGeometry* pSeed [in]
pSeed is a parameter of type ITinFeatureSeed* spacing [in]
spacing is a parameter of type double
Returns TRUE if the embedded TIN feature represented by the passed seed can be replaced with the proposed shape without creating a spatial conflict between it and another TIN feature.
The shape can be a point, polyline, or polygon.
The seed is a TIN node, edge, or triangle that is used to reference an existing TIN feature.
The spacing is used as a search distance around the proposed shape. If another TIN feature is within this distance a conflict exists.
See also ITinFeatureEdit::ElementsIgnoredInConflictTest.