Package org.geotools.data

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


    public DataStore createDataStore(ImportData data) throws IOException {
        DataStoreFactorySpi dataStoreFactory = factory();

        Map<String,Serializable> params = createConnectionParameters(data);
        if (params != null && dataStoreFactory.canProcess(params)) {
            DataStore dataStore = dataStoreFactory.createDataStore(params);
            if (dataStore != null) {
                return dataStore;
            }
        }
View Full Code Here

        if (factory == null) {
            throw new IOException("Unable to find data store for specified parameters");
        }

        m.setTask("Loading tables");
        DataStore store = factory.createDataStore(parameters);
        if (store == null) {
            throw new IOException("Unable to create data store from specified parameters");
        }

        format = DataFormat.lookup(parameters);
View Full Code Here

        }

        try {
      ServletContext sc = request.getSession().getServletContext();
      Map niceParams = DataStoreUtils.getParams(connectionParams, sc);
            DataStore victim = factory.createDataStore(niceParams);

            if (victim == null) {
                // We *really* could not use these params!
                //
   
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.