Methods for doing a 3-way merge using two modified versions of a geometry along with the original.
This interface is new at ArcGIS 9.3.
Method for constructing the merged geometry from two separate edits of the same original geometry. Currently implemented for Polylines and Polygons.
|MergeGeometries||Merges the representation from both versions of a geometry that has been modifed|
Merges the representation from both versions of a geometry that has been modifed
Public Function MergeGeometries ( _ ByVal pOriginal As IGeometry, _ ByVal pEdit1 As IGeometry, _ ByVal pEdit2 As IGeometry _ ) As IGeometry
public IGeometry MergeGeometries ( IGeometry pOriginal, IGeometry pEdit1, IGeometry pEdit2 );
Constructs a new geometry by merging the two separate edits of the same original geometry. If any portion of the two edited regions or the edits themselves overlaps an error will be returned. Edited regions are the areas of the polygon or polyline where the edits took place in respect to the original geometry. Edits are the changes reflected in the two edited geometries.In polygons it is the area that the edit has been affected as well as the vertices and edges that participated in the edits that are important. Even if edits are on non-consecutive edges or non-consecutive vertices, if the area that one edit adds or subtracts from the polygon overlaps the second edit this will be viewed as a conflict and the geometries will not be merged.
The functionality is fully implemented for multipart features.
IConstructMerge pConstMrg = new GeometryEnvironmentClass() as IConstructMerge;
IGeometry newGeom = pConstMrg.MergeGeometries(origGeom, geom1, geom2);
Classes that implement IConstructMerge
|GeometryEnvironment||Provides a way of creating geometries from different inputs and setting/getting global variables for controlling behavior of geometry methods.|