Package org.gdbms.engine.data.driver

Examples of org.gdbms.engine.data.driver.DriverException


            String dbf = shpPath.substring(0, shpPath.length() - 3) + "dbf";
            DBFDriver dbfDriver = new DBFDriver();
            dbfDriver.setDataSourceFactory(dsf);
            dbfDriver.writeFile(new File(dbf), new SpatialToAlphanumericalDataSourceAdapter(dataSource));
        } catch (IOException e) {
            throw new DriverException(e);
        } catch (ShapefileException e) {
            throw new DriverException(e);
        }
    }
View Full Code Here


                break;
            }

            filewrite.write(new IGeometry[0], type);
        } catch (IOException e) {
            throw new DriverException(e);
        } catch (ShapefileException e) {
            throw new DriverException(e);
        }
    }
View Full Code Here

        }
    }

    public void close() throws DriverException {
        if (failOnClose) {
            throw new DriverException();
        }
    }
View Full Code Here

  public void close() throws DriverException {
    try{
      adapter.stop();
      dataSource.stop();
    } catch (DriverIOException e) {
      throw new DriverException(e);
    }
  }
View Full Code Here

  public void close() throws DriverException {
    try{
      adapter.stop();
      dataSource.stop();
    } catch (DriverIOException e) {
      throw new DriverException(e);
    } catch (DriverException e) {
            throw new DriverException(e);
    }
  }
View Full Code Here

     */
    public Rectangle2D getFullExtent() throws DriverException {
      try {
        return adapter.getFullExtent();
      } catch (DriverIOException e) {
        throw new DriverException(e);
      }
    }
View Full Code Here

    public IGeometry getIGeometry(int rowIndex) throws DriverException {
      try {
      return adapter.getShape(rowIndex);
    } catch (DriverIOException e) {
      throw new DriverException(e);
    }
    }
View Full Code Here

     */
    private Value getGeometry(long rowIndex) throws DriverException {
      try {
            return GeometryFactory.createGeometry(adapter.getShape((int) rowIndex));
      } catch (DriverIOException e) {
        throw new DriverException(e);
      }
    }
View Full Code Here

    public boolean failOnClose = false;
    public boolean failOnCopy = false;
   
    public void writeFile(File file, SpatialDataSource dataSource) throws DriverException {
        if (failOnWrite) {
            throw new DriverException();
        }
    }
View Full Code Here

        }
    }

    public void writeFile(File file, DataSource dataSource) throws DriverException {
        if (failOnWrite) {
            throw new DriverException();
        }
    }
View Full Code Here

TOP

Related Classes of org.gdbms.engine.data.driver.DriverException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.