Java Code Examples for mil.nga.geopackage.extension.GeoPackageExtensions#deleteExtensions()
The following examples show how to use
mil.nga.geopackage.extension.GeoPackageExtensions#deleteExtensions() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GeoPackageExample.java From geopackage-android with MIT License | 4 votes |
/** * Test the GeoPackage example extensions * * @throws SQLException upon error * @throws IOException upon error */ @Test public void testExampleExtensions() throws SQLException, IOException, NameNotFoundException { create(); GeoPackageManager manager = GeoPackageFactory.getManager(activity); GeoPackage geoPackage = manager.open(GEOPACKAGE_NAME); validateExtensions(geoPackage, true); validateNGAExtensions(geoPackage, true); GeoPackageExtensions.deleteExtensions(geoPackage); validateExtensions(geoPackage, false); validateNGAExtensions(geoPackage, false); geoPackage.close(); TestCase.assertTrue(manager.delete(GEOPACKAGE_NAME)); }
Example 2
Source File: GeoPackageExample.java From geopackage-java with MIT License | 4 votes |
/** * Test the GeoPackage example extensions * * @throws SQLException * upon error * @throws IOException * upon error */ @Test public void testExampleExtensions() throws SQLException, IOException { create(); File file = new File(GEOPACKAGE_FILE); GeoPackage geoPackage = GeoPackageManager.open(file); validateExtensions(geoPackage, true); validateNGAExtensions(geoPackage, true); GeoPackageExtensions.deleteExtensions(geoPackage); validateExtensions(geoPackage, false); validateNGAExtensions(geoPackage, false); geoPackage.close(); TestCase.assertTrue(file.delete()); }