Package org.gdbms.engine.data.db

Examples of org.gdbms.engine.data.db.SpatialDBTableSourceDefinition


        "persona", "jdbc:hsqldb:file")));
    dsf.registerDataSource("hsqldbapellido", new DBQuerySourceDefinition(new DBSource(null, 0,
            basedir + "/src/test/resources/testdb", "sa", "", null, "jdbc:hsqldb:file"), "select apellido from persona"));
    dsf.registerDataSource("nulos", new FileSourceDefinition(basedir + "/src/test/resources/nulos.csv"));
   
        dsf.registerDataSource("points0", new SpatialDBTableSourceDefinition(new DBSpatialSource("127.0.0.1", 5432,
                "orbiscad", "postgres", "", "points0", "the_geom", "jdbc:postgresql")));
        dsf.registerDataSource("pgWithGDBMS", new SpatialDBTableSourceDefinition(new DBSpatialSource("127.0.0.1", 5432,
                "orbiscad", "postgres", "", "polygon0", "the_geom", "jdbc:postgresql")));
   
    dsf.registerDataSource("foo", new DBTableSourceDefinition(new DBSource(null, 0, null, null, null, null, "jdbc:foo")));
    dsf.registerDataSource("shppuntos", new SpatialFileSourceDefinition(basedir + "/src/test/resources/puntos.shp"));
    dsf.registerDataSource("shplineas", new SpatialFileSourceDefinition(basedir + "/src/test/resources/lineas.shp"));
View Full Code Here


   * @throws DataSourceCreationException
   *             If the instance creation fails
   */
  public SpatialDataSource getSpatialDataSource(DBSpatialSource dbSource)
      throws DriverLoadException, DataSourceCreationException {
    SpatialDBTableSourceDefinition fsd = new SpatialDBTableSourceDefinition(
        dbSource);
    String name = nameAndRegisterDataSource(fsd);
    try {
      return (SpatialDataSource) getDataSource(name);
    } catch (NoSuchTableException e) {
View Full Code Here

TOP

Related Classes of org.gdbms.engine.data.db.SpatialDBTableSourceDefinition

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.