Solved

AttributeManager - Arithmetic expression (Decimal Places)


Userlevel 2
Badge +10

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? 

icon

Best answer by geomancer 7 May 2024, 16:46

View original

3 replies

Userlevel 5
Badge +36

@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.

Userlevel 5

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

Userlevel 2
Badge +10

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 ‘more tidy’….

Reply