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?
First of all it is helpful if you use the syntax highlighter on you code to make it easier for everyone else to read. Just go to the advanced editor > more > syntax highlighter. You can retrospectively edit your question and improve it by using the syntax highlighter.
Just an idea, try using ITopologicaloperator and not ITopologicaloperator6?