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

ArcGIS Diagrammer建模拓扑提示“The topology rule is invalid/malformed.”_第1张图片

打开之后我们可以看到

ArcGIS Diagrammer建模拓扑提示“The topology rule is invalid/malformed.”_第2张图片

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

ArcGIS Diagrammer建模拓扑提示“The topology rule is invalid/malformed.”_第3张图片

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

查看ControllerMembership信息

ArcGIS Diagrammer建模拓扑提示“The topology rule is invalid/malformed.”_第4张图片

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


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

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

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


你可能感兴趣的:(ArcGIS Diagrammer建模拓扑提示“The topology rule is invalid/malformed.”)