ArcGIS中的几何对象 您所在的位置:网站首页 arcgis勾画边界叫什么 ArcGIS中的几何对象

ArcGIS中的几何对象

2024-02-19 01:28| 来源: 网络整理| 查看: 265

Polygon 对象是由一个或多个 Ring 对象的有序集合。Polygon 通常用来代表有面积的多边形矢量对象,如行政区、建筑物等。

从这个图上可以看出 Polygon 是由 Ring 构成,而 Ring 又是又 Segment 构成,但是这并不意味着用户必须按照这种层次去构造 Polygon,实际上用 Point 的集合可以构成 Polygon。

组成 Polygon 的是 Ring,其中 Ring 可以分为 Exterior Ring (外环) 和 Interior Ring (内环) 之分。外环和内环都是有方向的,它们的区别是外环的方向是顺时针的,内环的方向是逆时针。如下图:

Polygon对象实现了一个接口 IArea ,而该接口用来对 Poylgon 的中心、重心,以及面积进行访问,下面片段用来获取 Polygoe 的面积:

IArea pArea = pPolygon as IArea; Double S = pArea.Area;

通过点创建 Polygon

public void CreatePolygonByPoints() { //Build polygon from a sequence of points. //At ArcGIS 9.2, the recommended way to add arrays of points to a geometry is to use //the IGeometryBridge2 interface on the GeometryEnvironment singleton object. IGeometryBridge2 geometryBridge2 = new GeometryEnvironmentClass(); IPointCollection4 pointCollection4 = new PolygonClass(); //TODO: //pointCollection4.SpatialReference = 'Define the spatial reference of the new polygon WKSPoint[] aWKSPointBuffer = null; long cPoints = 4; //The number of points in the first part aWKSPointBuffer = new WKSPoint[System.Convert.ToInt32(cPoints - 1) + 1]; //TODO: //aWKSPointBuffer = 'Read cPoints into the point buffer geometryBridge2.SetWKSPoints(pointCollection4, ref aWKSPointBuffer); //pointCollection4 has now been defined }参考ESRI在线帮助 http://resources.esri.com/help/9.3/arcgisengine/dotnet/9df45774-c95a-4ae4-9a0d-3eedcf58c5c0.htm



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有