Select to view content in your preferred language

Adjust points rotation based on underlying lines layer

178
3
Jump to solution
4 weeks ago
Labels (1)
Jake-MacLean
Emerging Contributor

Hi all,

 

I am trying to figure out a way to adjust the rotation of point symbols based on the orientation of underlaying line features. It is a utilities map and so I have features such as end caps and valves that I am trying to align with the water/sewer mains they are connected to. But so far have not been able to figure out how to essentially extract the orientation of the closest line and use it as a value to rotate the symbols. 

 

Can anyone help with this/has anyone needed to do something similar?

 

Thanks

0 Kudos
1 Solution

Accepted Solutions
LeonS
by
Frequent Contributor

You could use an Arcade expression that you can use with Attribute Rules on your dataset that will accomplish this. There are some great example Arcade expressions that you can use to implement this here:  

https://github.com/Esri/arcade-expressions/blob/master/attribute-rules/attribute_rule_calculation/Ro...

View solution in original post

0 Kudos
3 Replies
LeonS
by
Frequent Contributor

You could use an Arcade expression that you can use with Attribute Rules on your dataset that will accomplish this. There are some great example Arcade expressions that you can use to implement this here:  

https://github.com/Esri/arcade-expressions/blob/master/attribute-rules/attribute_rule_calculation/Ro...

0 Kudos
Jake-MacLean
Emerging Contributor

Hi @LeonS ,

with a little bit of tweaking I got this to work great. 

I made two versions, one to calculation rotation for inline features, and another for perpendicular features.

Really appreciate it!

Thanks

 

0 Kudos
LeonS
by
Frequent Contributor

You are welcome  Glad it worked out for you!

 

Leon

0 Kudos