Revision 47642 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/simplereader/SimpleReaderStoreProvider.java
SimpleReaderStoreProvider.java | ||
---|---|---|
637 | 637 |
} |
638 | 638 |
|
639 | 639 |
protected boolean mustFixFeatureType() { |
640 |
//Este m?todo lo debe sobreescribir el CSV |
|
641 |
// try { |
|
642 |
// String param_types_def = CSVStoreParameters.getRawFieldTypes(this.getParameters()); |
|
643 |
// String[] pointDimensionNames = CSVStoreParameters.getPointDimensionNames(this.getParameters()); |
|
644 |
// String geometry_column = CSVStoreParameters.getGeometryColumn(this.getParameters()); |
|
645 |
// |
|
646 |
// |
|
647 |
// FeatureType dalFeatureType = this.getStoreServices().getDefaultFeatureType(); |
|
648 |
// if (StringUtils.isNotBlank(geometry_column)){ |
|
649 |
// FeatureAttributeDescriptor attr = dalFeatureType.getAttributeDescriptor(geometry_column); |
|
650 |
// if(attr == null || attr.getType() != DataTypes.GEOMETRY){ |
|
651 |
// return true; |
|
652 |
// } |
|
653 |
// } |
|
654 |
// if (StringUtils.isNotBlank(param_types_def) |
|
655 |
// || pointDimensionNames != null) { |
|
656 |
// for (FeatureAttributeDescriptor dalAttr : dalFeatureType) { |
|
657 |
// if(dalAttr.isComputed()){ |
|
658 |
// continue; |
|
659 |
// } |
|
660 |
// FeatureAttributeDescriptor csvAttr = featureType.getAttributeDescriptor(dalAttr.getName()); |
|
661 |
// if(csvAttr == null){ |
|
662 |
// return true; |
|
663 |
// } |
|
664 |
// if(!dalAttr.get("all").equals(csvAttr.get("all"))){ |
|
665 |
// return true; |
|
666 |
// } |
|
667 |
// } |
|
668 |
// } |
|
669 |
// } catch (DataException ex) { |
|
670 |
// LOGGER.warn("Can't check if should fix the feature type", ex); |
|
671 |
// } |
|
672 | 640 |
return false; |
673 | 641 |
} |
674 | 642 |
|
Also available in: Unified diff