Java Code Examples for mil.nga.geopackage.GeoPackage#isFeatureTable()
The following examples show how to use
mil.nga.geopackage.GeoPackage#isFeatureTable() .
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: FeatureTileGenerator.java From geopackage-android with MIT License | 6 votes |
/** * {@inheritDoc} */ @Override protected void preTileGeneration() { // Link the feature and tile table if they are in the same GeoPackage GeoPackage geoPackage = getGeoPackage(); String featureTable = featureTiles.getFeatureDao().getTableName(); String tileTable = getTableName(); if (linkTables && geoPackage.isFeatureTable(featureTable) && geoPackage.isTileTable(tileTable)) { FeatureTileTableLinker linker = new FeatureTileTableLinker( geoPackage); linker.link(featureTable, tileTable); } }
Example 2
Source File: FeatureTileGenerator.java From geopackage-java with MIT License | 6 votes |
/** * {@inheritDoc} */ @Override protected void preTileGeneration() { // Link the feature and tile table if they are in the same GeoPackage GeoPackage geoPackage = getGeoPackage(); String featureTable = featureTiles.getFeatureDao().getTableName(); String tileTable = getTableName(); if (linkTables && geoPackage.isFeatureTable(featureTable) && geoPackage.isTileTable(tileTable)) { FeatureTileTableLinker linker = new FeatureTileTableLinker( geoPackage); linker.link(featureTable, tileTable); } }
Example 3
Source File: FeatureTableStyles.java From geopackage-android with MIT License | 5 votes |
/** * Constructor * * @param geoPackage GeoPackage * @param featureTable feature table */ public FeatureTableStyles(GeoPackage geoPackage, String featureTable) { featureStyleExtension = new FeatureStyleExtension(geoPackage); tableName = featureTable; if (!geoPackage.isFeatureTable(featureTable)) { throw new GeoPackageException( "Table must be a feature table. Table: " + featureTable + ", Actual Type: " + geoPackage.getTableType(featureTable)); } }
Example 4
Source File: FeatureTableStyles.java From geopackage-java with MIT License | 5 votes |
/** * Constructor * * @param geoPackage * GeoPackage * @param featureTable * feature table */ public FeatureTableStyles(GeoPackage geoPackage, String featureTable) { featureStyleExtension = new FeatureStyleExtension(geoPackage); tableName = featureTable; if (!geoPackage.isFeatureTable(featureTable)) { throw new GeoPackageException( "Table must be a feature table. Table: " + featureTable + ", Actual Type: " + geoPackage.getTableType(featureTable)); } }