ArcGIS Diagrammer建模拓扑提示“The topology rule is invalid/malformed.”

在使用ArcGIS Diagrammer建模过程中,有些用户在创建拓扑过程中,检查没有任何问题,但是将导出的XML文件导入到Geodatabase中时,提示:“Import xml data failed - The topology rule is invalid/malformed.”

查询ArcGIS Diagrammer的官方论坛也有国外的用户咨询类似的问题:

I am having trouble establishing Topology rules. I have added a Topology to the diagram and linked it to the Feature Dataset and added some rules. When I run it I get the error:

Getting error Load xml data failed - The topology rule is invalid/malformed.

To try and understand where I am going wrong, I decided to create a XML file from ArcCatalog that includes a topology and review in ArcGIS Diagrammer. While helpful, this did not solve my problem.

I eventually noticed that the feature class I wanted topology for has a ControllerMembership property. This was hard-coded to the original name of the Topology created by the XML export. Changing the name of the Topology in the XML file created by export did not result in this property being updated - and the modified XML generated the error above. 

The ControllerMembership property for Topology holds the Weight, XYRank and ZRank - key components of the Topology. You cannot manually create one - it is an abstract class. So I would expect it to be added as a Topology is added to the Diagram

I then tried to define a series of actions within Diagrammer that results in this being populated. I could not. My actions are listed below:
Create Feature Dataset
Create FeatureClass and link to Feature Dataset
Add topology to diagrammer
Link Topology to Feature Dataset
Defined 2 topology rules, picking the feature class created at step 2

At this stage the ControllerMembership in the featureclass does not have any reference to the Topology. I think for the model to work, it needs to. But - how ?? 


Questions:

How do you add a Topology to the Diagrammer ? (ie: What actions do you have to perform and how do you define the topology against the featureclass ? )

How do you manage Weight, XYRank, ZRank etc ?

I have attached 2 XML files. One was exported by Catalog, and the other has had the Topology name changed. The first XML file works, the second does not. Note that the name includes the database owner and schema from my Dev environment - which is not what I really want for my real environment.

我以前在ArcGIS Diagrammer介绍中也介绍了关于创建拓扑的步骤,但是没有将这个关键的部分说明:http://blog.csdn.net/linghe301/article/details/6214614

再创建完拓扑之后,我们需要选中拓扑对象,右键选择Open Diagram


打开之后我们可以看到


打开之后我们看到,我们创建的拓扑对象并没有与相关的要素类想关联,我们需要手动进行关联


进行关联后,我们还需要注意,如果我们对创建拓扑比较熟悉,我们会知道,我们缺少了对要素类的Rank值进行设定,那么我们选择某个要素类对象

查看ControllerMembership信息


该信息只能移除或者修改,不能添加


只有这样的话才能解决上面的问题

 -------------------------------------------------------------------------------------------------------
版权所有,文章允许转载,但必须以链接方式注明源地址,否则追究法律责任!
QQ群:              78773981
Blog:               http://blog.csdn.net/linghe301
Weibo:            http://www.weibo.com/linghe301

-------------------------------------------------------------------------------------------------------


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值