Showing results for 
Search instead for 
Do you mean 

Assigning rotation to existing point geometries based on attribute value

by Anonymous on ‎03-15-2016 09:46 AM - edited on ‎04-03-2017 02:11 PM by Technical Evangelist (954 Views)


How can I assign a rotation angle to symbols associated with point geometries?  Given a dataset with point geometries, and an Angle attribute, how do I display these points with a rotated symbol (rotated by the Angle attribute value). What is the best way create OrientedPointGeometries with the orientation vector set by the Angle attribute?


You can use the Functional Attributes command with the following expression that will spin your point:


SPIN(Geometry, Angle)


where Geometry is the spatial geometry field that contains points that you want to spin and Angle is attribute containing the angle. If the angle is in radians, then you have to modify the expression to:


SPIN(Geometry, Angle*180/PI())


If you do not want a query, but instead, you want to update the original geometries in place, then use the Update Attributes command. Just remember, do not run the command twice because it will spin your geometry twice.