Class FeatureCoreStyleExtension
- java.lang.Object
-
- mil.nga.geopackage.extension.BaseExtension
-
- mil.nga.geopackage.extension.nga.style.FeatureCoreStyleExtension
-
public abstract class FeatureCoreStyleExtension extends BaseExtension
Feature Core Style extensionhttp://ngageoint.github.io/GeoPackage/docs/extensions/feature-style.html
- Since:
- 3.2.0
- Author:
- osbornb
-
-
Field Summary
Fields Modifier and Type Field Description protected ContentsIdExtension
contentsId
Contents Id extensionstatic String
EXTENSION_AUTHOR
Extension authorstatic String
EXTENSION_DEFINITION
Extension definition URLstatic String
EXTENSION_NAME
Extension, with author and namestatic String
EXTENSION_NAME_NO_AUTHOR
Extension name without the authorprotected RelatedTablesCoreExtension
relatedTables
Related Tables extensionstatic String
TABLE_MAPPING_ICON
Table name prefix for mapping iconsstatic String
TABLE_MAPPING_STYLE
Table name prefix for mapping stylesstatic String
TABLE_MAPPING_TABLE_ICON
Table name prefix for mapping icon defaultsstatic String
TABLE_MAPPING_TABLE_STYLE
Table name prefix for mapping style defaults-
Fields inherited from class mil.nga.geopackage.extension.BaseExtension
extensionsDao, geoPackage
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
FeatureCoreStyleExtension(GeoPackageCore geoPackage, RelatedTablesCoreExtension relatedTables)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createIconRelationship(String featureTable)
Create an icon relationship for the feature tableboolean
createIconTable()
Create icon tablevoid
createRelationships(String featureTable)
Create style, icon, table style, and table icon relationships for the feature tablevoid
createStyleRelationship(String featureTable)
Create a style relationship for the feature tableboolean
createStyleTable()
Create style tablevoid
createTableIconRelationship(String featureTable)
Create a feature table icon relationshipvoid
createTableStyleRelationship(String featureTable)
Create a feature table style relationshipvoid
deleteIconRelationship(String featureTable)
Delete a icon relationship for the feature tablevoid
deleteRelationships()
Delete the style and icon table and row relationships for all feature tablesvoid
deleteRelationships(String featureTable)
Delete the style and icon table and row relationships for the feature tablevoid
deleteStyleRelationship(String featureTable)
Delete a style relationship for the feature tablevoid
deleteTableIconRelationship(String featureTable)
Delete a table icon relationship for the feature tablevoid
deleteTableStyleRelationship(String featureTable)
Delete a table style relationship for the feature tableExtensions
get(String featureTable)
Get the extension for the feature tableContentsIdExtension
getContentsId()
Get the contents id extensionList<ExtendedRelation>
getIconTableRelations()
Get icon table relationsString
getMappingTableName(String tablePrefix, String featureTable)
Get the mapping table nameRelatedTablesCoreExtension
getRelatedTables()
Get the related tables extensionList<ExtendedRelation>
getStyleTableRelations()
Get style table relationsList<String>
getTables()
Get the feature tables registered with the extensionboolean
has()
Determine if the GeoPackage has the extensionboolean
has(String featureTable)
Determine if the GeoPackage has the extension for the feature tableboolean
hasIconRelationship(String featureTable)
Determine if an icon relationship exists for the feature tableboolean
hasIconTableRelations()
Determine if there are icon table relationsboolean
hasRelationship(String featureTable)
Check if feature table has a style, icon, table style, or table icon relationshipsboolean
hasStyleRelationship(String featureTable)
Determine if a style relationship exists for the feature tableboolean
hasStyleTableRelations()
Determine if there are style table relationsboolean
hasTableIconRelationship(String featureTable)
Determine if a feature table icon relationship existsboolean
hasTableStyleRelationship(String featureTable)
Determine if a feature table style relationship existsvoid
removeExtension()
Completely remove and delete the extension and all styles and icons-
Methods inherited from class mil.nga.geopackage.extension.BaseExtension
createDao, get, getExtensions, getExtensions, getExtensionsDao, getGeoPackage, getOrCreate, 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
-
TABLE_MAPPING_STYLE
public static final String TABLE_MAPPING_STYLE
Table name prefix for mapping styles- See Also:
- Constant Field Values
-
TABLE_MAPPING_TABLE_STYLE
public static final String TABLE_MAPPING_TABLE_STYLE
Table name prefix for mapping style defaults- See Also:
- Constant Field Values
-
TABLE_MAPPING_ICON
public static final String TABLE_MAPPING_ICON
Table name prefix for mapping icons- See Also:
- Constant Field Values
-
TABLE_MAPPING_TABLE_ICON
public static final String TABLE_MAPPING_TABLE_ICON
Table name prefix for mapping icon defaults- See Also:
- Constant Field Values
-
relatedTables
protected final RelatedTablesCoreExtension relatedTables
Related Tables extension
-
contentsId
protected final ContentsIdExtension contentsId
Contents Id extension
-
-
Constructor Detail
-
FeatureCoreStyleExtension
protected FeatureCoreStyleExtension(GeoPackageCore geoPackage, RelatedTablesCoreExtension relatedTables)
Constructor- Parameters:
geoPackage
- GeoPackagerelatedTables
- related tables
-
-
Method Detail
-
getTables
public List<String> getTables()
Get the feature tables registered with the extension- Returns:
- list of feature table names
-
has
public boolean has()
Determine if the GeoPackage has the extension- Returns:
- true if has extension
-
get
public Extensions get(String featureTable)
Get the extension for the feature table- Parameters:
featureTable
- feature table- Returns:
- extension
- Since:
- 4.0.0
-
has
public boolean has(String featureTable)
Determine if the GeoPackage has the extension for the feature table- Overrides:
has
in classBaseExtension
- Parameters:
featureTable
- feature table- Returns:
- true if has extension
-
getRelatedTables
public RelatedTablesCoreExtension getRelatedTables()
Get the related tables extension- Returns:
- related tables extension
-
getContentsId
public ContentsIdExtension getContentsId()
Get the contents id extension- Returns:
- contents id extension
-
createStyleTable
public boolean createStyleTable()
Create style table- Returns:
- true if created, false if the table already existed
- Since:
- 6.3.0
-
createIconTable
public boolean createIconTable()
Create icon table- Returns:
- true if created, false if the table already existed
- Since:
- 6.3.0
-
createRelationships
public void createRelationships(String featureTable)
Create style, icon, table style, and table icon relationships for the feature table- Parameters:
featureTable
- feature table
-
hasRelationship
public boolean hasRelationship(String featureTable)
Check if feature table has a style, icon, table style, or table icon relationships- Parameters:
featureTable
- feature table- Returns:
- true if has a relationship
-
createStyleRelationship
public void createStyleRelationship(String featureTable)
Create a style relationship for the feature table- Parameters:
featureTable
- feature table
-
hasStyleRelationship
public boolean hasStyleRelationship(String featureTable)
Determine if a style relationship exists for the feature table- Parameters:
featureTable
- feature table- Returns:
- true if relationship exists
-
createTableStyleRelationship
public void createTableStyleRelationship(String featureTable)
Create a feature table style relationship- Parameters:
featureTable
- feature table
-
hasTableStyleRelationship
public boolean hasTableStyleRelationship(String featureTable)
Determine if a feature table style relationship exists- Parameters:
featureTable
- feature table- Returns:
- true if relationship exists
-
createIconRelationship
public void createIconRelationship(String featureTable)
Create an icon relationship for the feature table- Parameters:
featureTable
- feature table
-
hasIconRelationship
public boolean hasIconRelationship(String featureTable)
Determine if an icon relationship exists for the feature table- Parameters:
featureTable
- feature table- Returns:
- true if relationship exists
-
createTableIconRelationship
public void createTableIconRelationship(String featureTable)
Create a feature table icon relationship- Parameters:
featureTable
- feature table
-
hasTableIconRelationship
public boolean hasTableIconRelationship(String featureTable)
Determine if a feature table icon relationship exists- Parameters:
featureTable
- feature table- Returns:
- true if relationship exists
-
getMappingTableName
public String getMappingTableName(String tablePrefix, String featureTable)
Get the mapping table name- Parameters:
tablePrefix
- table name prefixfeatureTable
- feature table name- Returns:
- mapping table name
-
getStyleTableRelations
public List<ExtendedRelation> getStyleTableRelations() throws SQLException
Get style table relations- Returns:
- extended relations
- Throws:
SQLException
- upon failure- Since:
- 6.3.0
-
hasStyleTableRelations
public boolean hasStyleTableRelations() throws SQLException
Determine if there are style table relations- Returns:
- true if has style table relations
- Throws:
SQLException
- upon failure- Since:
- 6.3.0
-
getIconTableRelations
public List<ExtendedRelation> getIconTableRelations() throws SQLException
Get icon table relations- Returns:
- extended relations
- Throws:
SQLException
- upon failure- Since:
- 6.3.0
-
hasIconTableRelations
public boolean hasIconTableRelations() throws SQLException
Determine if there are icon table relations- Returns:
- true if has icon table relations
- Throws:
SQLException
- upon failure- Since:
- 6.3.0
-
deleteRelationships
public void deleteRelationships()
Delete the style and icon table and row relationships for all feature tables
-
deleteRelationships
public void deleteRelationships(String featureTable)
Delete the style and icon table and row relationships for the feature table- Parameters:
featureTable
- feature table
-
deleteStyleRelationship
public void deleteStyleRelationship(String featureTable)
Delete a style relationship for the feature table- Parameters:
featureTable
- feature table
-
deleteTableStyleRelationship
public void deleteTableStyleRelationship(String featureTable)
Delete a table style relationship for the feature table- Parameters:
featureTable
- feature table
-
deleteIconRelationship
public void deleteIconRelationship(String featureTable)
Delete a icon relationship for the feature table- Parameters:
featureTable
- feature table
-
deleteTableIconRelationship
public void deleteTableIconRelationship(String featureTable)
Delete a table icon relationship for the feature table- Parameters:
featureTable
- feature table
-
removeExtension
public void removeExtension()
Completely remove and delete the extension and all styles and icons
-
-