You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sis.apache.org by de...@apache.org on 2013/11/02 01:27:16 UTC
svn commit: r1538106 -
/sis/branches/JDK7/core/sis-referencing/src/main/java/org/apache/sis/io/wkt/Formatter.java
Author: desruisseaux
Date: Sat Nov 2 00:27:15 2013
New Revision: 1538106
URL: http://svn.apache.org/r1538106
Log:
Missing file from the previous commit.
Modified:
sis/branches/JDK7/core/sis-referencing/src/main/java/org/apache/sis/io/wkt/Formatter.java
Modified: sis/branches/JDK7/core/sis-referencing/src/main/java/org/apache/sis/io/wkt/Formatter.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/core/sis-referencing/src/main/java/org/apache/sis/io/wkt/Formatter.java?rev=1538106&r1=1538105&r2=1538106&view=diff
==============================================================================
--- sis/branches/JDK7/core/sis-referencing/src/main/java/org/apache/sis/io/wkt/Formatter.java [UTF-8] (original)
+++ sis/branches/JDK7/core/sis-referencing/src/main/java/org/apache/sis/io/wkt/Formatter.java [UTF-8] Sat Nov 2 00:27:15 2013
@@ -39,7 +39,7 @@ import org.opengis.referencing.operation
import org.opengis.util.CodeList;
import org.apache.sis.measure.Units;
-import org.apache.sis.math.MathFunctions;
+import org.apache.sis.math.DecimalFunctions;
import org.apache.sis.util.Numbers;
import org.apache.sis.util.CharSequences;
import org.apache.sis.util.ArgumentChecks;
@@ -702,7 +702,7 @@ public class Formatter {
* a unit conversion). In the case of WGS84 semi-major axis in metres, we still have a
* maximum of 8 fraction digits, which is more than enough.
*/
- numberFormat.setMaximumFractionDigits(MathFunctions.fractionDigitsForValue(number) - 2);
+ numberFormat.setMaximumFractionDigits(DecimalFunctions.fractionDigitsForValue(number) - 2);
numberFormat.setMinimumFractionDigits(1); // Must be after setMaximumFractionDigits(…).
numberFormat.format(number, buffer, dummy);
resetColor();