页面载入中....  
页面载入中....
时 间 记 忆
页面载入中....
最 新 评 论
页面载入中....
专 题 分 类
页面载入中....
最 新 日 志
页面载入中....
最 新 留 言
页面载入中....
搜 索
用 户 登 录
页面载入中....
友 情 连 接
博 客 信 息
页面载入中....


 
转载:Geometry 对象浅析
[ 2008-5-6 13:01:00 | By: luyuan-cyj ]
 

    ArcEngine Geometry库定义了基本几何图形的矢量表达形式,顶级的几何图形有PointsMultipointsPolylinesPolygonsMultipatchesGeodatabase和绘图系统使用这些几何图形来定义其他各种形状的特征和图形,提供了编辑图形的操作方法和地图符号系统符号化特征数据的途径。
    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;
    spatialReferenceResolution.ConstructFromHorizon();
    ISpatialReferenceTolerance spatialReferenceTolerance = spatialReferenceResolution 
as ISpatialReferenceTolerance;
    spatialReferenceTolerance.SetDefaultXYTolerance();
    ISpatialReference spatialReference = spatialReferenceResolution 
as ISpatialReference;
   

 
发表评论:
页面载入中....
Powered by Oblog.