Skip to main content
Question

Generalization of lines


lazarlubomir
Contributor
Forum|alt.badge.img+7

Hello,

I wanna please You for advice with generalization of lines.

My situation is following: I got big amount of lines (waterlines) after schemamapper, where many nodes between lines were purposedly lost. Now, I need to merge waterlines according to their attribute values and their end node touch. It will be merged till touch of node...

How could I solve it in the simpliest way please?

Thank You very much for tips!

Lubo

13 replies

redgeographics
Celebrity
Forum|alt.badge.img+50

I'm not sure I completely understand your question, but maybe the LineJoiner is what you're looking for.


lazarlubomir
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • July 15, 2016
redgeographics wrote:

I'm not sure I completely understand your question, but maybe the LineJoiner is what you're looking for.

Yes, thanks for the tip. But how can I continue if I need to keep all input atrributes please? Because Linejoiner tools offers me only group by option, but no possibility to keep input attributes...


david_r
Celebrity
  • July 15, 2016
lazarlubomir wrote:

Yes, thanks for the tip. But how can I continue if I need to keep all input atrributes please? Because Linejoiner tools offers me only group by option, but no possibility to keep input attributes...

Look at the "Generate list" option in the LineJoiner, it will store all the attributes from the joined elements.

Or use the Group By, the LineJoiner will preserve all attributes specified there.


lazarlubomir
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • July 15, 2016
david_r wrote:

Look at the "Generate list" option in the LineJoiner, it will store all the attributes from the joined elements.

Or use the Group By, the LineJoiner will preserve all attributes specified there.

"Generate list" equals "List name"? And I checked documentation of Linejoiner and I cannot find in my workspace possibility "Break accross group"? How can I reach this function please?


david_r
Celebrity
  • July 15, 2016
lazarlubomir wrote:

"Generate list" equals "List name"? And I checked documentation of Linejoiner and I cannot find in my workspace possibility "Break accross group"? How can I reach this function please?

I guess that your workspace contains an old version of the LineJoiner, created with an older version of FME. That would explain why the parameters do not match the most current documentation.

Try upgrading the LineJoiner by right-clicking and selecting "Upgrade transformer".


lazarlubomir
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • July 15, 2016

Unfortunately, transformer doentt offer me upgrade :-( I have version 2016.0.0.0, please check my printscreen @david_r


david_r
Celebrity
  • July 15, 2016
lazarlubomir wrote:

Unfortunately, transformer doentt offer me upgrade :-( I have version 2016.0.0.0, please check my printscreen @david_r

Maybe try deleting the current LineJoiner and creating it again. The parameter dialog looks like this in FME 2016.1.0.1

As you can see it is pretty different.


lazarlubomir
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • July 15, 2016
david_r wrote:

Maybe try deleting the current LineJoiner and creating it again. The parameter dialog looks like this in FME 2016.1.0.1

As you can see it is pretty different.

I made it, but it still shows me the same dialogue :-(


david_r
Celebrity
  • July 15, 2016
lazarlubomir wrote:

I made it, but it still shows me the same dialogue :-(

Guess that's the way it looks in FME 2016.0 then. No problems, the functionality should be mostly the same.

Specify the List Name attribute name and look in the Inspector what happens.


lazarlubomir
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • July 15, 2016
david_r wrote:

Guess that's the way it looks in FME 2016.0 then. No problems, the functionality should be mostly the same.

Specify the List Name attribute name and look in the Inspector what happens.

Yeah, it works, thanks a lot! :-) Unfortunately, i have one more question. I have big amount of line features and I want to process spatial analyze with another data point source. I want to join lines, which touch together, into one feature and then create from them polygons. After that I can analyze if point is in area of polygon.

For example arrow on pic below - Now, it has 4 elements, I wanna join them into one and then create polygon around arrow. I have thousands similar objects. How can I continue to progress please?


lazarlubomir
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • July 15, 2016
david_r wrote:

Guess that's the way it looks in FME 2016.0 then. No problems, the functionality should be mostly the same.

Specify the List Name attribute name and look in the Inspector what happens.

And one more question to Linejoiner - is there any possibility to substitute "Break across group" parameter? Because I´m in situation when I have many lines in one source and many points features in second data source... I wanna to join lines according to attribute values but simultaneously lines should respect location of point features to get topologically clean dataset. How can I continue please?


david_r
Celebrity
  • July 18, 2016
david_r wrote:

Guess that's the way it looks in FME 2016.0 then. No problems, the functionality should be mostly the same.

Specify the List Name attribute name and look in the Inspector what happens.

The LineJoiner probably can't do everything for you, it will probably be necessary to use several transformers, all depending on the data.

To break lines at points, look at the Intersector or the PointOnLineOverlayer.

The TopologyBuilder might also be helpful to detect arrows (hint: analyze node connectivity).


lazarlubomir
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • July 19, 2016

@david_r Thank You so much for tips... I think that it can work in my case :-)


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings