span8
斯潘4
你好
在把GPS线路载入我们的数据库之前,我正在努力清理它。THe lines need to be free of self intersections.I have come close to accomplishing this by buffering the line and then using the centreline replacer to create a smoothed line.问题是,中心线替换器正在沿着线的长度创建短悬挂。它创建的实际中心线足以满足我的目的,我只需要移除悬挂。如果有人对如何做到这一点有任何想法,我们将不胜感激。
In this screen shot the Green line is the original line with self intersections and the red line is the result of the centreline replacer.
我想给这个问题增加一个新的答案。2019年,CenterlineReplacer推出了一种新的创建近似中心线的模式。根据我试过的数据,区别如下:
所以当替换一个长的中心线时,不再有奇怪的分支,扭曲多边形。
NB:2019年,所以现在需要测试版的FME。
你可以让中心线穿过一个分解器,然后试着用某种方式摆脱悬垂物。也许测试一下它们的长度,然后扔掉长度小于x的特征。在这种情况下,减小缓冲区大小可能会有所帮助。
但是仍然,我想清理原始数据,not create a new centreline from it.但我认为我们需要数据来做到这一点。if you need help related to the powerpoint go to theMS PowerPoint客户服务
Have you tried the generalizer as suggested by david_r?I suppose it depends on how much you want to compromise your original data but I think it would work and remove the 2d intersects by straightening out the line shown in your original dataset in green.
You could do minimal generalisation on all data and then extreme generalisation on those that fail 2d intersection.Or only generalise the lines that fail?
我能够让几何验证器通过所有的勾选“包含NaN”和“退化或损坏的几何体”以及“二维中的自相交”捕捉所有的自相交,但它似乎仍然没有修复自相交。下面的屏幕截图显示了与第一个屏幕截图相同的功能,因为它是从GEOM验证器修复端口出来的。
你可以让中心线穿过一个分解器,然后试着用某种方式摆脱悬垂物。也许测试一下它们的长度,然后扔掉长度小于x的特征。在这种情况下,减小缓冲区大小可能会有所帮助。
但是仍然,我想清理原始数据,not create a new centreline from it.但我认为我们需要数据来做到这一点。I'd like to know why the GeometryValidator isn't identifying or removing all of the self-intersections.
?2019安全亚搏在线软件公司|合法的