IGeometryCollection Interface
Come from ArcGIS Online IGeometryCollection Interface
Provides access to members that can be used for accessing, adding and removing individual geometries of a multi-part geometry (Multipoint, Polyline, Polygon, MultiPatch, and GeometryBag).
Product Availability
Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.
Description
A Collection of Geometry parts. For Multipoints, Triangles, TriangleFans, and TriangleStrips, the Geometry parts are Points. For Polylines, the Geometry parts are Paths. For Polygons, the Geometry parts are Rings. For MultiPatches, the Geometry parts are Triangles, TriangleFans, TriangleStrips, or Rings. For GeometryBags, the Geometry parts are any IGeometry object.
The GeometryCollection can be used to access, manipulate, add, insert, remove, and set specific parts of a composite geometry.
When To Use
If you are using a development language that does not support C style arrays, use IGeometryBridge instead. The IGeometryBridge interface solves that problem allowing you to pass safe arrays instead.
Members
|
Description |
||||
![]() |
Adds references to the specified geometries. This method is intended for internal use only. |
|||
![]() |
Adds a reference to the input geometry either at the end, or before, or after the specified index. |
|||
![]() |
Adds references to geometries in the input collection. |
|||
![]() |
Tells this geometry collection that some of its geometries have been altered. Use this method on polylines, polygons and multipatches after directly editing one of its parts. |
|||
![]() |
A reference to the ith geometry. |
|||
![]() |
The number of geometries in this collection. |
|||
![]() |
Inserts at the specified index references to some number of geometries in the input array. This method is intended for internal use only. |
|||
![]() |
Inserts at the specified index references to all if the geometries in the input collection. |
|||
![]() |
Populates the array with references to a sub-sequence of geometries. This method is intended for internal use only. |
|||
![]() |
Removes references to some geometries from this collection. |
|||
![]() |
Replaces all geometries in the collection with the specified number of references to those in the input array. This method is intended for internal use only. |
|||
![]() |
Replaces all geometries in the collection with references to geometries from the input collection. |
|||
CoClasses that implement IGeometryCollection
|
CoClasses and Classes |
Description |
|
Its a spheroidal ellipse. |
|
|
An ordered collection of objects that support the IGeometry interface. |
|
|
Its a spheroidal polygon. |
|
|
This is a spheroidal polyline. |
|
|
A collection of surface patches. |
|
|
An ordered collection of points; optionally has measure, height and ID attributes. |
|
|
A collection of rings ordered by their containment relationship; optionally has measure, height and ID attributes. |
|
|
An ordered collection of paths; optionally has measure, height and ID attributes. |
|
|
A continuous 3D fan of triangles, where each triangle after the first shares an edge with the preceding triangle, and all triangles share a common pivot point. |
|
|
A collection of 3D triangles, where each consecutive triplet of vertices defines a new triangle |
|
|
A continuous 3D strip of triangles, where each triangle after the first shares an edge with the preceding triangle. |
Remarks
Every Geometry created within ArcGIS should be assigned a spatial reference. Always attach well-defined spatial references to new geometries. This improves processing efficiency, in particular, when using ITopologicalOperator on geometries that contain curved segments (circular arcs, bezier curves, elliptical arcs). New geometries include any geometry that is created in memory. It does not matter whether it will be stored in a feature class or not. Well-defined as applied to a spatial reference means that it not only has its coordinate system (projection) defined, but also its coordinate grid. The coordinate grid consists of the xy domain, xy resolution, and xy cluster tolerance properties of a spatial reference. If the Geometry includes z or m values, the z or m domains, z or m resolutions, and z or m cluster tolerance properties must also be defined. The cluster tolerance and resolutions can be quickly and easily set using SetDefault methods on ISpatialReferenceResolution and ISpatialReferenceTolerance interfaces.
//The example shows a GeometryCollection for MultiPoint.
public void ShowGeometries()
{ IGeometryCollection geometryCollection = new MultipointClass();
//add 10 points in a loop
object missing = Type.Missing; for (int i = ; i < ; i++)
{
IPoint point = new PointClass();
point.PutCoords(i * , i * );
geometryCollection.AddGeometry(point as IGeometry, ref missing, ref missing);
} int geometryCount = geometryCollection.GeometryCount;
System.Windows.Forms.MessageBox.Show("GeometryCount = " + geometryCount); for (int i = ; i < geometryCount; i++)
{
IGeometry currentGeometry = geometryCollection.get_Geometry(i);
IPoint point = currentGeometry as IPoint; //we know that there are IPoints only in the Geometrycollection.
//But this is the safe and recommended way
if (point != null)
{
System.Windows.Forms.MessageBox.Show("X = " + point.X + ", Y = " + point.Y);
} } }
IGeometryCollection Interface的更多相关文章
- angular2系列教程(七)Injectable、Promise、Interface、使用服务
今天我们要讲的ng2的service这个概念,和ng1一样,service通常用于发送http请求,但其实你可以在里面封装任何你想封装的方法,有时候控制器之间的通讯也是依靠service来完成的,让我 ...
- 接口--interface
“interface”(接口)关键字使抽象的概念更深入了一层.我们可将其想象为一个“纯”抽象类.它允许创建者规定一个类的基本形式:方法名.自变量列表以及返回类型,但不规定方法主体.接口也包含了基本数据 ...
- Configure a bridge interface over a VLAN tagged bonded interface
SOLUTION VERIFIED February 5 2014 KB340153 Environment Red Hat Enterprise Linux 6 (All Versions) Red ...
- Create a bridge using a tagged vlan (8021.q) interface
SOLUTION VERIFIED April 27 2013 KB26727 Environment Red Hat Enterprise Linux 5 Red Hat Enterprise Li ...
- Configure a bridged network interface for KVM using RHEL 5.4 or later?
environment Red Hat Enterprise Linux 5.4 or later Red Hat Enterprise Linux 6.0 or later KVM virtual ...
- Set up VLAN (802.1q) tagging on a network interface?
SOLUTION VERIFIED October 13 2015 KB39674 KB741413 environment Red Hat Enterprise Linux 4 Red Hat En ...
- 谨慎使用Marker Interface
之所以写这篇文章,源自于组内的一些技术讨论.实际上,Effective Java的Item 37已经详细地讨论了Marker Interface.但是从整个Item的角度来看,其对于Marker In ...
- 浅析Go语言的Interface机制
前几日一朋友在学GO,问了我一些interface机制的问题.试着解释发现自己也不是太清楚,所以今天下午特意查了资料和阅读GO的源码(基于go1.4),整理出了此文.如果有错误的地方还望指正. GO语 ...
- 如何设计一门语言(七)——闭包、lambda和interface
人们都很喜欢讨论闭包这个概念.其实这个概念对于写代码来讲一点用都没有,写代码只需要掌握好lambda表达式和class+interface的语义就行了.基本上只有在写编译器和虚拟机的时候才需要管什么是 ...
随机推荐
- js 判断是不是空、值是否存在
判断数组是否存在某个值: Array.indexOf(val) > -1 //存在 (缺陷:一是不够语义化,它的含义是找到参数值的第一个出现位置,所以要去比较是否不等于-1,表达起来不够直观.二 ...
- HDU 1043 八数码(A*搜索)
在学习八数码A*搜索问题的时候须要知道下面几个点: Hash:利用康托展开进行hash 康托展开主要就是依据一个序列求这个序列是第几大的序列. A*搜索:这里的启示函数就用两点之间的曼哈顿距离进行计算 ...
- HDOJ 5399 Too Simple
每个函数都必须是一个排列,经过连续的一段确定函数后数字不能少. 满足上面的条件的话,仅仅要有一个-1函数特别的排列一下就能够满足要求,剩下的能够任意填 没有-1的话特判 Too Simple Time ...
- 旧知识打造新技术--AJAX学习总结
AJAX是将旧知识在新思想的容器内进行碰撞产生的新技术:推翻传统网页的设计技术,改善用户体验的技术. 学习AJAX之初写过一篇<与Ajax的初次谋面>.当中都仅仅是一些自己浅显的理解.这次 ...
- php全局变量的使用
php全局变量的使用 一.总结 1.php的全局变量:php的全局变量和C++,Java的全局变量不一样 2.页面嵌套php:我在html页面中嵌套php代码的时候,php的全局变量好像和C++,Ja ...
- 关于结构体COORD介绍
COORD是windows API中定义的一种结构,表示一个字符在控制台屏幕上的坐标.其定义为: typedef struct _COORD { SHORT X; // horizontal coor ...
- Office2010激活工具
mini-KMS Activator是一款好用Office2010激活工具,“KMS”是微软对于“大客户”(VOL或VL)提供的Microsoft产品激活方式之一.在适用此方式的Microsoft产品 ...
- 腾讯官网生成qq在线客服代码
http://jingyan.baidu.com/article/e2284b2b42ce8ce2e6118ddd.html
- C# 实现Ajax的方式总结
1JavaScript实现AJAX效果 2.AjaxPro实现AJAX应用 3.微软AJAX控件库开发AJAX 比如ScriptManager,updatePanel,timer等 4.jquery ...
- 【例题 7-8 UVA - 10603】Fill
[链接] 我是链接,点我呀:) [题意] 在这里输入题意 [题解] 三维显然可以缩短为2维. 只要知道a,b瓶中的水量,c瓶中的水量减一下就能得到. 则设dis[a][b]表示a,b瓶中水量为a,b时 ...

