日期:2010-03-21  浏览次数:20634 次

  ArcEngine Geometry库定义了基本几何图形的矢量表达形式,顶级的几何图形有Points、Multipoints、Polylines、Polygons、 Multipatches,Geodatabase和绘图系统使用这些几何图形来定义其他各种形状的特征和图形,提供了编辑图形的操作方法和地图符号系统符号化特征数据的途径。


  Geometry库中几个核心类和接口构成了Geometry对象的基本框架。


  GeometryEnvironment


  GeometryEnvironment提供了从不同的输入、设置或获取全局变量来创建几何图形的方法,以便控制geometry方法的行为。GeometryEnvironment对象是一个单例对象。

以下为引用的内容:
public IPolyline TestGeometryEnvironment()
{
    ISpatialReferenceFactory spatialReferenceFactory 
= new SpatialReferenceEnvironmentClass();

    
//Create a projected coordinate system and define its domain, resolution, and x,y tolerance.
    ISpatialReferenceResolution spatialReferenceResolution = spatialReferenceFactory.CreateProjectedCoordinateSystem((int)esriSRProjCSType.esriSRProjCS_NAD1983UTM_11N) as ISpatialReferenceResolution;