Let's take a look at the itopologicaloperator Member: From the help documentation:
Brief Introduction to the Chinese translation of each member:
1. Boundary: boundary. Obtain the boundary of a geometry;
Usage:
ITopologicalOperator pTopologBoundary = pGeo as ITopologicalOperator; IGeometry pGeometry = pTopologBoundary.Boundary;
(1) The polygon boundary obtains the polyline
(2) The polyline obtains the ipiontcolletion point set. (3) The point has no boundaries.
2. buffer, buffer, which can be used as a buffer for points, lines, and surfaces. The parameter is the size of the buffer range. A buffer greater than 0 is used as an external buffer, and a buffer smaller than 0 is used as an inner buffer;
Usage:
ITopologicalOperator pTopologBoundary = pGeo as ITopologicalOperator;IGeometry pGeometry = pTopologBoundary.Buffer(2);
3. clip: overlay and crop the image after the split layer from the source layer. The parameter type is ienvelope.
Usage:
ITopologicalOperator pTopologBoundary = pSourceGeometry as ITopologicalOperator;pTopologBoundary.Clip(pClipGeometry.Envelope as IEnvelope);
4. Cut, split, and divide a geometry into two parts.
Usage:
IGeometry pSourceGeometry = null, pClipGeometry = null;IGeometry pLeftGeo,pRightGo;IPolyline pPolyline=null;ITopologicalOperator pTopologBoundary = pSourceGeometry as ITopologicalOperator;pTopologBoundary.Cut(pPolyline, out pLeftGeo, out pRightGo);
5. difference. Differences: preserve the different parts of the source layer and the operation layer.
Usage:
IGeometry pSourceGeometry = null, pDifGeometry = null;ITopologicalOperator pTopologBoundary = pSourceGeometry as ITopologicalOperator;IGeometry pResultGeo= pTopologBoundary.Difference(pDifGeometry);
6. intersect: intersection. Obtain the intersection of the two layers and return the igeometry object.
Usage:
ITopologicalOperator pTopological = (pSubFeature.Shape) as ITopologicalOperator;IGeometry pGeoIntersect=pTopological.Intersect(pFeature.Shape, esriGeometryDimension.esriGeometry2Dimension);
7. issimple: whether the topology is closed
Usage:
ITopologicalOperator pTopologBoundary = pSourceGeometry as ITopologicalOperator;bool bIsSimple = pTopologBoundary.IsSimple;
8. Simplify: closes a geometry topology;
Usage:
ITopologicalOperator pTopologBoundary = pSourceGeometry as ITopologicalOperator;pTopologBoundary.Simplify();
9. Union to combine Geometry
Usage:
<pre name="code" class="csharp">IGeometry pSourceGeometry = null, pUnionGeometry = null;ITopologicalOperator pTopologBoundary = pSourceGeometry as ITopologicalOperator;IGeometry pUnionGeo=pTopologBoundary.Union(pUnionGeometry);
Topology Analysis of arcengine Based on itopologicaloperator