Topology Analysis of arcengine Based on itopologicaloperator

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.