geopackage-sdk/src/main/java/mil/nga/geopackage/extension/style/FeatureStyleExtension.java
public void setTableIcon(String featureTable, GeometryType geometryType,
                             IconRow icon) {

        deleteTableIcon(featureTable, geometryType);

        if (icon != null) {

            createTableIconRelationship(featureTable);

            long featureContentsId = contentsId.getOrCreateId(featureTable);

            long iconId = getOrInsertIcon(icon);

            StyleMappingDao mappingDao = getTableIconMappingDao(featureTable);
            insertStyleMapping(mappingDao, featureContentsId, iconId,
                    geometryType);

        }
    }
public void setTableIcon(String featureTable, GeometryType geometryType,
                             IconRow icon) {

        deleteTableIcon(featureTable, geometryType);

        if (icon != null) {

            createTableIconRelationship(featureTable);

            long featureContentsId = contentsId.getOrCreateId(featureTable);

            long iconId = getOrInsertIcon(icon);

            StyleMappingDao mappingDao = getTableIconMappingDao(featureTable);
            insertStyleMapping(mappingDao, featureContentsId, iconId,
                    geometryType);

        }
    }
public void setTableIcon ( String featureTable , GeometryType geometryType , IconRow icon ) { deleteTableIcon ( featureTable , geometryType ) ; if ( icon != null ) { createTableIconRelationship ( featureTable ) ; long featureContentsId = contentsId . getOrCreateId ( featureTable ) ; long iconId = getOrInsertIcon ( icon ) ; StyleMappingDao mappingDao = getTableIconMappingDao ( featureTable ) ; insertStyleMapping ( mappingDao , featureContentsId , iconId , geometryType ) ; } }
Set the feature table icon for the geometry type

@param featureTable feature table
@param geometryType geometry type
@param icon         icon row
Set the feature table icon for the geometry type