Skip to main content
Solved

AttributeManager - Arithmetic expression (Decimal Places)


galigis
Enthusiast
Forum|alt.badge.img+20

Hi All,

I’m trying to improve the performance of my workbench by reducing the number of transformers. I was able to use AttributeManager to calculate the length of lines with the expression @Length() but I can’t work out how to round up the value up to 3 decimal places,

Is that doable using the arithmetic expression instead of AttributeRounder transformer? 

Best answer by geomancer

@Round(@Value(Number),3)

will do the trick!

@Length() calculates the length of line features. For polygonal features, the length is equal to the sum of its perimeter and the perimeter of any holes within it.

View original
Did this help you find an answer to your question?

3 replies

geomancer
Evangelist
Forum|alt.badge.img+50
  • Evangelist
  • Best Answer
  • May 7, 2024

@Round(@Value(Number),3)

will do the trick!

@Length() calculates the length of line features. For polygonal features, the length is equal to the sum of its perimeter and the perimeter of any holes within it.


david_r
Celebrity
  • May 7, 2024

Is there a particular reason for the assumption that less transformers equals better performance?


galigis
Enthusiast
Forum|alt.badge.img+20
  • Author
  • Enthusiast
  • May 7, 2024

Hi @david_r  I have been always under the impression that using using an AttributeManager right at the end of the workbench to help with areas, length, round up values, etc will improve the performance and make the tool tidier….


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings