Skip to main content
Question

Vertex after aggregate

  • June 10, 2016
  • 7 replies
  • 44 views

nath
Contributor
Forum|alt.badge.img+7

Hi,

I have used the aggregator after a lineOnAreaOverlayer to merge the lines with the same Id back together but now te beginvertex from te line (the red) is in the middle of te line (when you start editing in ArcMap or QGIS. Is there a way to set this right in FME again because the lines are giving problems.

Thx!

Nathalie

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

7 replies

pratap
Contributor
Forum|alt.badge.img+12
  • Contributor
  • June 10, 2016

Hi,

Seems attachment is missed out


david_r
Celebrity
  • June 10, 2016

Just to set things straight, the Aggregator won't merge (join) lines, it will create a multi-part geometry out of the line segments that were intersected by the LineOnAreaOverlayer. Could this possibly be the issue here?

Could you perhaps tell us a bit about what you're trying to accomplish, that way we might give you some pointers.


nath
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • June 10, 2016

I have to determine the area where the line is located in as an attribute, for this i use the lineOneAreaOverlayer, but the lines are split by the boundaries of those areas. But in my results i need to merge those lines and maintain the attributes off the part of the line with the longest length. So i use first the linOnAreaOverlayer, lengthcalculator, Aggregator, ListSorter and Listindexer.


nath
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • June 10, 2016

zcartografiewerkmappenaalstnathalie2016fmeaggegato.png


david_r
Celebrity
  • June 10, 2016

An easier way might be to

  • Before the LineOnAreaOverlayer, insert a GeometryExtractor to save the geometry as an attribute
  • After the LengthCalculator, insert a GeometryReplacer to "restore" the geometry from that attribute.

That way you can skip the ListSorter and ListIndexer and you won't have to deal with reconstructing the multipart geometries.


Forum|alt.badge.img+5

For finding relationships without splitting the linework, I'd suggest using either the SpatialFilter or SpatialRelator. If there are multiple areas a line might pass through, the use the SpatialRelator because it allows you to create a list of matches.

Other methods: 1) As David suggests - save the geometry beforehand with the GeometryExtractor so that you can replace the split version with the original 2) Put a FeatureMerger down to merge the information from the split features back on to the origianl


nath
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • June 16, 2016

Thx, it has fixed the problem off the multip-part geometry but now i have other problems because he creates duplicates. Now i have to figure out why and howe to solve this :-)