当前位置:网站首页>[turn] judge the relationship between two geometries in ArcGIS
[turn] judge the relationship between two geometries in ArcGIS
2022-07-26 13:26:00 【WindOfMayGIS】
[ turn ]ArcGIS Two of them Geometry The relationship between
Operate two Geometry when , The common interface is ITopologicalOperator, such as clip,Intersect,Union,cut etc. .
When judging two Geometry Topological relationship between , use IRelationalOperator , It has Contains、Crosses、Disjoint、Equals、Overlaps、Within、Touches Other methods .
Example :
- ITopologicalOperator sourcePolygon= (ITopologicalOperator)outerPolygon;
- IPolygon resultPolygon = (IPolygon)sourcePolygon.Difference(cutPolygons);
- IRelationalOperator re = (IRelationalOperator)outerPolygon;
- if (!re.Contains(inPolygon))
- {
- throw new Exception("abcdefg");
- }
Pay attention to , If the two involved in the operation Geometry When the object is not a simple object ,( notes 1:Simple object , See the picture below )( notes 2: It can be used ITopologicalOperator Interface IsSimple Function to judge )( notes 3: When using IPointCollection And other interfaces Geometry This is often the case with objects ), The operation may be wrong , And can't get the desired result , At this time, it needs to be handled :
- ((ITopologicalOperator)outerPolygon).Simplify();

Definition and processing of simple objects
attach 1:ITopologicalOperator Some functions of :
Method name | explain |
Boundary | Boundary of geometry object |
Buffer | Perform buffer space topology operations on geometry objects |
Clip | Perform clipping space topology operations on geometry objects |
ConstructUnion | Efficiently merge multiple enumerated geometric objects and a single geometric object into a single geometric object , This is very efficient for merging a large number of geometric objects |
ConvexHull | Building convex shapes of geometric objects |
Cut | Cutting geometric objects |
Difference | One geometry subtracts the part it intersects with another geometry |
Intersect | The intersection of two geometric objects with the same dimension |
Simplify | Make the topology of geometric objects consistent |
SymmetricDifference | Symmetric difference subtracts the intersection of two geometries from the union of two geometries |
Union | Merge two geometric objects with the same dimension into a single geometric object |
The illustration :
http://www.gisjc.com/a/ArcGIS_Engine/2010/0425/239.html
attach 2:IRelationalOperator Some relationship types :
| Type of relationship | describe |
| Contains | Determine whether a figure contains another figure |
| Within | Determine whether a figure is contained by another figure . |
| Crosses | Judge whether two figures intersect inside the figure with less dimension |
| Disjoint | Judge whether there are no similarities between the two figures |
| Equals | Judge whether the two figures are of the same type and whether the points on the plane are in the same position . If the return value is true , Then they should contain (Contains) Another figure is also included by another figure (Within). |
| Overlaps | Judge whether the intersection of two figures has the same dimension as one of them , And their intersection cannot be equal to any of them . This method uses only two Polyline Between or two Polygon Between . |
| Touch | Judge whether the boundaries of two figures intersect , If the intersection of two figures is not empty , But the intersection of the two figures is empty , The return value is true . |
边栏推荐
- 为什么要做“密评”?
- MySQL data directory (2) -- table data structure (XXV)
- B+ tree (4) joint index -- MySQL from entry to proficiency (16)
- HCIP第十一天比较(BGP的配置、发布)
- Is the account opened by flush safe?
- We were tossed all night by a Kong performance bug
- Square root of leetcode 69. x
- Leetcode 1523. count odd numbers within the interval
- 目标检测网络R-CNN 系列
- 一笔画问题(中国邮递员问题)
猜你喜欢

12-GuliMall 后台管理中商品系统的品牌管理

File upload and download performance test based on the locust framework

postgresql官网下载出错

AI-理论-知识图谱1-基础

《Kotlin系列》之MVVM架构封装(kotlin+mvvm)

One stroke problem (Chinese postman problem)

【花雕动手做】有趣好玩的音乐可视化系列小项目(12)---米管快速节奏灯

官宣!艾德韦宣集团与百度希壤达成深度共创合作

Activity.onStop() 延迟10秒?精彩绝伦的排查历程

A college archives management system based on asp.net
随机推荐
时间复杂度和空间复杂度
LeetCode 2119. 反转两次的数字
pomerium
天津市应急局与驻津央企签署协议深化应急联动机制建设
Emotion analysis model based on Bert
基于BERT的情感分析模型
MySQL data directory (3) -- table data structure MyISAM (XXVI)
B+树索引使用(8)排序使用及其注意事项(二十)
B+树索引使用(9)分组、回表、覆盖索引(二十一)
How to build a customer-centric product blueprint: suggestions from the chief technology officer
B+树(5)myISAM简介 --mysql从入门到精通(十七)
学习pinia 介绍-State-Getters-Actions-Plugins
Kubelet CRI 容器运行时
Golang port scanning design
Detailed explanation of factory mode
7-25 0-1 backpack (50 points)
panic: Error 1045: Access denied for user ‘root‘@‘117.61.242.215‘ (using password: YES)
Oom caused by improper use of multithreading
key&key_len&ref&filtered(4)—mysql执行计划(五十)
Kubernetes apiserver current limiting strategy