Package org.gdbms.engine.data.file.spatial

Examples of org.gdbms.engine.data.file.spatial.SpatialFileSourceDefinition


                "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"));
    dsf.registerDataSource("shppoligonos", new SpatialFileSourceDefinition(basedir + "/src/test/resources/poligonos.shp"));
    dsf.registerDataSource("dxfprueba", new SpatialFileSourceDefinition(basedir + "/src/test/resources/dxfprueba.dxf"));
    dsf.registerDataSource("spatialobjectpersona", new SpatialObjectSourceDefinition(new FakeSpatialObjectDriver()));
    dsf.registerDataSource("objectpersona", new ObjectSourceDefinition(new FakeObjectDriver()));
    dsf.registerDataSource("alltypes", new ObjectSourceDefinition(new AllTypesObjectDriver()));
   
    InternalExceptionCatcher.addInternalExceptionListener(new InternalExceptionListener() {
View Full Code Here


    dsdm.addField("text", "Numeric", new String[] { DBFDriver.LENGTH,
        DBFDriver.PRECISION }, new String[] { "1", "0" });
    ds.createDataSource(new FileSourceCreation(new File(
        "src/test/resources/big.shp"), dsdm));

    ds.registerDataSource("big", new SpatialFileSourceDefinition(new File(
        "src/test/resources/big.shp")));

    DataSource d = ds.getDataSource("big");

    d.beginTrans();
View Full Code Here

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

TOP

Related Classes of org.gdbms.engine.data.file.spatial.SpatialFileSourceDefinition

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.