04-03-2017 08:11 AM
I wonder if it is possible to reset the spin of an object (or many objects) by a functional attribute. I can reset the spin with the workflow "Vector>SpinGeomery: Absolute Angle =0". But is it possible by adding a functional attribute as well? If I add the SPIN attribute to my Geometry, it works as a relative spin and not as an absolute spin.
Thanks a lot for your help!
Solved! Go to Solution.
04-03-2017 02:58 PM
To remove the orientation from an OrientedPointGeometry so that it has an angle of 0 you can use an expression like the following...
SPIN(Input.Geometry, (-1 * (ORIENTATION(Input.Geometry)-90)*-1))
To reset the orientation of existing point features you can use the Update Attributes command to update the attribute name that contains the geometry (i.e. the Geometry column) with this expression. In the example above the geometry column name is Geometry.
If you use this expression with Functional Attributes the result will be a query with a new geometry column set to an angle of 0.
I have added a Knowledge Base article with this information as well...
04-04-2017 12:10 AM
the functional attribute syntax depends on your regional language settings. So if you have the semicolon as a list separator, you must use ";". If you have language set to English, then usually comma is the list separator. The same holds for decimal numbers. Maybe this looks a little bit odd, but you should take it into account.