Revision 11655 trunk/libraries/libGPE-GML/src/org/gvsig/gpe/gml/writer/geometries/DoubleWriter.java
DoubleWriter.java | ||
---|---|---|
6 | 6 |
|
7 | 7 |
import org.gvsig.gpe.GPEDefaults; |
8 | 8 |
import org.gvsig.gpe.GPEErrorHandler; |
9 |
import org.gvsig.gpe.gml.GMLTags; |
|
9 | 10 |
import org.gvsig.gpe.xml.writer.Writer; |
10 | 11 |
|
11 | 12 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
... | ... | |
52 | 53 |
* |
53 | 54 |
* $Id$ |
54 | 55 |
* $Log$ |
55 |
* Revision 1.5 2007-05-14 11:18:12 jorpiell |
|
56 |
* Revision 1.6 2007-05-15 10:39:39 jorpiell |
|
57 |
* Add the number of decimals property |
|
58 |
* |
|
59 |
* Revision 1.5 2007/05/14 11:18:12 jorpiell |
|
56 | 60 |
* Add the ErrorHandler to all the methods |
57 | 61 |
* |
58 | 62 |
* Revision 1.4 2007/05/10 12:21:40 jorpiell |
... | ... | |
98 | 102 |
if (decimalFormat == null){ |
99 | 103 |
decimalFormat = new DecimalFormat(); |
100 | 104 |
DecimalFormatSymbols dfs = new DecimalFormatSymbols(); |
101 |
dfs.setDecimalSeparator(GPEDefaults.getStringProperty(GPEDefaults.COORDINATES_SEPARATOR).charAt(0)); |
|
102 |
decimalFormat.setDecimalFormatSymbols(dfs); |
|
105 |
dfs.setDecimalSeparator(GPEDefaults.getStringProperty(GPEDefaults.DECIMAL).charAt(0)); |
|
106 |
decimalFormat.setDecimalFormatSymbols(dfs); |
|
107 |
int decimalDigits = GPEDefaults.getIntPropertyProperty(GPEDefaults.DECIMAL_DIGITS); |
|
108 |
if (decimalDigits == -1){ |
|
109 |
decimalDigits = GMLTags.GML_DEAFULT_DECIMAL_DIGITS; |
|
110 |
} |
|
111 |
decimalFormat.setMaximumFractionDigits(decimalDigits); |
|
103 | 112 |
} |
104 | 113 |
return decimalFormat; |
105 | 114 |
} |
Also available in: Unified diff