Skip to main content
Solved

Only symbolize points on lines, where the line changes direction over 2 degree

  • June 11, 2021
  • 7 replies
  • 37 views

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!

Best answer by nielsgerrits

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 

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

nielsgerrits
VIP
Forum|alt.badge.img+62

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


  • Author
  • June 11, 2021

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?


nielsgerrits
VIP
Forum|alt.badge.img+62

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.


  • Author
  • June 11, 2021

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! :)


nielsgerrits
VIP
Forum|alt.badge.img+62
  • Best Answer
  • June 11, 2021

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 


  • Author
  • June 11, 2021

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)... :O


nielsgerrits
VIP
Forum|alt.badge.img+62

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.