Skip to main content

Hey,

I have two shapefiles - one is a line shapefile with power lines (blue in Screenshot) and one is a point shapefile with power poles (red in Screenshot).

I want to reduce the power poles by only symbolizing the power poles, where the power line changes the direction by more than 2 degree. In other words: I only want to symbolize the power poles, where the power lines change the direction by more than 2 degree.

 

Can you help me how I can achieve this and with which transformers?

 

Would be great if somebody knows how to achieve this! :)

Cheers!

One way to do this is to chop the polylines to lines and send them through the TopologyBuilder. This can return the angles on the nodes. Then calculate the differences in angles between the segments. Then spatially match the nodes on the power poles.

2021-06-11_10h18_26


One way to do this is to chop the polylines to lines and send them through the TopologyBuilder. This can return the angles on the nodes. Then calculate the differences in angles between the segments. Then spatially match the nodes on the power poles.

2021-06-11_10h18_26

ChopperThanks, I´ll give it a try. But how do I chop them? By vertex or by length and then with which value? And do you mean with "Then spatially match the nodes..." using the Spatial Relator? Or which Spatial Transformer?


ChopperThanks, I´ll give it a try. But how do I chop them? By vertex or by length and then with which value? And do you mean with "Then spatially match the nodes..." using the Spatial Relator? Or which Spatial Transformer?

By vertex, 2 vertices.

The SpatialRelator will do fine.


ChopperThanks, I´ll give it a try. But how do I chop them? By vertex or by length and then with which value? And do you mean with "Then spatially match the nodes..." using the Spatial Relator? Or which Spatial Transformer?

Thank you very much! I´ll keep you updated if it worked or not! :)


ChopperThanks, I´ll give it a try. But how do I chop them? By vertex or by length and then with which value? And do you mean with "Then spatially match the nodes..." using the Spatial Relator? Or which Spatial Transformer?

Added sample workspace.

2021-06-11_10h07_34 


ChopperThanks, I´ll give it a try. But how do I chop them? By vertex or by length and then with which value? And do you mean with "Then spatially match the nodes..." using the Spatial Relator? Or which Spatial Transformer?

Only problem I have right now is that I don´t know how to filter out the power poles where the degree changes more than 2 degree? I´m confused of the long numbers with my data (see Screenshots below). Both of my screenshots look like the powerline changes more than 2 degree, but only the green one has more than 2 degree change or am I reading this totaly wrong?

 

And how can I understand the "minus" degree number? :OMore than 2 degree changeMinus degreeLess than 2 degree change)... 😮


ChopperThanks, I´ll give it a try. But how do I chop them? By vertex or by length and then with which value? And do you mean with "Then spatially match the nodes..." using the Spatial Relator? Or which Spatial Transformer?

You can use the Tester transformer to test if the value is greater than -2 and smaller than 2.


Reply