- GIS论坛-GIS空间站 ( http://bbs.gissky.net/Default.asp )
-- Intergraph ( http://bbs.gissky.net/ShowForum.asp?forumid=28 )
--- 求助,Geomedia二次开发多边形分割问题 ( http://bbs.gissky.net/ShowPost.asp?id=33225 )


作者:zuozhijin
发表时间:2006-10-16 14:37:39

想用一条线把一个多边形分割成两个多边形,在GeoMedia中用什么函数实现啊?在ArcObject中有cut()函数,而Geomedia professional桌面操作上叫split,但是帮助里面找不到cut()或者split()函数,请问是不是有别的函数?



作者:zhouligis
发表时间:2006-11-15 10:37:58

你可以使用CustomSplitFeatureAdvisor Object对象进行处理。

 

The Split Feature Operation provides part of the functionality of the Split Feature command, which provides the ability to split features into two or more features of the same feature class. This will provide some flexibility for the user to customize the split functionality by providing a different split feature operation or, more likely, by writing a custom event handler to override or extend the behavior of this split feature operation.

The controlling object must implement the GUI and interact with users to capture the split geometry. The split geometry is the geometry digitized by the user in the Split Feature command to split the target feature(s). For each feature contained in the select set, the SplitFeatureOperation will be invoked to perform the actual split work and to write the result to the warehouse. It provides the events that will allow the user to customize specific behavior in various locations through the use of the CustomSplitFeatureAdvisor object.

The CustomSplitFeatureAdvisor object is the mechanism through which an operation object of type SplitFeature communicates with a custom event handler object. This object also implements the CustomSplitFeatureManager interface, which the operation object uses, mainly for raising events from this object to a custom event handler object and setting properties on the custom advisor. The operation object can have multiple custom event handler objects and can communicate with each event handler object through a separate CustomSplitFeatureAdvisor object.


发表您的观点,进入该主题参与讨论...


作者:zuozhijin
发表时间:2006-12-4 15:10:40

能不能具体给个例子啊?我知道这个函数,但是不知道怎么用。谢谢先


发表您的观点,进入该主题参与讨论...


Powered by GIS空间站 © 2002-2007