mil.nga.geopackage.extension.link.FeatureTileLinkDao Java Examples
The following examples show how to use
mil.nga.geopackage.extension.link.FeatureTileLinkDao.
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: NGAExtensions.java From geopackage-core-java with MIT License | 6 votes |
/** * Delete the Feature Tile Link extensions for the table * * @param geoPackage * GeoPackage * @param table * table name * @since 1.1.5 */ public static void deleteFeatureTileLink(GeoPackageCore geoPackage, String table) { FeatureTileLinkDao featureTileLinkDao = geoPackage .getFeatureTileLinkDao(); try { if (featureTileLinkDao.isTableExists()) { featureTileLinkDao.deleteByTableName(table); } } catch (SQLException e) { throw new GeoPackageException( "Failed to delete Feature Tile Link. GeoPackage: " + geoPackage.getName() + ", Table: " + table, e); } }
Example #2
Source File: NGAExtensions.java From geopackage-core-java with MIT License | 6 votes |
/** * Delete the Feature Tile Link extension including the extension entries * and custom tables * * @param geoPackage * GeoPackage * @since 3.2.0 */ public static void deleteFeatureTileLinkExtension( GeoPackageCore geoPackage) { FeatureTileLinkDao featureTileLinkDao = geoPackage .getFeatureTileLinkDao(); ExtensionsDao extensionsDao = geoPackage.getExtensionsDao(); try { if (featureTileLinkDao.isTableExists()) { geoPackage.dropTable(featureTileLinkDao.getTableName()); } if (extensionsDao.isTableExists()) { extensionsDao.deleteByExtension( FeatureTileTableCoreLinker.EXTENSION_NAME); } } catch (SQLException e) { throw new GeoPackageException( "Failed to delete Feature Tile Link extension and table. GeoPackage: " + geoPackage.getName(), e); } }
Example #3
Source File: GeoPackageCoreImpl.java From geopackage-core-java with MIT License | 6 votes |
/** * {@inheritDoc} */ @Override public boolean createFeatureTileLinkTable() { verifyWritable(); boolean created = false; FeatureTileLinkDao dao = getFeatureTileLinkDao(); try { if (!dao.isTableExists()) { created = tableCreator.createFeatureTileLink() > 0; } } catch (SQLException e) { throw new GeoPackageException("Failed to check if " + FeatureTileLink.class.getSimpleName() + " table exists and create it", e); } return created; }
Example #4
Source File: GeoPackageCoreImpl.java From geopackage-core-java with MIT License | 4 votes |
/** * {@inheritDoc} */ @Override public FeatureTileLinkDao getFeatureTileLinkDao() { return createDao(FeatureTileLink.class); }
Example #5
Source File: GeoPackageCore.java From geopackage-core-java with MIT License | 2 votes |
/** * Get a Feature Tile Link DAO * * @return feature tile link dao * @since 1.1.5 */ public FeatureTileLinkDao getFeatureTileLinkDao();