Package org.geotools.jdbc

Examples of org.geotools.jdbc.JDBCDataStore.dispose()


            // check dialect
            assertTrue(store.getSQLDialect() instanceof PostGISDialect);
            // force connection usage
            assertNotNull(store.getSchema(tname("ft1")));
        } finally {
            store.dispose();
        }
    }
   
    public void testSimplifyParameterDisabled() throws Exception {
        PostgisNGDataStoreFactory factory = new PostgisNGDataStoreFactory();
View Full Code Here


            assertFalse(dialect.isSimplifyEnabled());
            Set<Hints.Key> baseHints = new HashSet<Key>();
            dialect.addSupportedHints(baseHints);
            assertTrue(baseHints.isEmpty());
        } finally {
            store.dispose();
        }
    }
   
    public void testSimplifyParameter() throws Exception {
        PostgisNGDataStoreFactory factory = new PostgisNGDataStoreFactory();
View Full Code Here

            Set<Hints.Key> baseHints = new HashSet<Key>();
            dialect.addSupportedHints(baseHints);
            assertFalse(baseHints.isEmpty());
            assertTrue(baseHints.contains(Hints.GEOMETRY_SIMPLIFICATION));
        } finally {
            store.dispose();
        }
    }

}
View Full Code Here

        sf.setAttribute("g", new GeometryFactory().createPoint( new Coordinate(2,2)));
        sf.setAttribute( "name", "two");
        fw.write();
       
        fw.close();
        ds.dispose();
    }

    @Before
    public void removeAcmeDataStore() {
        removeStore("gs", "acme");
View Full Code Here

        sf.setAttribute("g", new GeometryFactory().createPoint( new Coordinate(2,2)));
        sf.setAttribute( "name", "two");
        fw.write();
       
        fw.close();
        ds.dispose();
    }
   
    public void testCreateDataStore() throws Exception {
        assertNull( catalog.getDataStoreByName( "gs", "acme") );
       
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.