Revision 10627 trunk/libraries/libGDBMS/src/main/java/com/hardcode/gdbms/engine/data/file/FileSpatialDataSourceAdapter.java

View differences:

FileSpatialDataSourceAdapter.java
2 2

  
3 3
import java.awt.geom.Rectangle2D;
4 4

  
5
import com.hardcode.gdbms.driver.exceptions.ReadDriverException;
5 6
import com.hardcode.gdbms.engine.data.SpatialDataSource;
6 7
import com.hardcode.gdbms.engine.data.driver.DriverException;
7 8
import com.hardcode.gdbms.engine.data.driver.SpatialFileDriver;
8 9
import com.hardcode.gdbms.engine.spatial.Geometry;
9 10

  
10 11
/**
11
 * 
12
 *
12 13
 */
13 14
public class FileSpatialDataSourceAdapter extends FileDataSourceAdapter
14 15
        implements FileDataSource, SpatialDataSource {
......
17 18
     * @throws DriverException
18 19
     * @see com.hardcode.gdbms.engine.data.SpatialDataSource#getFullExtent()
19 20
     */
20
    public Rectangle2D getFullExtent() throws DriverException {
21
    public Rectangle2D getFullExtent() throws ReadDriverException {
21 22
        return ((SpatialFileDriver) getDriver()).getFullExtent();
22 23
    }
23 24

  
24 25
    /**
25 26
     * @see com.hardcode.gdbms.engine.data.SpatialDataSource#getGeometry(long)
26 27
     */
27
    public Geometry getGeometry(long rowIndex) throws DriverException {
28
    public Geometry getGeometry(long rowIndex) throws ReadDriverException {
28 29
        return ((SpatialFileDriver) getDriver()).getGeometry(rowIndex);
29 30
    }
30 31

  
31 32
    /**
32 33
     * @see com.hardcode.gdbms.engine.data.driver.SpatialDriver#getJTSGeometry(long)
33 34
     */
34
    public com.vividsolutions.jts.geom.Geometry getJTSGeometry(long rowIndex) throws DriverException {
35
    public com.vividsolutions.jts.geom.Geometry getJTSGeometry(long rowIndex) throws ReadDriverException {
35 36
        return ((SpatialFileDriver) getDriver()).getJTSGeometry(rowIndex);
36 37
    }
37 38

  

Also available in: Unified diff