第8页
第4排
你好,我对FME比较陌生,我想知道是否有一个将线特征转换成多边形的通用工作台。考虑一个具有如下常见问题的数据集:
-无合并线条特征,这样就会产生像右图中那样的多边形(从左图中的红色合成线到右图中的黄色多边形)
-没有交叉线,根本就没有多边形。
-产生“小”多边形的自相交线
-或产生相同多边形的相同线条特征
etc.etc.
不知道在他们的数据集中会出现哪种错误,你怎么清理它?为了让FME把线转换成多边形。
我已经搜索过了,and I've found the workbench mentioned in here
https://knowledge.亚搏在线safe.com/questions/3150/fail-to-convert-lines-to-polygons-correct.html
这个数据验证教程
https://knowledge.亚搏在线safe.com/articles/54515/data-qa-identifying-self-intersections-with-fme.html
However,我的数据集很大,我不想走不必要的路。有我可以忽略的变形金刚吗?或者我发布的链接中没有提到的变形金刚?
我转换数据的顺序也很重要吗?我知道AreaBuilder可能是最后使用的变形金刚之一,but what about the rest?
I will probably be using both a gml file with line features and transform that in to a shapefile,和
具有多边形特征的DGN文件,并将其转换为形状文件。
Just to summarize the transformers I think I will be using so far:
-火柴匠
-几何验证程序
- Geometry Filter
-按扣
- Intersector
-区域生成器
-面积计算器
事先谢谢。
EDITED:
Test nummer 1 :-)
The Area Builder seems to reject my lines....
我还尝试在AreaBuilder之前添加几何验证程序,但这也失败了…When I stop at the intersector,it does intersect.所以Intersect做了一些事情。It's only when I continue afterwards,它失败了。
我添加了两个匹配器,因为我有很多初始相同的行功能,我只是想在继续之前编辑掉(这是第一个匹配)。
Also I don't have the LineCombiner and the Line extender transformers,two transformers which I think I could use here.为什么会这样?我与FME专业版2016.1合作
I'm not sure how good the LineCloser is going to be.If your features are already defined by a single line that wraps around it (maybe with a small gap),那就好了。但我怀疑情况并非如此(就像红线),所以我不会这么做。
You can only really leave out a transformer/test if you know that your data is not going to have those problems.例如,如果没有下冲,就不需要扩展器/捕捉器/任何东西。Otherwise you need most of them.
你说得对,the order is important because one solution can cause other types of problems which you then need to solve.
我会试试下面的变形金刚,按此顺序:
捕捉器:尝试连接接近但错过的点。I would use Segment snapping mode because I don't know if lines will be properly split (eg a line might go from one side of a row of buildings to another,instead of one per building).
LineExtender: Maybe optional,但这将扩展所有行(只扩展一小部分),以便处理任何不足之处。我想,我会使扩展略大于对齐公差。它是否会导致超调无关紧要,因为…
相交器:这将切断超调量,在拐角处划出一条线,如果他们还没有。
I'd try that first and see what happens.Probably follow up with a check for duplicate points (also in that QA tutorial) because that could be a result of these processes.
希望有帮助。Sorry I have to run now - got a training class to go to!Good luck.
另一个需要考虑的变压器可能是FME集线器上的SmartCleaner_2013自定义变压器:https://hub.亚搏在线safe.com/transformers/smartcleaner_2013.这台变压器是一站式的,用于消除悬垂/过冲/间隙。I would consider testing this transformer on a subset of your data to see if this can achieve a few of your steps in one transformer.
Deconstructing polygons2 Answers
使用FME创建的GML中的验证错误1 Answer
Find lines in the Polygonal border3个答案
与多边形边界相交的多边形线条2 Answers
多部分多边形的FME输入1 Answer
?2019安全亚搏在线软件公司|法律