org.jgrasstools.gears.modules.v.vectorfieldrounder.OmsVectorFieldRounder.html Maven / Gradle / Ivy
The newest version!
Module that rounds a defined field attribute. The rounding pattern has to be provided with the standard Java convention. More information about how to use the patterns are available in the Java Almanac .
For example if you want to round values in a double field to have only two decimals you can use the following pattern #.## or #.00
if you decide that the numbers have to have always two decimals, in case of just one a zero will be added at the end.
Inputs
- the vector of which to round values of a numeric field
- the double attribute field of the values to round
- the rounding pattern
Output
- the modified vector file