I need to merge two adjacent edge in a network.
In particular, i need to merge the geometries and put the new in the oldest
one, deleting the newest (I have modification data).
Code I using is:
IPolyline6 new_shape = polyline1.ShapeCopy as IPolyline6;
ITopologicalOperator6 topOp = new_shape as
IPolyline6 poly2 = polyline2.ShapeCopy as IPolyline6;
IGeometry finalGeom = topOp.UnionEx(poly2,false);
topOp = finalGeom as ITopologicalOperator6;
finalFeature.Shape = finalGeom;
It throw the exception:
"there is no point geometry associated with the feature element"
Where is the mistake?