Examples of createDataStore()


Examples of org.geotools.data.DataStoreFactorySpi.createDataStore()

                    if (Utils.isH2Store(spi)) {
                        Utils.fixH2DatabaseLocation(params,
                                DataUtilities.fileToURL(sourceF.getParentFile()).toExternalForm());
                    }
           
            tileIndexStore=spi.createDataStore(params);
              if(tileIndexStore==null)
                return false;
                 
              }
              else {
View Full Code Here

Examples of org.geotools.data.db2.DB2NGDataStoreFactory.createDataStore()

                        for( String key : this.params.keySet() ) {
                            String value = this.params.get(key).toString();
                            paramsLocal.put(key, value);
                        }
                        if (dsf.canProcess(paramsLocal)) {
                            this.ds = (JDBCDataStore) dsf.createDataStore(paramsLocal);
                        }
                    } catch (IOException e) {
                        msg = e;
                        throw e;
                    }
View Full Code Here

Examples of org.geotools.data.georest.GeoRestDataStoreFactory.createDataStore()

        Assert.assertTrue(factory.canProcess(createParams()));
    }

    public void testCreateDataStore() throws IOException {
        GeoRestDataStoreFactory factory = new GeoRestDataStoreFactory();
        DataStore ds = factory.createDataStore(createParams());
        Assert.assertNotNull(ds);
    }

    public void testGetFeatureSource() throws IOException {
        GeoRestDataStoreFactory factory = new GeoRestDataStoreFactory();
View Full Code Here

Examples of org.geotools.data.h2.H2DataStoreFactory.createDataStore()

        params.put( JDBCDataStoreFactory.DBTYPE.key, "h2");
       
        H2DataStoreFactory fac =  new H2DataStoreFactory();
        fac.setBaseDirectory( getTestData().getDataDirectoryRoot() );
       
        JDBCDataStore ds = fac.createDataStore(params);
        try {
            if ( ds.getSchema("widgets") != null ) {
                return;
            }
        }
View Full Code Here

Examples of org.geotools.data.mysql.MySQLDataStoreFactory.createDataStore()

            if (ds == null) {
                changed = true;
                MySQLDataStoreFactory dsf = MySQLServiceExtension.getFactory();
                if (dsf.canProcess(params)) {
                    try {
                        ds = dsf.createDataStore(params);
                    } catch (IOException e) {
                        msg = e;
                        throw e;
                    }
                }
View Full Code Here

Examples of org.geotools.data.mysql.MySQLDataStoreFactory.createDataStore()

    params.put(MySQLDataStoreFactory.PORT.key, port);
    params.put(MySQLDataStoreFactory.USER.key, user);
    params.put(MySQLDataStoreFactory.PASSWD.key, passwd);
    params.put(MySQLDataStoreFactory.DATABASE.key, database);
    MySQLDataStoreFactory dsFactory = new MySQLDataStoreFactory();
    DataStore ds = dsFactory.createDataStore(params);
    return ds;
  }

  public static DataStore getDataStoreFromArcSDE(String server, int port,
      String instance, String user, String passwd) throws Exception {
View Full Code Here

Examples of org.geotools.data.oracle.OracleDataStoreFactory.createDataStore()

    params.put("port", port);
    params.put("user", user);
    params.put("passwd", passwd);
    params.put("instance", instance);
    OracleDataStoreFactory dsFactory = new OracleDataStoreFactory();
    DataStore ds = dsFactory.createDataStore(params);
    return ds;
  }
}
View Full Code Here

Examples of org.geotools.data.oracle.OracleNGDataStoreFactory.createDataStore()

                    OracleNGDataStoreFactory dsf = new OracleNGDataStoreFactory();
                    checkPort(params);
                    assert params.get("port") instanceof String; //$NON-NLS-1$
                    if (dsf.canProcess(params)) {
                        try {
                            ds = dsf.createDataStore(params);
                        } catch (IOException e) {
                            msg = e;
                            throw e;
                        }
                    }
View Full Code Here

Examples of org.geotools.data.postgis.PostgisDataStoreFactory.createDataStore()

    params.put(PostgisDataStoreFactory.USER.key, user);
    params.put(PostgisDataStoreFactory.PASSWD.key, passwd);
    params.put(PostgisDataStoreFactory.DATABASE.key, database);
    params.put(PostgisDataStoreFactory.SCHEMA.key, schema);
    PostgisDataStoreFactory dsFactory = new PostgisDataStoreFactory();
    DataStore ds = dsFactory.createDataStore(params);
    return ds;
  }

  public static DataStore getDataStoreFromMySQL(String host, int port,
      String user, String passwd, String database) throws Exception {
View Full Code Here

Examples of org.geotools.data.postgis.PostgisDataStoreFactory.createDataStore()

          param.put("loose bbox","true");
          param.put("dbtype","postgis");
         
         
           
         THIS.ds = pgdsf.createDataStore(param);
        
          THIS.MODULE = args[1];
          THIS.parseModule();
        
         System.out.println("start state = "+THIS.state+" county="+THIS.county);
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.