Revision 3271 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/drivers/DefaultDBDriver.java
DefaultDBDriver.java | ||
---|---|---|
223 | 223 |
* @see com.iver.cit.gvsig.fmap.layers.ReadableVectorial#getShapeType() |
224 | 224 |
*/ |
225 | 225 |
public int getShapeType() { |
226 |
IGeometry geom = getShape(0);
|
|
226 |
IGeometry geom; |
|
227 | 227 |
int result = FShape.MULTI; |
228 |
if (geom != null) |
|
229 |
result = geom.getGeometryType(); |
|
230 |
return result; |
|
228 |
try { |
|
229 |
geom = getShape(0); |
|
230 |
if (geom != null) |
|
231 |
result = geom.getGeometryType(); |
|
232 |
} catch (IOException e) { |
|
233 |
e.printStackTrace(); |
|
234 |
} |
|
235 |
return result; |
|
231 | 236 |
} |
232 | 237 |
|
233 | 238 |
public int getFieldType(int idField) throws com.hardcode.gdbms.engine.data.driver.DriverException |
Also available in: Unified diff