Class FeatureTileTableCoreLinker
- java.lang.Object
-
- mil.nga.geopackage.extension.BaseExtension
-
- mil.nga.geopackage.extension.nga.link.FeatureTileTableCoreLinker
-
public abstract class FeatureTileTableCoreLinker extends BaseExtension
Abstract Feature Tile Table linker, used to link feature and tile tables together when the tiles represent the feature datahttp://ngageoint.github.io/GeoPackage/docs/extensions/feature-tile-link.html
- Since:
- 1.1.6
- Author:
- osbornb
-
-
Field Summary
Fields Modifier and Type Field Description static StringEXTENSION_AUTHORExtension authorstatic StringEXTENSION_DEFINITIONExtension definition URLstatic StringEXTENSION_NAMEExtension, with author and namestatic StringEXTENSION_NAME_NO_AUTHORExtension name without the author-
Fields inherited from class mil.nga.geopackage.extension.BaseExtension
extensionsDao, geoPackage
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedFeatureTileTableCoreLinker(GeoPackageCore geoPackage)Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancreateFeatureTileLinkTable()Create the Feature Tile Link Table if it does not existbooleandeleteLink(String featureTable, String tileTable)Delete the feature tile table linkintdeleteLinks(String table)Delete the feature tile table links for the feature or tile tableFeatureTileLinkDaogetDao()Get the feature tile link DAOExtensionsgetExtension()Get the extensionList<String>getFeatureTablesForTileTable(String tileTable)Query for the feature table names linked to a tile tableFeatureTileLinkDaogetFeatureTileLinkDao()Get a Feature Tile Link DAOstatic FeatureTileLinkDaogetFeatureTileLinkDao(GeoPackageCoreConnection db)Get a Feature Tile Link DAOstatic FeatureTileLinkDaogetFeatureTileLinkDao(GeoPackageCore geoPackage)Get a Feature Tile Link DAOGeoPackageCoregetGeoPackage()Get the GeoPackageFeatureTileLinkgetLink(String featureTable, String tileTable)Get the feature and tile table link if it existsList<String>getTileTablesForFeatureTable(String featureTable)Query for the tile table names linked to a feature tablebooleanhas()Check if has extensionbooleanisLinked(String featureTable, String tileTable)Determine if the feature table is linked to the tile tablevoidlink(String featureTable, String tileTable)Link a feature and tile table together.List<FeatureTileLink>queryForFeatureTable(String featureTable)Query for feature tile links by feature tableList<FeatureTileLink>queryForTileTable(String tileTable)Query for feature tile links by tile table-
Methods inherited from class mil.nga.geopackage.extension.BaseExtension
createDao, get, getExtensions, getExtensions, getExtensionsDao, getOrCreate, has, has, has, verifyWritable
-
-
-
-
Field Detail
-
EXTENSION_AUTHOR
public static final String EXTENSION_AUTHOR
Extension author- See Also:
- Constant Field Values
-
EXTENSION_NAME_NO_AUTHOR
public static final String EXTENSION_NAME_NO_AUTHOR
Extension name without the author- See Also:
- Constant Field Values
-
EXTENSION_NAME
public static final String EXTENSION_NAME
Extension, with author and name
-
EXTENSION_DEFINITION
public static final String EXTENSION_DEFINITION
Extension definition URL
-
-
Constructor Detail
-
FeatureTileTableCoreLinker
protected FeatureTileTableCoreLinker(GeoPackageCore geoPackage)
Constructor- Parameters:
geoPackage- GeoPackage
-
-
Method Detail
-
getGeoPackage
public GeoPackageCore getGeoPackage()
Get the GeoPackage- Overrides:
getGeoPackagein classBaseExtension- Returns:
- GeoPackage
-
getDao
public FeatureTileLinkDao getDao()
Get the feature tile link DAO- Returns:
- dao
-
link
public void link(String featureTable, String tileTable)
Link a feature and tile table together. Does nothing if already linked.- Parameters:
featureTable- feature tabletileTable- tile table
-
isLinked
public boolean isLinked(String featureTable, String tileTable)
Determine if the feature table is linked to the tile table- Parameters:
featureTable- feature tabletileTable- tile table- Returns:
- true if linked
-
getLink
public FeatureTileLink getLink(String featureTable, String tileTable)
Get the feature and tile table link if it exists- Parameters:
featureTable- feature tabletileTable- tile table- Returns:
- link or null
-
queryForFeatureTable
public List<FeatureTileLink> queryForFeatureTable(String featureTable)
Query for feature tile links by feature table- Parameters:
featureTable- feature table- Returns:
- links
-
queryForTileTable
public List<FeatureTileLink> queryForTileTable(String tileTable)
Query for feature tile links by tile table- Parameters:
tileTable- tile table- Returns:
- links
-
deleteLink
public boolean deleteLink(String featureTable, String tileTable)
Delete the feature tile table link- Parameters:
featureTable- feature tabletileTable- tile table- Returns:
- true if deleted
-
deleteLinks
public int deleteLinks(String table)
Delete the feature tile table links for the feature or tile table- Parameters:
table- table name- Returns:
- links deleted
-
has
public boolean has()
Check if has extension- Returns:
- true if has extension
- Since:
- 3.2.0
-
getExtension
public Extensions getExtension()
Get the extension- Returns:
- extensions object or null if one does not exist
-
getFeatureTileLinkDao
public FeatureTileLinkDao getFeatureTileLinkDao()
Get a Feature Tile Link DAO- Returns:
- feature tile link dao
- Since:
- 4.0.0
-
getFeatureTileLinkDao
public static FeatureTileLinkDao getFeatureTileLinkDao(GeoPackageCore geoPackage)
Get a Feature Tile Link DAO- Parameters:
geoPackage- GeoPackage- Returns:
- feature tile link dao
- Since:
- 4.0.0
-
getFeatureTileLinkDao
public static FeatureTileLinkDao getFeatureTileLinkDao(GeoPackageCoreConnection db)
Get a Feature Tile Link DAO- Parameters:
db- database connection- Returns:
- feature tile link dao
- Since:
- 4.0.0
-
createFeatureTileLinkTable
public boolean createFeatureTileLinkTable()
Create the Feature Tile Link Table if it does not exist- Returns:
- true if created
- Since:
- 4.0.0
-
getTileTablesForFeatureTable
public List<String> getTileTablesForFeatureTable(String featureTable)
Query for the tile table names linked to a feature table- Parameters:
featureTable- feature table- Returns:
- tiles tables
-
-