当前位置:网站首页>arcengine线与面的相互转换
arcengine线与面的相互转换
2022-04-22 14:22:00 【ShirmyMao】
线转面
/// <summary>
/// 线转面
/// </summary>
/// <param name="geo"></param>
/// <returns></returns>
public static IPolygon PolylineToPolygon(object geo)
{
ISegmentCollection polygons = new PolygonClass();
var segment = geo as ISegmentCollection;
polygons.AddSegmentCollection(segment);
var polyLine = polygons as IPolygon;
return polyLine;
}
面转线
/// <summary>
/// 面转线
/// </summary>
/// <param name="geo"></param>
/// <returns></returns>
public static IPolyline PolygonToPolyline(object geo)
{
ISegmentCollection lines = new PolylineClass();
var segment = geo as ISegmentCollection;
lines.AddSegmentCollection(segment);
var polyLine = lines as IPolyline;
return polyLine;
}
版权声明
本文为[ShirmyMao]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_36047595/article/details/118362940
边栏推荐
- Binarytree practice binary tree sequence traversal 𞓜 sequence traversal with queue
- Methods of CRM system to improve customer experience
- Tencent build project image
- Series interpretation of smc-r (II): smc-r communication technology integrating TCP and RDMA
- Development and application of deep learning technology
- Hashtable hash table and index 1, 599, 219
- Kubernetes详解(六)——Pod对象部署和应用
- 浅谈IM系统中离线消息、历史消息的最佳实践
- 华为云媒体査勇:华为云在视频AI转码领域的技术实践
- MariaDB is configured as master-slave (dual master mode) to each other
猜你喜欢

With Feixiang, this task management artifact, the work is more convenient and efficient
26岁,0基础学软件测试还来得及吗

interrupted()和isInterrupted()详述,百万数据分页查询的方法及其优化方式

LeetCode_ 63 different paths II

In depth analysis of lock and AQS

深入剖析阻塞队列BlockingQueue (详解ArrayBlockingQueue和LinkedBlockingQueue及其应用)

3. fiddler证书安装和抓取hettps设置

Lors de l'obtention d'une valeur dans la base de données, la base de données a une valeur, mais elle est vide.

定时器--

C语言的三子棋,用22天总结了一份完美的SQL学习笔记
随机推荐
Daily question - Three Kingdoms game (diagonal matrix)
ArcEngine服务数据加载
天梯赛--L2-002 链表去重 (25 分)
TensorFlow-ValueError: ‘images‘ contains no shape
C语言的三子棋,用22天总结了一份完美的SQL学习笔记
运行npm install命令的时候会发生什么?
Mariadb互为主从(双主模式)配置
Advanced multithreading
Multithreading primary
双指针头尾指针 167、|345、680、15、16、18、11、42
深入剖析Lock与AQS
字节跳动的面试分享,为了拿下这个offer鬼知道我经历了什么
獲取數據庫中數值時,數據庫有值,卻為空??
LeetCode刷题(04)
Figure keys and rooms
Wonderful linkage! Principle and practice of openmldb pulsar connector
26 years old, 0 basic software testing still in time
Redis batch delete data (wildcard)
redis的理解
With Feixiang, this task management artifact, the work is more convenient and efficient