Examples of DBSpatialSource


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

  }

  @Override
  public DataSource createDataSource(String tableName, String tableAlias, String driverName) throws DataSourceCreationException {
    ((GDBMSDriver) driver).setDataSourceFactory(getDataSourceFactory());
        DBSpatialSource dbss = new DBSpatialSource(null, 0, null, null, null, null, null, null);

    DBSpatialDataSourceAdapter adapter = new DBSpatialDataSourceAdapter(
        tableName, tableAlias, dbss, (SpatialDBDriver) driver);
    adapter.setDataSourceFactory(getDataSourceFactory());

    getDataSourceFactory().getDelegatingStrategy().registerView(tableName,
        dbss.getTableName());

    return adapter;
  }
View Full Code Here

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

        "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

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

    } catch (SQLException e) {
    }
    s.close();
    c.close();

    DBSpatialSource source = new DBSpatialSource("127.0.0.1", 5432,
        "orbiscad", "postgres", "", "nueva", "geom", "jdbc:postgresql");
    DefaultSpatialDriverMetadata dsdm = new DefaultSpatialDriverMetadata();
    dsdm.addSpatialField("geom", FShape.MULTI);
    dsdm.addField("field", "INTEGER");
    dsdm.setPrimaryKey(new String[] { "field" });
View Full Code Here

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

    } catch (SQLException e) {
    }
    s.close();
    c.close();

    DBSpatialSource source = new DBSpatialSource("127.0.0.1", 5432,
        "orbiscad", "postgres", "", "nueva", "geom", "jdbc:postgresql");
    DefaultSpatialDriverMetadata dsdm = new DefaultSpatialDriverMetadata();
    dsdm.addSpatialField("geom", FShape.MULTI);
    dsdm.addField("field", "INTEGER");
    DBSourceCreation dbsc = new DBSourceCreation(source, dsdm);
View Full Code Here

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

    } catch (SQLException e) {
    }
    s.close();
    c.close();

    DBSpatialSource source = new DBSpatialSource("127.0.0.1", 5432,
        "orbiscad", "postgres", "", "nueva", "geom", "jdbc:postgresql");
    DefaultSpatialDriverMetadata dsdm = new DefaultSpatialDriverMetadata();
    dsdm.addSpatialField("geom", FShape.POINT);
    dsdm.addField("field", "CHAR");
    dsdm.setPrimaryKey(new String[] { "field" });
View Full Code Here

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

    } catch (SQLException e) {
    }
    s.close();
    c.close();

    DBSpatialSource source = new DBSpatialSource("127.0.0.1", 5432,
        "orbiscad", "postgres", "", "nueva", "geom", "jdbc:postgresql");
    DefaultSpatialDriverMetadata dsdm = new DefaultSpatialDriverMetadata();
    dsdm.addSpatialField("geom", FShape.POINT);
    String[] types = new String[]{"descomentar cuando haya driver de postgis"};//new PostGISDriver().getAvailableTypes();
    for (int i = 0; i < types.length; i++) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.