Revision 41058 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 | ||
---|---|---|
291 | 291 |
} |
292 | 292 |
|
293 | 293 |
public Geometry getDefaultGeometry() { |
294 |
return this.data.getDefaultGeometry(); |
|
294 |
Geometry geom = this.data.getDefaultGeometry(); |
|
295 |
if( geom!=null ) { |
|
296 |
return geom; |
|
297 |
} |
|
298 |
int i = this.data.getType().getDefaultGeometryAttributeIndex(); |
|
299 |
geom = (Geometry) this.get(i); |
|
300 |
return geom; |
|
295 | 301 |
} |
296 | 302 |
|
297 | 303 |
public IProjection getDefaultSRS() { |
Also available in: Unified diff