Class FeatureStyleExtension

    • Constructor Detail

      • FeatureStyleExtension

        public FeatureStyleExtension​(GeoPackage geoPackage)
        Constructor
        Parameters:
        geoPackage - GeoPackage
    • Method Detail

      • getStyleMappingDao

        public StyleMappingDao getStyleMappingDao​(String featureTable)
        Get a Style Mapping DAO
        Parameters:
        featureTable - feature table
        Returns:
        style mapping DAO
      • getTableStyleMappingDao

        public StyleMappingDao getTableStyleMappingDao​(String featureTable)
        Get a Table Style Mapping DAO
        Parameters:
        featureTable - feature table
        Returns:
        table style mapping DAO
      • getIconMappingDao

        public StyleMappingDao getIconMappingDao​(String featureTable)
        Get a Icon Mapping DAO
        Parameters:
        featureTable - feature table
        Returns:
        icon mapping DAO
      • getTableIconMappingDao

        public StyleMappingDao getTableIconMappingDao​(String featureTable)
        Get a Table Icon Mapping DAO
        Parameters:
        featureTable - feature table
        Returns:
        table icon mapping DAO
      • getStyleDao

        public StyleDao getStyleDao()
        Get a style DAO
        Returns:
        style DAO
      • getIconDao

        public IconDao getIconDao()
        Get a icon DAO
        Returns:
        icon DAO
      • getTableFeatureStyles

        public FeatureStyles getTableFeatureStyles​(FeatureTable featureTable)
        Get the feature table default feature styles
        Parameters:
        featureTable - feature table
        Returns:
        table feature styles or null
      • getTableFeatureStyles

        public FeatureStyles getTableFeatureStyles​(String featureTable)
        Get the feature table default feature styles
        Parameters:
        featureTable - feature table
        Returns:
        table feature styles or null
      • getTableStyles

        public Styles getTableStyles​(FeatureTable featureTable)
        Get the feature table default styles
        Parameters:
        featureTable - feature table
        Returns:
        table styles or null
      • getTableStyles

        public Styles getTableStyles​(String featureTable)
        Get the feature table default styles
        Parameters:
        featureTable - feature table
        Returns:
        table styles or null
      • getTableStyle

        public StyleRow getTableStyle​(String featureTable,
                                      GeometryType geometryType)
        Get the style of the feature table and geometry type
        Parameters:
        featureTable - feature table
        geometryType - geometry type
        Returns:
        style row
      • getTableStyleDefault

        public StyleRow getTableStyleDefault​(String featureTable)
        Get the default style of the feature table
        Parameters:
        featureTable - feature table
        Returns:
        style row
      • getTableIcons

        public Icons getTableIcons​(FeatureTable featureTable)
        Get the feature table default icons
        Parameters:
        featureTable - feature table
        Returns:
        table icons or null
      • getTableIcons

        public Icons getTableIcons​(String featureTable)
        Get the feature table default icons
        Parameters:
        featureTable - feature table
        Returns:
        table icons or null
      • getTableIconDefault

        public IconRow getTableIconDefault​(String featureTable)
        Get the default icon of the feature table
        Parameters:
        featureTable - feature table
        Returns:
        icon row
      • getTableIcon

        public IconRow getTableIcon​(String featureTable,
                                    GeometryType geometryType)
        Get the icon of the feature table and geometry type
        Parameters:
        featureTable - feature table
        geometryType - geometry type
        Returns:
        icon row
      • getStyles

        public Map<Long,​StyleRow> getStyles​(String featureTable)
        Get all styles used by the feature table
        Parameters:
        featureTable - feature table
        Returns:
        style rows mapped by ids
        Since:
        6.3.0
      • getFeatureStyles

        public Map<Long,​StyleRow> getFeatureStyles​(String featureTable)
        Get all styles used by feature rows in the table
        Parameters:
        featureTable - feature table
        Returns:
        style rows mapped by ids
        Since:
        6.3.0
      • getIcons

        public Map<Long,​IconRow> getIcons​(String featureTable)
        Get all icons used by the feature table
        Parameters:
        featureTable - feature table
        Returns:
        icon rows mapped by ids
        Since:
        6.3.0
      • getFeatureIcons

        public Map<Long,​IconRow> getFeatureIcons​(String featureTable)
        Get all icons used by feature rows in the table
        Parameters:
        featureTable - feature table
        Returns:
        icon rows mapped by ids
        Since:
        6.3.0
      • getFeatureStyles

        public FeatureStyles getFeatureStyles​(FeatureRow featureRow)
        Get the feature styles for the feature row
        Parameters:
        featureRow - feature row
        Returns:
        feature styles or null
      • getFeatureStyles

        public FeatureStyles getFeatureStyles​(String featureTable,
                                              long featureId)
        Get the feature styles for the feature table and feature id
        Parameters:
        featureTable - feature table
        featureId - feature id
        Returns:
        feature styles or null
      • getFeatureStyle

        public FeatureStyle getFeatureStyle​(FeatureRow featureRow)
        Get the feature style (style and icon) of the feature row, searching in order: feature geometry type style or icon, feature default style or icon, table geometry type style or icon, table default style or icon
        Parameters:
        featureRow - feature row
        Returns:
        feature style
      • getFeatureStyle

        public FeatureStyle getFeatureStyle​(FeatureRow featureRow,
                                            GeometryType geometryType)
        Get the feature style (style and icon) of the feature row with the provided geometry type, searching in order: feature geometry type style or icon, feature default style or icon, table geometry type style or icon, table default style or icon
        Parameters:
        featureRow - feature row
        geometryType - geometry type
        Returns:
        feature style
      • getFeatureStyleDefault

        public FeatureStyle getFeatureStyleDefault​(FeatureRow featureRow)
        Get the feature style default (style and icon) of the feature row, searching in order: feature default style or icon, table default style or icon
        Parameters:
        featureRow - feature row
        Returns:
        feature style
      • getFeatureStyle

        public FeatureStyle getFeatureStyle​(String featureTable,
                                            long featureId,
                                            GeometryType geometryType)
        Get the feature style (style and icon) of the feature, searching in order: feature geometry type style or icon, feature default style or icon, table geometry type style or icon, table default style or icon
        Parameters:
        featureTable - feature table
        featureId - feature id
        geometryType - geometry type
        Returns:
        feature style
      • getFeatureStyleDefault

        public FeatureStyle getFeatureStyleDefault​(String featureTable,
                                                   long featureId)
        Get the feature style (style and icon) of the feature, searching in order: feature geometry type style or icon, feature default style or icon, table geometry type style or icon, table default style or icon
        Parameters:
        featureTable - feature table
        featureId - feature id
        Returns:
        feature style
      • getStyles

        public Styles getStyles​(FeatureRow featureRow)
        Get the styles for the feature row
        Parameters:
        featureRow - feature row
        Returns:
        styles or null
      • getStyles

        public Styles getStyles​(String featureTable,
                                long featureId)
        Get the styles for the feature table and feature id
        Parameters:
        featureTable - feature table
        featureId - feature id
        Returns:
        styles or null
      • getStyle

        public StyleRow getStyle​(FeatureRow featureRow)
        Get the style of the feature row, searching in order: feature geometry type style, feature default style, table geometry type style, table default style
        Parameters:
        featureRow - feature row
        Returns:
        style row
      • getStyle

        public StyleRow getStyle​(FeatureRow featureRow,
                                 GeometryType geometryType)
        Get the style of the feature row with the provided geometry type, searching in order: feature geometry type style, feature default style, table geometry type style, table default style
        Parameters:
        featureRow - feature row
        geometryType - geometry type
        Returns:
        style row
      • getStyleDefault

        public StyleRow getStyleDefault​(FeatureRow featureRow)
        Get the default style of the feature row, searching in order: feature default style, table default style
        Parameters:
        featureRow - feature row
        Returns:
        style row
      • getStyle

        public StyleRow getStyle​(String featureTable,
                                 long featureId,
                                 GeometryType geometryType)
        Get the style of the feature, searching in order: feature geometry type style, feature default style, table geometry type style, table default style
        Parameters:
        featureTable - feature table
        featureId - feature id
        geometryType - geometry type
        Returns:
        style row
      • getStyleDefault

        public StyleRow getStyleDefault​(String featureTable,
                                        long featureId)
        Get the default style of the feature, searching in order: feature default style, table default style
        Parameters:
        featureTable - feature table
        featureId - feature id
        Returns:
        style row
      • getStyle

        public StyleRow getStyle​(String featureTable,
                                 long featureId,
                                 GeometryType geometryType,
                                 boolean tableStyle)
        Get the style of the feature, searching in order: feature geometry type style, feature default style, when tableStyle enabled continue searching: table geometry type style, table default style
        Parameters:
        featureTable - feature table
        featureId - feature id
        geometryType - geometry type
        tableStyle - when true and a feature style is not found, query for a matching table style
        Returns:
        style row
      • getStyleDefault

        public StyleRow getStyleDefault​(String featureTable,
                                        long featureId,
                                        boolean tableStyle)
        Get the default style of the feature, searching in order: feature default style, when tableStyle enabled continue searching: table default style
        Parameters:
        featureTable - feature table
        featureId - feature id
        tableStyle - when true and a feature style is not found, query for a matching table style
        Returns:
        style row
      • getIcons

        public Icons getIcons​(FeatureRow featureRow)
        Get the icons for the feature row
        Parameters:
        featureRow - feature row
        Returns:
        icons or null
      • getIcons

        public Icons getIcons​(String featureTable,
                              long featureId)
        Get the icons for the feature table and feature id
        Parameters:
        featureTable - feature table
        featureId - feature id
        Returns:
        icons or null
      • getIcon

        public IconRow getIcon​(FeatureRow featureRow)
        Get the icon of the feature row, searching in order: feature geometry type icon, feature default icon, table geometry type icon, table default icon
        Parameters:
        featureRow - feature row
        Returns:
        icon row
      • getIcon

        public IconRow getIcon​(FeatureRow featureRow,
                               GeometryType geometryType)
        Get the icon of the feature row with the provided geometry type, searching in order: feature geometry type icon, feature default icon, table geometry type icon, table default icon
        Parameters:
        featureRow - feature row
        geometryType - geometry type
        Returns:
        icon row
      • getIconDefault

        public IconRow getIconDefault​(FeatureRow featureRow)
        Get the default icon of the feature row, searching in order: feature default icon, table default icon
        Parameters:
        featureRow - feature row
        Returns:
        icon row
      • getIcon

        public IconRow getIcon​(String featureTable,
                               long featureId,
                               GeometryType geometryType)
        Get the icon of the feature, searching in order: feature geometry type icon, feature default icon, table geometry type icon, table default icon
        Parameters:
        featureTable - feature table
        featureId - feature id
        geometryType - geometry type
        Returns:
        icon row
      • getIconDefault

        public IconRow getIconDefault​(String featureTable,
                                      long featureId)
        Get the default icon of the feature, searching in order: feature default icon, table default icon
        Parameters:
        featureTable - feature table
        featureId - feature id
        Returns:
        icon row
      • getIcon

        public IconRow getIcon​(String featureTable,
                               long featureId,
                               GeometryType geometryType,
                               boolean tableIcon)
        Get the icon of the feature, searching in order: feature geometry type icon, feature default icon, when tableIcon enabled continue searching: table geometry type icon, table default icon
        Parameters:
        featureTable - feature table
        featureId - feature id
        geometryType - geometry type
        tableIcon - when true and a feature icon is not found, query for a matching table icon
        Returns:
        icon row
      • getIconDefault

        public IconRow getIconDefault​(String featureTable,
                                      long featureId,
                                      boolean tableIcon)
        Get the default icon of the feature, searching in order: feature default icon, when tableIcon enabled continue searching: table default icon
        Parameters:
        featureTable - feature table
        featureId - feature id
        tableIcon - when true and a feature icon is not found, query for a matching table icon
        Returns:
        icon row
      • setTableFeatureStyles

        public void setTableFeatureStyles​(FeatureTable featureTable,
                                          FeatureStyles featureStyles)
        Set the feature table default feature styles
        Parameters:
        featureTable - feature table
        featureStyles - default feature styles
      • setTableFeatureStyles

        public void setTableFeatureStyles​(String featureTable,
                                          FeatureStyles featureStyles)
        Set the feature table default feature styles
        Parameters:
        featureTable - feature table
        featureStyles - default feature styles
      • setTableStyles

        public void setTableStyles​(FeatureTable featureTable,
                                   Styles styles)
        Set the feature table default styles
        Parameters:
        featureTable - feature table
        styles - default styles
      • setTableStyles

        public void setTableStyles​(String featureTable,
                                   Styles styles)
        Set the feature table default styles
        Parameters:
        featureTable - feature table
        styles - default styles
      • setTableStyleDefault

        public void setTableStyleDefault​(FeatureTable featureTable,
                                         StyleRow style)
        Set the feature table style default
        Parameters:
        featureTable - feature table
        style - style row
      • setTableStyleDefault

        public void setTableStyleDefault​(String featureTable,
                                         StyleRow style)
        Set the feature table style default
        Parameters:
        featureTable - feature table
        style - style row
      • setTableStyle

        public void setTableStyle​(FeatureTable featureTable,
                                  GeometryType geometryType,
                                  StyleRow style)
        Set the feature table style for the geometry type
        Parameters:
        featureTable - feature table
        geometryType - geometry type
        style - style row
      • setTableStyle

        public void setTableStyle​(String featureTable,
                                  GeometryType geometryType,
                                  StyleRow style)
        Set the feature table style for the geometry type
        Parameters:
        featureTable - feature table
        geometryType - geometry type
        style - style row
      • setTableIcons

        public void setTableIcons​(FeatureTable featureTable,
                                  Icons icons)
        Set the feature table default icons
        Parameters:
        featureTable - feature table
        icons - default icons
      • setTableIcons

        public void setTableIcons​(String featureTable,
                                  Icons icons)
        Set the feature table default icons
        Parameters:
        featureTable - feature table
        icons - default icons
      • setTableIconDefault

        public void setTableIconDefault​(FeatureTable featureTable,
                                        IconRow icon)
        Set the feature table icon default
        Parameters:
        featureTable - feature table
        icon - icon row
      • setTableIconDefault

        public void setTableIconDefault​(String featureTable,
                                        IconRow icon)
        Set the feature table icon default
        Parameters:
        featureTable - feature table
        icon - icon row
      • setTableIcon

        public void setTableIcon​(FeatureTable featureTable,
                                 GeometryType geometryType,
                                 IconRow icon)
        Set the feature table icon for the geometry type
        Parameters:
        featureTable - feature table
        geometryType - geometry type
        icon - icon row
      • setTableIcon

        public void setTableIcon​(String featureTable,
                                 GeometryType geometryType,
                                 IconRow icon)
        Set the feature table icon for the geometry type
        Parameters:
        featureTable - feature table
        geometryType - geometry type
        icon - icon row
      • setFeatureStyles

        public void setFeatureStyles​(FeatureRow featureRow,
                                     FeatureStyles featureStyles)
        Set the feature styles for the feature row
        Parameters:
        featureRow - feature row
        featureStyles - feature styles
      • setFeatureStyles

        public void setFeatureStyles​(String featureTable,
                                     long featureId,
                                     FeatureStyles featureStyles)
        Set the feature styles for the feature table and feature id
        Parameters:
        featureTable - feature table
        featureId - feature id
        featureStyles - feature styles
      • setFeatureStyle

        public void setFeatureStyle​(FeatureRow featureRow,
                                    FeatureStyle featureStyle)
        Set the feature style (style and icon) of the feature row
        Parameters:
        featureRow - feature row
        featureStyle - feature style
      • setFeatureStyle

        public void setFeatureStyle​(FeatureRow featureRow,
                                    GeometryType geometryType,
                                    FeatureStyle featureStyle)
        Set the feature style (style and icon) of the feature row for the specified geometry type
        Parameters:
        featureRow - feature row
        geometryType - geometry type
        featureStyle - feature style
      • setFeatureStyleDefault

        public void setFeatureStyleDefault​(FeatureRow featureRow,
                                           FeatureStyle featureStyle)
        Set the feature style default (style and icon) of the feature row
        Parameters:
        featureRow - feature row
        featureStyle - feature style
      • setFeatureStyle

        public void setFeatureStyle​(String featureTable,
                                    long featureId,
                                    GeometryType geometryType,
                                    FeatureStyle featureStyle)
        Set the feature style (style and icon) of the feature
        Parameters:
        featureTable - feature table
        featureId - feature id
        geometryType - geometry type
        featureStyle - feature style
      • setFeatureStyleDefault

        public void setFeatureStyleDefault​(String featureTable,
                                           long featureId,
                                           FeatureStyle featureStyle)
        Set the feature style (style and icon) of the feature
        Parameters:
        featureTable - feature table
        featureId - feature id
        featureStyle - feature style
      • setStyles

        public void setStyles​(FeatureRow featureRow,
                              Styles styles)
        Set the styles for the feature row
        Parameters:
        featureRow - feature row
        styles - styles
      • setStyles

        public void setStyles​(String featureTable,
                              long featureId,
                              Styles styles)
        Set the styles for the feature table and feature id
        Parameters:
        featureTable - feature table
        featureId - feature id
        styles - styles
      • setStyle

        public void setStyle​(FeatureRow featureRow,
                             StyleRow style)
        Set the style of the feature row
        Parameters:
        featureRow - feature row
        style - style row
      • setStyle

        public void setStyle​(FeatureRow featureRow,
                             GeometryType geometryType,
                             StyleRow style)
        Set the style of the feature row for the specified geometry type
        Parameters:
        featureRow - feature row
        geometryType - geometry type
        style - style row
      • setStyleDefault

        public void setStyleDefault​(FeatureRow featureRow,
                                    StyleRow style)
        Set the default style of the feature row
        Parameters:
        featureRow - feature row
        style - style row
      • setStyle

        public void setStyle​(String featureTable,
                             long featureId,
                             GeometryType geometryType,
                             StyleRow style)
        Set the style of the feature
        Parameters:
        featureTable - feature table
        featureId - feature id
        geometryType - geometry type
        style - style row
      • setStyleDefault

        public void setStyleDefault​(String featureTable,
                                    long featureId,
                                    StyleRow style)
        Set the default style of the feature
        Parameters:
        featureTable - feature table
        featureId - feature id
        style - style row
      • setIcons

        public void setIcons​(FeatureRow featureRow,
                             Icons icons)
        Set the icons for the feature row
        Parameters:
        featureRow - feature row
        icons - icons
      • setIcons

        public void setIcons​(String featureTable,
                             long featureId,
                             Icons icons)
        Set the icons for the feature table and feature id
        Parameters:
        featureTable - feature table
        featureId - feature id
        icons - icons
      • setIcon

        public void setIcon​(FeatureRow featureRow,
                            IconRow icon)
        Set the icon of the feature row
        Parameters:
        featureRow - feature row
        icon - icon row
      • setIcon

        public void setIcon​(FeatureRow featureRow,
                            GeometryType geometryType,
                            IconRow icon)
        Set the icon of the feature row for the specified geometry type
        Parameters:
        featureRow - feature row
        geometryType - geometry type
        icon - icon row
      • setIconDefault

        public void setIconDefault​(FeatureRow featureRow,
                                   IconRow icon)
        Set the default icon of the feature row
        Parameters:
        featureRow - feature row
        icon - icon row
      • setIcon

        public void setIcon​(String featureTable,
                            long featureId,
                            GeometryType geometryType,
                            IconRow icon)
        Get the icon of the feature, searching in order: feature geometry type icon, feature default icon, table geometry type icon, table default icon
        Parameters:
        featureTable - feature table
        featureId - feature id
        geometryType - geometry type
        icon - icon row
      • setIconDefault

        public void setIconDefault​(String featureTable,
                                   long featureId,
                                   IconRow icon)
        Set the default icon of the feature
        Parameters:
        featureTable - feature table
        featureId - feature id
        icon - icon row
      • deleteAllFeatureStyles

        public void deleteAllFeatureStyles​(FeatureTable featureTable)
        Delete all feature styles including table styles, table icons, style, and icons
        Parameters:
        featureTable - feature table
      • deleteAllFeatureStyles

        public void deleteAllFeatureStyles​(String featureTable)
        Delete all feature styles including table styles, table icons, style, and icons
        Parameters:
        featureTable - feature table
      • deleteAllStyles

        public void deleteAllStyles​(FeatureTable featureTable)
        Delete all styles including table styles and feature row styles
        Parameters:
        featureTable - feature table
      • deleteAllStyles

        public void deleteAllStyles​(String featureTable)
        Delete all styles including table styles and feature row styles
        Parameters:
        featureTable - feature table
      • deleteAllIcons

        public void deleteAllIcons​(FeatureTable featureTable)
        Delete all icons including table icons and feature row icons
        Parameters:
        featureTable - feature table
      • deleteAllIcons

        public void deleteAllIcons​(String featureTable)
        Delete all icons including table icons and feature row icons
        Parameters:
        featureTable - feature table
      • deleteTableFeatureStyles

        public void deleteTableFeatureStyles​(FeatureTable featureTable)
        Delete the feature table feature styles
        Parameters:
        featureTable - feature table
      • deleteTableFeatureStyles

        public void deleteTableFeatureStyles​(String featureTable)
        Delete the feature table feature styles
        Parameters:
        featureTable - feature table
      • deleteTableStyles

        public void deleteTableStyles​(FeatureTable featureTable)
        Delete the feature table styles
        Parameters:
        featureTable - feature table
      • deleteTableStyles

        public void deleteTableStyles​(String featureTable)
        Delete the feature table styles
        Parameters:
        featureTable - feature table
      • deleteTableStyleDefault

        public void deleteTableStyleDefault​(FeatureTable featureTable)
        Delete the feature table default style
        Parameters:
        featureTable - feature table
      • deleteTableStyleDefault

        public void deleteTableStyleDefault​(String featureTable)
        Delete the feature table default style
        Parameters:
        featureTable - feature table
      • deleteTableStyle

        public void deleteTableStyle​(FeatureTable featureTable,
                                     GeometryType geometryType)
        Delete the feature table style for the geometry type
        Parameters:
        featureTable - feature table
        geometryType - geometry type
      • deleteTableStyle

        public void deleteTableStyle​(String featureTable,
                                     GeometryType geometryType)
        Delete the feature table style for the geometry type
        Parameters:
        featureTable - feature table
        geometryType - geometry type
      • deleteTableIcons

        public void deleteTableIcons​(FeatureTable featureTable)
        Delete the feature table icons
        Parameters:
        featureTable - feature table
      • deleteTableIcons

        public void deleteTableIcons​(String featureTable)
        Delete the feature table icons
        Parameters:
        featureTable - feature table
      • deleteTableIconDefault

        public void deleteTableIconDefault​(FeatureTable featureTable)
        Delete the feature table default icon
        Parameters:
        featureTable - feature table
      • deleteTableIconDefault

        public void deleteTableIconDefault​(String featureTable)
        Delete the feature table default icon
        Parameters:
        featureTable - feature table
      • deleteTableIcon

        public void deleteTableIcon​(FeatureTable featureTable,
                                    GeometryType geometryType)
        Delete the feature table icon for the geometry type
        Parameters:
        featureTable - feature table
        geometryType - geometry type
      • deleteTableIcon

        public void deleteTableIcon​(String featureTable,
                                    GeometryType geometryType)
        Delete the feature table icon for the geometry type
        Parameters:
        featureTable - feature table
        geometryType - geometry type
      • deleteFeatureStyles

        public void deleteFeatureStyles​(FeatureTable featureTable)
        Delete all feature styles
        Parameters:
        featureTable - feature table
      • deleteFeatureStyles

        public void deleteFeatureStyles​(String featureTable)
        Delete all feature styles
        Parameters:
        featureTable - feature table
      • deleteStyles

        public void deleteStyles​(FeatureTable featureTable)
        Delete all styles
        Parameters:
        featureTable - feature table
      • deleteStyles

        public void deleteStyles​(String featureTable)
        Delete all styles
        Parameters:
        featureTable - feature table
      • deleteStyles

        public void deleteStyles​(FeatureRow featureRow)
        Delete feature row styles
        Parameters:
        featureRow - feature row
      • deleteStyles

        public void deleteStyles​(String featureTable,
                                 long featureId)
        Delete feature row styles
        Parameters:
        featureTable - feature table
        featureId - feature id
      • deleteStyleDefault

        public void deleteStyleDefault​(FeatureRow featureRow)
        Delete the feature row default style
        Parameters:
        featureRow - feature row
      • deleteStyleDefault

        public void deleteStyleDefault​(String featureTable,
                                       long featureId)
        Delete the feature row default style
        Parameters:
        featureTable - feature table
        featureId - feature id
      • deleteStyle

        public void deleteStyle​(FeatureRow featureRow)
        Delete the feature row style for the feature row geometry type
        Parameters:
        featureRow - feature row
      • deleteStyle

        public void deleteStyle​(FeatureRow featureRow,
                                GeometryType geometryType)
        Delete the feature row style for the geometry type
        Parameters:
        featureRow - feature row
        geometryType - geometry type
      • deleteStyle

        public void deleteStyle​(String featureTable,
                                long featureId,
                                GeometryType geometryType)
        Delete the feature row style for the geometry type
        Parameters:
        featureTable - feature table
        featureId - feature id
        geometryType - geometry type
      • deleteIcons

        public void deleteIcons​(FeatureTable featureTable)
        Delete all icons
        Parameters:
        featureTable - feature table
      • deleteIcons

        public void deleteIcons​(String featureTable)
        Delete all icons
        Parameters:
        featureTable - feature table
      • deleteIcons

        public void deleteIcons​(FeatureRow featureRow)
        Delete feature row icons
        Parameters:
        featureRow - feature row
      • deleteIcons

        public void deleteIcons​(String featureTable,
                                long featureId)
        Delete feature row icons
        Parameters:
        featureTable - feature table
        featureId - feature id
      • deleteIconDefault

        public void deleteIconDefault​(FeatureRow featureRow)
        Delete the feature row default icon
        Parameters:
        featureRow - feature row
      • deleteIconDefault

        public void deleteIconDefault​(String featureTable,
                                      long featureId)
        Delete the feature row default icon
        Parameters:
        featureTable - feature table
        featureId - feature id
      • deleteIcon

        public void deleteIcon​(FeatureRow featureRow)
        Delete the feature row icon for the feature row geometry type
        Parameters:
        featureRow - feature row
      • deleteIcon

        public void deleteIcon​(FeatureRow featureRow,
                               GeometryType geometryType)
        Delete the feature row icon for the geometry type
        Parameters:
        featureRow - feature row
        geometryType - geometry type
      • deleteIcon

        public void deleteIcon​(String featureTable,
                               long featureId,
                               GeometryType geometryType)
        Delete the feature row icon for the geometry type
        Parameters:
        featureTable - feature table
        featureId - feature id
        geometryType - geometry type
      • countStyleRowMappings

        public int countStyleRowMappings​(StyleRow styleRow)
                                  throws SQLException
        Count the number of mappings to the style row
        Parameters:
        styleRow - style row
        Returns:
        mappings count
        Throws:
        SQLException - upon failure
        Since:
        6.3.0
      • countStyleRowMappings

        public int countStyleRowMappings​(long id)
                                  throws SQLException
        Count the number of mappings to the style row id
        Parameters:
        id - style row id
        Returns:
        mappings count
        Throws:
        SQLException - upon failure
        Since:
        6.3.0
      • hasStyleRowMapping

        public boolean hasStyleRowMapping​(StyleRow styleRow)
                                   throws SQLException
        Determine if a mapping to the style row exists
        Parameters:
        styleRow - style row
        Returns:
        true if mapping exists
        Throws:
        SQLException - upon failure
        Since:
        6.3.0
      • hasStyleRowMapping

        public boolean hasStyleRowMapping​(long id)
                                   throws SQLException
        Determine if a mapping to the style row id exists
        Parameters:
        id - style row id
        Returns:
        true if mapping exists
        Throws:
        SQLException - upon failure
        Since:
        6.3.0
      • deleteStyleRowMappings

        public int deleteStyleRowMappings​(StyleRow styleRow)
                                   throws SQLException
        Delete style row mappings
        Parameters:
        styleRow - style row
        Returns:
        number of mapping rows deleted
        Throws:
        SQLException - upon failure
        Since:
        6.3.0
      • deleteStyleRowMappings

        public int deleteStyleRowMappings​(long id)
                                   throws SQLException
        Delete style row mappings
        Parameters:
        id - style row id
        Returns:
        number of mapping rows deleted
        Throws:
        SQLException - upon failure
        Since:
        6.3.0
      • deleteStyleRow

        public int deleteStyleRow​(StyleRow styleRow)
                           throws SQLException
        Delete a style row and mappings
        Parameters:
        styleRow - style row
        Returns:
        number of rows deleted between the style and mapping tables
        Throws:
        SQLException - upon failure
        Since:
        6.3.0
      • deleteStyleRowNotMapped

        public int deleteStyleRowNotMapped​(StyleRow styleRow)
                                    throws SQLException
        Delete a style row only if it has no mappings
        Parameters:
        styleRow - style row
        Returns:
        number of style rows deleted
        Throws:
        SQLException - upon failure
        Since:
        6.3.0
      • deleteStyleRow

        public int deleteStyleRow​(long id)
                           throws SQLException
        Delete a style row by id and mappings
        Parameters:
        id - style row id
        Returns:
        number of rows deleted between the style and mapping tables
        Throws:
        SQLException - upon failure
        Since:
        6.3.0
      • deleteStyleRowNotMapped

        public int deleteStyleRowNotMapped​(long id)
                                    throws SQLException
        Delete a style row by id only if it has no mappings
        Parameters:
        id - style row id
        Returns:
        number of style rows deleted
        Throws:
        SQLException - upon failure
        Since:
        6.3.0
      • deleteStyleRows

        public int deleteStyleRows​(String whereClause,
                                   String[] whereArgs)
                            throws SQLException
        Delete style rows matching the where clause and mappings to them
        Parameters:
        whereClause - where clause
        whereArgs - where arguments
        Returns:
        deleted count
        Throws:
        SQLException - upon failure
        Since:
        6.3.0
      • deleteStyleRowsNotMapped

        public int deleteStyleRowsNotMapped​(String whereClause,
                                            String[] whereArgs)
                                     throws SQLException
        Delete style rows matching the where clause if they have no mappings
        Parameters:
        whereClause - where clause
        whereArgs - where arguments
        Returns:
        deleted count
        Throws:
        SQLException - upon failure
        Since:
        6.3.0
      • deleteStyleRows

        public int deleteStyleRows​(Map<String,​Object> fieldValues)
                            throws SQLException
        Delete style rows matching the field values and mappings to them
        Parameters:
        fieldValues - field values
        Returns:
        deleted count
        Throws:
        SQLException - upon failure
        Since:
        6.3.0
      • deleteStyleRowsNotMapped

        public int deleteStyleRowsNotMapped​(Map<String,​Object> fieldValues)
                                     throws SQLException
        Delete style rows matching the field values if they have no mappings
        Parameters:
        fieldValues - field values
        Returns:
        deleted count
        Throws:
        SQLException - upon failure
        Since:
        6.3.0
      • deleteStyleRows

        public int deleteStyleRows()
                            throws SQLException
        Delete all style rows and mappings to them
        Returns:
        deleted count
        Throws:
        SQLException - upon failure
        Since:
        6.3.0
      • deleteStyleRowsNotMapped

        public int deleteStyleRowsNotMapped()
                                     throws SQLException
        Delete all style rows if they have no mappings
        Returns:
        deleted count
        Throws:
        SQLException - upon failure
        Since:
        6.3.0
      • countIconRowMappings

        public int countIconRowMappings​(IconRow iconRow)
                                 throws SQLException
        Count the number of mappings to the icon row
        Parameters:
        iconRow - icon row
        Returns:
        mappings count
        Throws:
        SQLException - upon failure
        Since:
        6.3.0
      • countIconRowMappings

        public int countIconRowMappings​(long id)
                                 throws SQLException
        Count the number of mappings to the icon row id
        Parameters:
        id - icon row id
        Returns:
        mappings count
        Throws:
        SQLException - upon failure
        Since:
        6.3.0
      • hasIconRowMapping

        public boolean hasIconRowMapping​(IconRow iconRow)
                                  throws SQLException
        Determine if a mapping to the icon row exists
        Parameters:
        iconRow - icon row
        Returns:
        true if mapping exists
        Throws:
        SQLException - upon failure
        Since:
        6.3.0
      • hasIconRowMapping

        public boolean hasIconRowMapping​(long id)
                                  throws SQLException
        Determine if a mapping to the icon row id exists
        Parameters:
        id - icon row id
        Returns:
        true if mapping exists
        Throws:
        SQLException - upon failure
        Since:
        6.3.0
      • deleteIconRowMappings

        public int deleteIconRowMappings​(IconRow iconRow)
                                  throws SQLException
        Delete icon row mappings
        Parameters:
        iconRow - icon row
        Returns:
        number of mapping rows deleted
        Throws:
        SQLException - upon failure
        Since:
        6.3.0
      • deleteIconRowMappings

        public int deleteIconRowMappings​(long id)
                                  throws SQLException
        Delete icon row mappings
        Parameters:
        id - icon row id
        Returns:
        number of mapping rows deleted
        Throws:
        SQLException - upon failure
        Since:
        6.3.0
      • deleteIconRow

        public int deleteIconRow​(IconRow iconRow)
                          throws SQLException
        Delete an icon row and mappings
        Parameters:
        iconRow - icon row
        Returns:
        number of rows deleted between the icon and mapping tables
        Throws:
        SQLException - upon failure
        Since:
        6.3.0
      • deleteIconRowNotMapped

        public int deleteIconRowNotMapped​(IconRow iconRow)
                                   throws SQLException
        Delete a icon row only if it has no mappings
        Parameters:
        iconRow - icon row
        Returns:
        number of icon rows deleted
        Throws:
        SQLException - upon failure
        Since:
        6.3.0
      • deleteIconRow

        public int deleteIconRow​(long id)
                          throws SQLException
        Delete an icon row by id and mappings
        Parameters:
        id - icon row id
        Returns:
        number of rows deleted between the icon and mapping tables
        Throws:
        SQLException - upon failure
        Since:
        6.3.0
      • deleteIconRowNotMapped

        public int deleteIconRowNotMapped​(long id)
                                   throws SQLException
        Delete a icon row by id only if it has no mappings
        Parameters:
        id - icon row id
        Returns:
        number of icon rows deleted
        Throws:
        SQLException - upon failure
        Since:
        6.3.0
      • deleteIconRows

        public int deleteIconRows​(String whereClause,
                                  String[] whereArgs)
                           throws SQLException
        Delete icon rows matching the where clause and mappings to them
        Parameters:
        whereClause - where clause
        whereArgs - where arguments
        Returns:
        deleted count
        Throws:
        SQLException - upon failure
        Since:
        6.3.0
      • deleteIconRowsNotMapped

        public int deleteIconRowsNotMapped​(String whereClause,
                                           String[] whereArgs)
                                    throws SQLException
        Delete icon rows matching the where clause if they have no mappings
        Parameters:
        whereClause - where clause
        whereArgs - where arguments
        Returns:
        deleted count
        Throws:
        SQLException - upon failure
        Since:
        6.3.0
      • deleteIconRows

        public int deleteIconRows​(Map<String,​Object> fieldValues)
                           throws SQLException
        Delete icon rows matching the field values and mappings to them
        Parameters:
        fieldValues - field values
        Returns:
        deleted count
        Throws:
        SQLException - upon failure
        Since:
        6.3.0
      • deleteIconRowsNotMapped

        public int deleteIconRowsNotMapped​(Map<String,​Object> fieldValues)
                                    throws SQLException
        Delete icon rows matching the field values if they have no mappings
        Parameters:
        fieldValues - field values
        Returns:
        deleted count
        Throws:
        SQLException - upon failure
        Since:
        6.3.0
      • deleteIconRows

        public int deleteIconRows()
                           throws SQLException
        Delete all icon rows and mappings to them
        Returns:
        deleted count
        Throws:
        SQLException - upon failure
        Since:
        6.3.0
      • deleteIconRowsNotMapped

        public int deleteIconRowsNotMapped()
                                    throws SQLException
        Delete all icon rows if they have no mappings
        Returns:
        deleted count
        Throws:
        SQLException - upon failure
        Since:
        6.3.0
      • getAllTableStyleIds

        public List<Long> getAllTableStyleIds​(FeatureTable featureTable)
        Get all the unique style row ids the table maps to
        Parameters:
        featureTable - feature table
        Returns:
        style row ids
      • getAllTableStyleIds

        public List<Long> getAllTableStyleIds​(String featureTable)
        Get all the unique style row ids the table maps to
        Parameters:
        featureTable - feature table
        Returns:
        style row ids
      • getAllTableIconIds

        public List<Long> getAllTableIconIds​(FeatureTable featureTable)
        Get all the unique icon row ids the table maps to
        Parameters:
        featureTable - feature table
        Returns:
        icon row ids
      • getAllTableIconIds

        public List<Long> getAllTableIconIds​(String featureTable)
        Get all the unique icon row ids the table maps to
        Parameters:
        featureTable - feature table
        Returns:
        icon row ids
      • getAllStyleIds

        public List<Long> getAllStyleIds​(FeatureTable featureTable)
        Get all the unique style row ids the features map to
        Parameters:
        featureTable - feature table
        Returns:
        style row ids
      • getAllStyleIds

        public List<Long> getAllStyleIds​(String featureTable)
        Get all the unique style row ids the features map to
        Parameters:
        featureTable - feature table
        Returns:
        style row ids
      • getAllIconIds

        public List<Long> getAllIconIds​(FeatureTable featureTable)
        Get all the unique icon row ids the features map to
        Parameters:
        featureTable - feature table
        Returns:
        icon row ids
      • getAllIconIds

        public List<Long> getAllIconIds​(String featureTable)
        Get all the unique icon row ids the features map to
        Parameters:
        featureTable - feature table
        Returns:
        icon row ids
      • calculatePixelBounds

        public PixelBounds calculatePixelBounds​(String featureTable)
        Calculate style pixel bounds
        Parameters:
        featureTable - feature table
        Returns:
        pixel bounds
        Since:
        6.3.0
      • calculatePixelBounds

        public PixelBounds calculatePixelBounds​(String featureTable,
                                                float scale)
        Calculate style pixel bounds for the feature table
        Parameters:
        featureTable - feature table
        scale - scale factor
        Returns:
        pixel bounds
        Since:
        6.3.0
      • calculatePixelBounds

        public static PixelBounds calculatePixelBounds​(StyleRow styleRow)
        Calculate style pixel bounds for the style row
        Parameters:
        styleRow - style row
        Returns:
        pixel bounds
        Since:
        6.3.0
      • calculatePixelBounds

        public static PixelBounds calculatePixelBounds​(StyleRow styleRow,
                                                       float scale)
        Calculate style pixel bounds for the style row
        Parameters:
        styleRow - style row
        scale - scale factor
        Returns:
        pixel bounds
        Since:
        6.3.0
      • calculatePixelBounds

        public static void calculatePixelBounds​(PixelBounds pixelBounds,
                                                StyleRow styleRow)
        Calculate style pixel bounds for the style row
        Parameters:
        pixelBounds - pixel bounds to expand
        styleRow - style row
        Since:
        6.3.0
      • calculatePixelBounds

        public static void calculatePixelBounds​(PixelBounds pixelBounds,
                                                StyleRow styleRow,
                                                float scale)
        Calculate style pixel bounds for the style row
        Parameters:
        pixelBounds - pixel bounds to expand
        styleRow - style row
        scale - scale factor
        Since:
        6.3.0
      • calculatePixelBounds

        public static PixelBounds calculatePixelBounds​(IconRow iconRow)
        Calculate style pixel bounds for the icon row
        Parameters:
        iconRow - icon row
        Returns:
        pixel bounds
        Since:
        6.3.0
      • calculatePixelBounds

        public static PixelBounds calculatePixelBounds​(IconRow iconRow,
                                                       float scale)
        Calculate style pixel bounds for the icon row
        Parameters:
        iconRow - icon row
        scale - scale factor
        Returns:
        pixel bounds
        Since:
        6.3.0
      • calculatePixelBounds

        public static void calculatePixelBounds​(PixelBounds pixelBounds,
                                                IconRow iconRow)
        Calculate style pixel bounds for the icon row
        Parameters:
        pixelBounds - pixel bounds to expand
        iconRow - icon row
        Since:
        6.3.0
      • calculatePixelBounds

        public static void calculatePixelBounds​(PixelBounds pixelBounds,
                                                IconRow iconRow,
                                                float scale)
        Calculate style pixel bounds for the icon row
        Parameters:
        pixelBounds - pixel bounds to expand
        iconRow - icon row
        scale - scale factor
        Since:
        6.3.0