Revision 44090 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.impl/src/main/java/org/gvsig/fmap/dal/feature/impl/DefaultFeatureType.java
DefaultFeatureType.java | ||
---|---|---|
835 | 835 |
this.requiredFields = true; |
836 | 836 |
} |
837 | 837 |
} |
838 |
if (this.defaultGeometryAttributeName == null && attr.getType() == DataTypes.GEOMETRY) { |
|
839 |
this.defaultGeometryAttributeName = attr.getName(); |
|
838 |
switch(attr.getType()) { |
|
839 |
case DataTypes.GEOMETRY: |
|
840 |
if (this.defaultGeometryAttributeName == null ) { |
|
841 |
this.defaultGeometryAttributeName = attr.getName(); |
|
842 |
} |
|
843 |
break; |
|
844 |
case DataTypes.INSTANT: |
|
845 |
case DataTypes.INTERVAL: |
|
846 |
case DataTypes.DATE: |
|
847 |
if (this.defaultTimeAttributeName == null && attr.isTime() ) { |
|
848 |
this.defaultTimeAttributeName = attr.getName(); |
|
849 |
} |
|
850 |
break; |
|
840 | 851 |
} |
841 |
if (this.defaultTimeAttributeName == null && |
|
842 |
(attr.getType() == DataTypes.INSTANT || attr.getType() == DataTypes.INTERVAL) ) { |
|
843 |
this.defaultTimeAttributeName = attr.getName(); |
|
844 |
} |
|
845 | 852 |
} |
846 | 853 |
if (this.defaultGeometryAttributeName != null) { |
847 | 854 |
this.defaultGeometryAttributeIndex = this.getIndex(this.defaultGeometryAttributeName); |
Also available in: Unified diff