Following code snippets shows the conversion/replacement code I have for migrated code. ArcObjects code returns false and Pro SDK returns true. Am I missing something here ?
CType(lineFeature.Shape, ESRI.ArcGIS.Geometry.ITopologicalOperator2).IsKnownSimple_2 = False
If Not CType(lineFeature.Shape, ESRI.ArcGIS.Geometry.ITopologicalOperator2).IsSimple Then
End If
GeometryEngine.Instance.SimplifyAsFeature(shape);
if (!GeometryEngine.Instance.IsSimpleAsFeature(shape))
{
}
Sample geometry:
X1 556998.34520000033
Y1 4220274.6404
X2 556921.31929999962
Y2 4220191.6895
X3 556998.34520000033
Y3 4220274.6404