Revision 23750 branches/v2_0_0_prep/libraries/libFMap_mapcontext/src/org/gvsig/fmap/mapcontext/rendering/legend/driver/gvl/FMapGVLDriver.java
FMapGVLDriver.java | ||
---|---|---|
11 | 11 |
import org.exolab.castor.xml.MarshalException; |
12 | 12 |
import org.exolab.castor.xml.Marshaller; |
13 | 13 |
import org.exolab.castor.xml.ValidationException; |
14 |
import org.gvsig.fmap.data.ReadException; |
|
14 |
import org.gvsig.fmap.data.exceptions.ReadException;
|
|
15 | 15 |
import org.gvsig.fmap.data.feature.FeatureAttributeDescriptor; |
16 | 16 |
import org.gvsig.fmap.mapcontext.layers.FLayer; |
17 | 17 |
import org.gvsig.fmap.mapcontext.layers.FLayers; |
... | ... | |
96 | 96 |
try { |
97 | 97 |
for (int i = 0; i < fNames.length; i++) { |
98 | 98 |
|
99 |
int fieldIndex = m.getFeatureStore().getDefaultFeatureType().getFieldIndex(fNames[i]);
|
|
99 |
int fieldIndex = m.getFeatureStore().getDefaultFeatureType().getIndex(fNames[i]); |
|
100 | 100 |
if (fieldIndex != -1) { |
101 | 101 |
if(fTypes != null) |
102 | 102 |
if(!fTypes[i].equals(((FeatureAttributeDescriptor)m.getFeatureStore().getDefaultFeatureType().get(fieldIndex)).getDataType())) { |
Also available in: Unified diff