Package org.locationtech.udig.catalog

Examples of org.locationtech.udig.catalog.PostgisServiceExtension2


    }
   
    /** 'Create' params given the provided url, no magic occurs */
    @SuppressWarnings("unchecked")
    protected Map<String,Serializable> createParams( URL url ){
        PostgisServiceExtension2 serviceFactory = new PostgisServiceExtension2();
        @SuppressWarnings("rawtypes")
    Map params = serviceFactory.createParams( url );
        if( params != null) return params;
       
        Map<String,Serializable> params2 = new HashMap<String,Serializable>();
       
        params2.put(DBTYPE.key, (Serializable)DBTYPE.sample); //$NON-NLS-1$
View Full Code Here


        if( datastore!=null && tested ){
            return datastore;
        }
        featureStore=null;
        datastore=null;
        PostgisServiceExtension2 ext=new PostgisServiceExtension2();
        Map<String, Serializable> params = ext.createParams(PostgisServiceExtension2.DIALECT.toURL(url));
        PostgisNGDataStoreFactory factory = new PostgisNGDataStoreFactory();
       
        datastore=factory.createDataStore(params);
        return datastore;
    }
View Full Code Here

TOP

Related Classes of org.locationtech.udig.catalog.PostgisServiceExtension2

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.