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/DefaultFeature.java
DefaultFeature.java | ||
---|---|---|
308 | 308 |
return geom; |
309 | 309 |
} |
310 | 310 |
int i = this.data.getType().getDefaultGeometryAttributeIndex(); |
311 |
geom = (Geometry) this.get(i); |
|
312 |
return geom; |
|
311 |
Object x = this.get(i); |
|
312 |
if( x instanceof Geometry ) { |
|
313 |
return (Geometry) x; |
|
314 |
} |
|
315 |
return this.getGeometry(i); |
|
313 | 316 |
} |
314 | 317 |
|
315 | 318 |
public IProjection getDefaultSRS() { |
Also available in: Unified diff