Class FeatureCoreStyleExtension

    • Field Detail

      • 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
    • Constructor Detail

      • FeatureCoreStyleExtension

        protected FeatureCoreStyleExtension​(GeoPackageCore geoPackage,
                                            RelatedTablesCoreExtension relatedTables)
        Constructor
        Parameters:
        geoPackage - GeoPackage
        relatedTables - 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 class BaseExtension
        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 prefix
        featureTable - feature table name
        Returns:
        mapping table name
      • 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
      • 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