cl991036
管理员
管理员
  • 注册日期2003-07-25
  • 发帖数5917
  • QQ14265545
  • 铜币29669枚
  • 威望217点
  • 贡献值0点
  • 银元0个
  • GIS帝国居民
  • GIS帝国铁杆
阅读:1488回复:0

[转帖]在 AE中创建关系类(RelatinshipClass)的三种不同方式

楼主#
更多 发布于:2010-01-26 09:37
<br>1. Relationship Class  If you want to
 create a relationship class to store the relationship within a
geodatabase (any type of geodatabase) you can use
IFeatureWorkspace.CreateRelationshipClass or
IRelationshipClassContainer.CreateRelationshipClass. However it is
important to note that if you want to use a relationship class, it can
only relate feature classes and or tables that reside within the same
Geodatabase. </p><p>所有表必须在同一数据库中,关
系类在数据库中持久化</p> <br><p>2. In
Memory Relationship Class  If you only want the relationship to persist
 while your code is running you can use an in memory relationship class.
 IMemoryRelationshipClassFactory.Open can be used to create the
temporary relationship class. Since the relationship class is not
permanently stored in a Geodatabase you can use the in memory
relationship class to relate data that is stored in different locations
and of different types. For example you can use an in memory
relationship class to relate a feature class to a shapefile or another
feature class in a different geodatabase. </p><p>不同源表数据创建关联使用内存管理类,其关系不在数据中持久化,但可以保存在mxd中 </p><br><p>3. Joins  You can also use
IRelQueryTableFactory.Open to create a join between two tables. Joins
can be used to associate data that is stored in different locations and
of different types as well. With a RelQueryTable the associate is based
on a RelationshipClass or MemoryRelationshipClass. </p><p>创建两个表之间的关系 <br></p>
喜欢0 评分0
没钱又丑,农村户口。头可断,发型一定不能乱。 邮箱:gisempire@qq.com
游客

返回顶部