|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IConstructMerge
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.
Method Summary | |
---|---|
IGeometry |
mergeGeometries(IGeometry pOriginal,
IGeometry pEdit1,
IGeometry pEdit2)
Merges the representation from both versions of a geometry that has been modifed |
Method Detail |
---|
IGeometry mergeGeometries(IGeometry pOriginal, IGeometry pEdit1, IGeometry pEdit2) throws IOException, AutomationException
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 origGeom;
IGeometry geom1;
IGeometry geom2;
...*\/
IGeometry newGeom = pConstMrg.MergeGeometries(origGeom, geom1, geom2);
pOriginal
- A reference to a com.esri.arcgis.geometry.IGeometry (in)pEdit1
- A reference to a com.esri.arcgis.geometry.IGeometry (in)pEdit2
- A reference to a com.esri.arcgis.geometry.IGeometry (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |