Revision 26219 branches/v2_0_0_prep/libraries/libFMap_dalfile/src/org/gvsig/fmap/dal/store/dbf/utils/DbaseFileHeader.java
DbaseFileHeader.java | ||
---|---|---|
176 | 176 |
" Setting to 0 no decimal data will be saved."); |
177 | 177 |
tempFieldDescriptors[myFieldDescriptions.length].myDecimalCount = 0; |
178 | 178 |
} |
179 |
|
|
180 |
if (inDecimalCount > (inFieldLength - 1)) { |
|
181 |
warn("Field Decimal Position for " + inFieldName + " set to " + |
|
182 |
inDecimalCount + " Setting to " + (inFieldLength - 1) + |
|
183 |
" no non decimal data will be saved."); |
|
184 |
tempFieldDescriptors[myFieldDescriptions.length].myDecimalCount = inFieldLength - |
|
185 |
1; |
|
186 |
} |
|
179 |
// |
|
180 |
// if (inDecimalCount > (inFieldLength - 1)) {
|
|
181 |
// warn("Field Decimal Position for " + inFieldName + " set to " +
|
|
182 |
// inDecimalCount + " Setting to " + (inFieldLength - 1) +
|
|
183 |
// " no non decimal data will be saved.");
|
|
184 |
// tempFieldDescriptors[myFieldDescriptions.length].myDecimalCount = inFieldLength -
|
|
185 |
// 1;
|
|
186 |
// }
|
|
187 | 187 |
} else if ((inFieldType == 'L') || (inFieldType == 'l')) { |
188 | 188 |
tempFieldDescriptors[myFieldDescriptions.length].myFieldType = 'L'; |
189 | 189 |
|
... | ... | |
548 | 548 |
// mismo est? puesto |
549 | 549 |
// a pi??n. |
550 | 550 |
int decimales = descriptor.getPrecision(); |
551 |
if ((type==DataTypes.DOUBLE || type==DataTypes.FLOAT) && decimales==0){ |
|
552 |
decimales=1; |
|
553 |
} |
|
551 | 554 |
|
552 | 555 |
if (DataTypes.DOUBLE == type || DataTypes.FLOAT == type |
553 | 556 |
|| DataTypes.INT == type || DataTypes.LONG == type) { |
Also available in: Unified diff