Revision 43420 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/DefaultEditableFeatureType.java
DefaultEditableFeatureType.java | ||
---|---|---|
340 | 340 |
throw new IllegalArgumentException("Attribute '" + name |
341 | 341 |
+ "' not found."); |
342 | 342 |
} |
343 |
if (attr.getType() != DataTypes.GEOMETRY) { |
|
344 |
throw new IllegalArgumentException("Attribute '" + name |
|
345 |
+ "' is not a geometry."); |
|
346 |
} |
|
343 |
// if (attr.getType() != DataTypes.GEOMETRY) {
|
|
344 |
// throw new IllegalArgumentException("Attribute '" + name
|
|
345 |
// + "' is not a geometry.");
|
|
346 |
// }
|
|
347 | 347 |
this.defaultGeometryAttributeName = name; |
348 | 348 |
this.defaultGeometryAttributeIndex = attr.getIndex(); |
349 | 349 |
} |
Also available in: Unified diff