Revision 44947 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.file/org.gvsig.fmap.dal.file.csv/src/main/java/org/gvsig/fmap/dal/store/csv/CSVStoreProvider.java
CSVStoreProvider.java | ||
---|---|---|
666 | 666 |
for (FieldTypeParser fieldType : fieldTypes) { |
667 | 667 |
EditableFeatureAttributeDescriptor fad = fType.add(fieldType.name, fieldType.type); |
668 | 668 |
if( fieldType.detectedValue!=null ) { |
669 |
fad.setRequiredBytes(Math.max(fieldType.detectedValue.getDisplaySize(), fieldType.size));
|
|
669 |
fad.setDisplaySize(Math.max(fieldType.detectedValue.getDisplaySize(), fieldType.size));
|
|
670 | 670 |
fad.setSize(Math.max(fieldType.detectedValue.getDisplaySize(), fieldType.size)); |
671 | 671 |
if( fad.getPrecision()<fieldType.detectedValue.getPrecision() ) { |
672 | 672 |
fad.setPrecision(fieldType.detectedValue.getPrecision()); |
... | ... | |
675 | 675 |
fad.setScale(fieldType.detectedValue.getScale()); |
676 | 676 |
} |
677 | 677 |
} else { |
678 |
fad.setRequiredBytes(fieldType.size);
|
|
678 |
fad.setDisplaySize(fieldType.size);
|
|
679 | 679 |
} |
680 | 680 |
if (fieldType.type == DataTypes.GEOMETRY ) { |
681 | 681 |
fad.setGeometryType(fieldType.geomType, fieldType.geomSubtype); |
Also available in: Unified diff