Class FeatureStyleExtension
- java.lang.Object
-
- mil.nga.geopackage.extension.BaseExtension
-
- mil.nga.geopackage.extension.nga.style.FeatureCoreStyleExtension
-
- mil.nga.geopackage.extension.nga.style.FeatureStyleExtension
-
public class FeatureStyleExtension extends FeatureCoreStyleExtension
Feature Style extension for styling featureshttp://ngageoint.github.io/GeoPackage/docs/extensions/feature-style.html
- Since:
- 3.2.0
- Author:
- osbornb
-
-
Field Summary
Fields Modifier and Type Field Description protected RelatedTablesExtension
relatedTables
Related Tables extension-
Fields inherited from class mil.nga.geopackage.extension.nga.style.FeatureCoreStyleExtension
contentsId, EXTENSION_AUTHOR, EXTENSION_DEFINITION, EXTENSION_NAME, EXTENSION_NAME_NO_AUTHOR, TABLE_MAPPING_ICON, TABLE_MAPPING_STYLE, TABLE_MAPPING_TABLE_ICON, TABLE_MAPPING_TABLE_STYLE
-
Fields inherited from class mil.nga.geopackage.extension.BaseExtension
extensionsDao, geoPackage
-
-
Constructor Summary
Constructors Constructor Description FeatureStyleExtension(GeoPackage geoPackage)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PixelBounds
calculatePixelBounds(String featureTable)
Calculate style pixel boundsPixelBounds
calculatePixelBounds(String featureTable, float scale)
Calculate style pixel bounds for the feature tablestatic PixelBounds
calculatePixelBounds(IconRow iconRow)
Calculate style pixel bounds for the icon rowstatic PixelBounds
calculatePixelBounds(IconRow iconRow, float scale)
Calculate style pixel bounds for the icon rowstatic PixelBounds
calculatePixelBounds(StyleRow styleRow)
Calculate style pixel bounds for the style rowstatic PixelBounds
calculatePixelBounds(StyleRow styleRow, float scale)
Calculate style pixel bounds for the style rowstatic void
calculatePixelBounds(PixelBounds pixelBounds, IconRow iconRow)
Calculate style pixel bounds for the icon rowstatic void
calculatePixelBounds(PixelBounds pixelBounds, IconRow iconRow, float scale)
Calculate style pixel bounds for the icon rowstatic void
calculatePixelBounds(PixelBounds pixelBounds, StyleRow styleRow)
Calculate style pixel bounds for the style rowstatic void
calculatePixelBounds(PixelBounds pixelBounds, StyleRow styleRow, float scale)
Calculate style pixel bounds for the style rowint
countIconRowMappings(long id)
Count the number of mappings to the icon row idint
countIconRowMappings(IconRow iconRow)
Count the number of mappings to the icon rowint
countStyleRowMappings(long id)
Count the number of mappings to the style row idint
countStyleRowMappings(StyleRow styleRow)
Count the number of mappings to the style rowvoid
deleteAllFeatureStyles(String featureTable)
Delete all feature styles including table styles, table icons, style, and iconsvoid
deleteAllFeatureStyles(FeatureTable featureTable)
Delete all feature styles including table styles, table icons, style, and iconsvoid
deleteAllIcons(String featureTable)
Delete all icons including table icons and feature row iconsvoid
deleteAllIcons(FeatureTable featureTable)
Delete all icons including table icons and feature row iconsvoid
deleteAllStyles(String featureTable)
Delete all styles including table styles and feature row stylesvoid
deleteAllStyles(FeatureTable featureTable)
Delete all styles including table styles and feature row stylesvoid
deleteFeatureStyles(String featureTable)
Delete all feature stylesvoid
deleteFeatureStyles(FeatureTable featureTable)
Delete all feature stylesvoid
deleteIcon(String featureTable, long featureId, GeometryType geometryType)
Delete the feature row icon for the geometry typevoid
deleteIcon(FeatureRow featureRow)
Delete the feature row icon for the feature row geometry typevoid
deleteIcon(FeatureRow featureRow, GeometryType geometryType)
Delete the feature row icon for the geometry typevoid
deleteIconDefault(String featureTable, long featureId)
Delete the feature row default iconvoid
deleteIconDefault(FeatureRow featureRow)
Delete the feature row default iconint
deleteIconRow(long id)
Delete an icon row by id and mappingsint
deleteIconRow(IconRow iconRow)
Delete an icon row and mappingsint
deleteIconRowMappings(long id)
Delete icon row mappingsint
deleteIconRowMappings(IconRow iconRow)
Delete icon row mappingsint
deleteIconRowNotMapped(long id)
Delete a icon row by id only if it has no mappingsint
deleteIconRowNotMapped(IconRow iconRow)
Delete a icon row only if it has no mappingsint
deleteIconRows()
Delete all icon rows and mappings to themint
deleteIconRows(String whereClause, String[] whereArgs)
Delete icon rows matching the where clause and mappings to themint
deleteIconRows(Map<String,Object> fieldValues)
Delete icon rows matching the field values and mappings to themint
deleteIconRowsNotMapped()
Delete all icon rows if they have no mappingsint
deleteIconRowsNotMapped(String whereClause, String[] whereArgs)
Delete icon rows matching the where clause if they have no mappingsint
deleteIconRowsNotMapped(Map<String,Object> fieldValues)
Delete icon rows matching the field values if they have no mappingsvoid
deleteIcons(String featureTable)
Delete all iconsvoid
deleteIcons(String featureTable, long featureId)
Delete feature row iconsvoid
deleteIcons(FeatureRow featureRow)
Delete feature row iconsvoid
deleteIcons(FeatureTable featureTable)
Delete all iconsvoid
deleteStyle(String featureTable, long featureId, GeometryType geometryType)
Delete the feature row style for the geometry typevoid
deleteStyle(FeatureRow featureRow)
Delete the feature row style for the feature row geometry typevoid
deleteStyle(FeatureRow featureRow, GeometryType geometryType)
Delete the feature row style for the geometry typevoid
deleteStyleDefault(String featureTable, long featureId)
Delete the feature row default stylevoid
deleteStyleDefault(FeatureRow featureRow)
Delete the feature row default styleint
deleteStyleRow(long id)
Delete a style row by id and mappingsint
deleteStyleRow(StyleRow styleRow)
Delete a style row and mappingsint
deleteStyleRowMappings(long id)
Delete style row mappingsint
deleteStyleRowMappings(StyleRow styleRow)
Delete style row mappingsint
deleteStyleRowNotMapped(long id)
Delete a style row by id only if it has no mappingsint
deleteStyleRowNotMapped(StyleRow styleRow)
Delete a style row only if it has no mappingsint
deleteStyleRows()
Delete all style rows and mappings to themint
deleteStyleRows(String whereClause, String[] whereArgs)
Delete style rows matching the where clause and mappings to themint
deleteStyleRows(Map<String,Object> fieldValues)
Delete style rows matching the field values and mappings to themint
deleteStyleRowsNotMapped()
Delete all style rows if they have no mappingsint
deleteStyleRowsNotMapped(String whereClause, String[] whereArgs)
Delete style rows matching the where clause if they have no mappingsint
deleteStyleRowsNotMapped(Map<String,Object> fieldValues)
Delete style rows matching the field values if they have no mappingsvoid
deleteStyles(String featureTable)
Delete all stylesvoid
deleteStyles(String featureTable, long featureId)
Delete feature row stylesvoid
deleteStyles(FeatureRow featureRow)
Delete feature row stylesvoid
deleteStyles(FeatureTable featureTable)
Delete all stylesvoid
deleteTableFeatureStyles(String featureTable)
Delete the feature table feature stylesvoid
deleteTableFeatureStyles(FeatureTable featureTable)
Delete the feature table feature stylesvoid
deleteTableIcon(String featureTable, GeometryType geometryType)
Delete the feature table icon for the geometry typevoid
deleteTableIcon(FeatureTable featureTable, GeometryType geometryType)
Delete the feature table icon for the geometry typevoid
deleteTableIconDefault(String featureTable)
Delete the feature table default iconvoid
deleteTableIconDefault(FeatureTable featureTable)
Delete the feature table default iconvoid
deleteTableIcons(String featureTable)
Delete the feature table iconsvoid
deleteTableIcons(FeatureTable featureTable)
Delete the feature table iconsvoid
deleteTableStyle(String featureTable, GeometryType geometryType)
Delete the feature table style for the geometry typevoid
deleteTableStyle(FeatureTable featureTable, GeometryType geometryType)
Delete the feature table style for the geometry typevoid
deleteTableStyleDefault(String featureTable)
Delete the feature table default stylevoid
deleteTableStyleDefault(FeatureTable featureTable)
Delete the feature table default stylevoid
deleteTableStyles(String featureTable)
Delete the feature table stylesvoid
deleteTableStyles(FeatureTable featureTable)
Delete the feature table stylesList<Long>
getAllIconIds(String featureTable)
Get all the unique icon row ids the features map toList<Long>
getAllIconIds(FeatureTable featureTable)
Get all the unique icon row ids the features map toList<Long>
getAllStyleIds(String featureTable)
Get all the unique style row ids the features map toList<Long>
getAllStyleIds(FeatureTable featureTable)
Get all the unique style row ids the features map toList<Long>
getAllTableIconIds(String featureTable)
Get all the unique icon row ids the table maps toList<Long>
getAllTableIconIds(FeatureTable featureTable)
Get all the unique icon row ids the table maps toList<Long>
getAllTableStyleIds(String featureTable)
Get all the unique style row ids the table maps toList<Long>
getAllTableStyleIds(FeatureTable featureTable)
Get all the unique style row ids the table maps toMap<Long,IconRow>
getFeatureIcons(String featureTable)
Get all icons used by feature rows in the tableFeatureStyle
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 iconFeatureStyle
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 iconFeatureStyle
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 iconFeatureStyle
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 iconFeatureStyle
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 iconMap<Long,StyleRow>
getFeatureStyles(String featureTable)
Get all styles used by feature rows in the tableFeatureStyles
getFeatureStyles(String featureTable, long featureId)
Get the feature styles for the feature table and feature idFeatureStyles
getFeatureStyles(FeatureRow featureRow)
Get the feature styles for the feature rowGeoPackage
getGeoPackage()
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 iconIconRow
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 iconIconRow
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 iconIconRow
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 iconIconDao
getIconDao()
Get a icon DAOIconRow
getIconDefault(String featureTable, long featureId)
Get the default icon of the feature, searching in order: feature default icon, table default iconIconRow
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 iconIconRow
getIconDefault(FeatureRow featureRow)
Get the default icon of the feature row, searching in order: feature default icon, table default iconStyleMappingDao
getIconMappingDao(String featureTable)
Get a Icon Mapping DAOMap<Long,IconRow>
getIcons(String featureTable)
Get all icons used by the feature tableIcons
getIcons(String featureTable, long featureId)
Get the icons for the feature table and feature idIcons
getIcons(FeatureRow featureRow)
Get the icons for the feature rowRelatedTablesExtension
getRelatedTables()
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 styleStyleRow
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 styleStyleRow
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 styleStyleRow
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 styleStyleDao
getStyleDao()
Get a style DAOStyleRow
getStyleDefault(String featureTable, long featureId)
Get the default style of the feature, searching in order: feature default style, table default styleStyleRow
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 styleStyleRow
getStyleDefault(FeatureRow featureRow)
Get the default style of the feature row, searching in order: feature default style, table default styleStyleMappingDao
getStyleMappingDao(String featureTable)
Get a Style Mapping DAOMap<Long,StyleRow>
getStyles(String featureTable)
Get all styles used by the feature tableStyles
getStyles(String featureTable, long featureId)
Get the styles for the feature table and feature idStyles
getStyles(FeatureRow featureRow)
Get the styles for the feature rowFeatureStyles
getTableFeatureStyles(String featureTable)
Get the feature table default feature stylesFeatureStyles
getTableFeatureStyles(FeatureTable featureTable)
Get the feature table default feature stylesIconRow
getTableIcon(String featureTable, GeometryType geometryType)
Get the icon of the feature table and geometry typeIconRow
getTableIconDefault(String featureTable)
Get the default icon of the feature tableStyleMappingDao
getTableIconMappingDao(String featureTable)
Get a Table Icon Mapping DAOIcons
getTableIcons(String featureTable)
Get the feature table default iconsIcons
getTableIcons(FeatureTable featureTable)
Get the feature table default iconsStyleRow
getTableStyle(String featureTable, GeometryType geometryType)
Get the style of the feature table and geometry typeStyleRow
getTableStyleDefault(String featureTable)
Get the default style of the feature tableStyleMappingDao
getTableStyleMappingDao(String featureTable)
Get a Table Style Mapping DAOStyles
getTableStyles(String featureTable)
Get the feature table default stylesStyles
getTableStyles(FeatureTable featureTable)
Get the feature table default stylesboolean
hasIconRowMapping(long id)
Determine if a mapping to the icon row id existsboolean
hasIconRowMapping(IconRow iconRow)
Determine if a mapping to the icon row existsboolean
hasStyleRowMapping(long id)
Determine if a mapping to the style row id existsboolean
hasStyleRowMapping(StyleRow styleRow)
Determine if a mapping to the style row existsvoid
setFeatureStyle(String featureTable, long featureId, GeometryType geometryType, FeatureStyle featureStyle)
Set the feature style (style and icon) of the featurevoid
setFeatureStyle(FeatureRow featureRow, FeatureStyle featureStyle)
Set the feature style (style and icon) of the feature rowvoid
setFeatureStyle(FeatureRow featureRow, GeometryType geometryType, FeatureStyle featureStyle)
Set the feature style (style and icon) of the feature row for the specified geometry typevoid
setFeatureStyleDefault(String featureTable, long featureId, FeatureStyle featureStyle)
Set the feature style (style and icon) of the featurevoid
setFeatureStyleDefault(FeatureRow featureRow, FeatureStyle featureStyle)
Set the feature style default (style and icon) of the feature rowvoid
setFeatureStyles(String featureTable, long featureId, FeatureStyles featureStyles)
Set the feature styles for the feature table and feature idvoid
setFeatureStyles(FeatureRow featureRow, FeatureStyles featureStyles)
Set the feature styles for the feature rowvoid
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 iconvoid
setIcon(FeatureRow featureRow, IconRow icon)
Set the icon of the feature rowvoid
setIcon(FeatureRow featureRow, GeometryType geometryType, IconRow icon)
Set the icon of the feature row for the specified geometry typevoid
setIconDefault(String featureTable, long featureId, IconRow icon)
Set the default icon of the featurevoid
setIconDefault(FeatureRow featureRow, IconRow icon)
Set the default icon of the feature rowvoid
setIcons(String featureTable, long featureId, Icons icons)
Set the icons for the feature table and feature idvoid
setIcons(FeatureRow featureRow, Icons icons)
Set the icons for the feature rowvoid
setStyle(String featureTable, long featureId, GeometryType geometryType, StyleRow style)
Set the style of the featurevoid
setStyle(FeatureRow featureRow, StyleRow style)
Set the style of the feature rowvoid
setStyle(FeatureRow featureRow, GeometryType geometryType, StyleRow style)
Set the style of the feature row for the specified geometry typevoid
setStyleDefault(String featureTable, long featureId, StyleRow style)
Set the default style of the featurevoid
setStyleDefault(FeatureRow featureRow, StyleRow style)
Set the default style of the feature rowvoid
setStyles(String featureTable, long featureId, Styles styles)
Set the styles for the feature table and feature idvoid
setStyles(FeatureRow featureRow, Styles styles)
Set the styles for the feature rowvoid
setTableFeatureStyles(String featureTable, FeatureStyles featureStyles)
Set the feature table default feature stylesvoid
setTableFeatureStyles(FeatureTable featureTable, FeatureStyles featureStyles)
Set the feature table default feature stylesvoid
setTableIcon(String featureTable, GeometryType geometryType, IconRow icon)
Set the feature table icon for the geometry typevoid
setTableIcon(FeatureTable featureTable, GeometryType geometryType, IconRow icon)
Set the feature table icon for the geometry typevoid
setTableIconDefault(String featureTable, IconRow icon)
Set the feature table icon defaultvoid
setTableIconDefault(FeatureTable featureTable, IconRow icon)
Set the feature table icon defaultvoid
setTableIcons(String featureTable, Icons icons)
Set the feature table default iconsvoid
setTableIcons(FeatureTable featureTable, Icons icons)
Set the feature table default iconsvoid
setTableStyle(String featureTable, GeometryType geometryType, StyleRow style)
Set the feature table style for the geometry typevoid
setTableStyle(FeatureTable featureTable, GeometryType geometryType, StyleRow style)
Set the feature table style for the geometry typevoid
setTableStyleDefault(String featureTable, StyleRow style)
Set the feature table style defaultvoid
setTableStyleDefault(FeatureTable featureTable, StyleRow style)
Set the feature table style defaultvoid
setTableStyles(String featureTable, Styles styles)
Set the feature table default stylesvoid
setTableStyles(FeatureTable featureTable, Styles styles)
Set the feature table default styles-
Methods inherited from class mil.nga.geopackage.extension.nga.style.FeatureCoreStyleExtension
createIconRelationship, createIconTable, createRelationships, createStyleRelationship, createStyleTable, createTableIconRelationship, createTableStyleRelationship, deleteIconRelationship, deleteRelationships, deleteRelationships, deleteStyleRelationship, deleteTableIconRelationship, deleteTableStyleRelationship, get, getContentsId, getIconTableRelations, getMappingTableName, getStyleTableRelations, getTables, has, has, hasIconRelationship, hasIconTableRelations, hasRelationship, hasStyleRelationship, hasStyleTableRelations, hasTableIconRelationship, hasTableStyleRelationship, removeExtension
-
Methods inherited from class mil.nga.geopackage.extension.BaseExtension
createDao, get, getExtensions, getExtensions, getExtensionsDao, getOrCreate, has, has, verifyWritable
-
-
-
-
Field Detail
-
relatedTables
protected final RelatedTablesExtension relatedTables
Related Tables extension
-
-
Constructor Detail
-
FeatureStyleExtension
public FeatureStyleExtension(GeoPackage geoPackage)
Constructor- Parameters:
geoPackage
- GeoPackage
-
-
Method Detail
-
getGeoPackage
public GeoPackage getGeoPackage()
- Overrides:
getGeoPackage
in classBaseExtension
-
getRelatedTables
public RelatedTablesExtension getRelatedTables()
- Overrides:
getRelatedTables
in classFeatureCoreStyleExtension
-
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 tablegeometryType
- 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 tablegeometryType
- 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 tablefeatureId
- 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 rowgeometryType
- 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 tablefeatureId
- feature idgeometryType
- 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 tablefeatureId
- 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 tablefeatureId
- 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 rowgeometryType
- 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 tablefeatureId
- feature idgeometryType
- 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 tablefeatureId
- 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 tablefeatureId
- feature idgeometryType
- geometry typetableStyle
- 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 tablefeatureId
- feature idtableStyle
- 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 tablefeatureId
- 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 rowgeometryType
- 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 tablefeatureId
- feature idgeometryType
- 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 tablefeatureId
- 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 tablefeatureId
- feature idgeometryType
- geometry typetableIcon
- 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 tablefeatureId
- feature idtableIcon
- 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 tablefeatureStyles
- default feature styles
-
setTableFeatureStyles
public void setTableFeatureStyles(String featureTable, FeatureStyles featureStyles)
Set the feature table default feature styles- Parameters:
featureTable
- feature tablefeatureStyles
- default feature styles
-
setTableStyles
public void setTableStyles(FeatureTable featureTable, Styles styles)
Set the feature table default styles- Parameters:
featureTable
- feature tablestyles
- default styles
-
setTableStyles
public void setTableStyles(String featureTable, Styles styles)
Set the feature table default styles- Parameters:
featureTable
- feature tablestyles
- default styles
-
setTableStyleDefault
public void setTableStyleDefault(FeatureTable featureTable, StyleRow style)
Set the feature table style default- Parameters:
featureTable
- feature tablestyle
- style row
-
setTableStyleDefault
public void setTableStyleDefault(String featureTable, StyleRow style)
Set the feature table style default- Parameters:
featureTable
- feature tablestyle
- style row
-
setTableStyle
public void setTableStyle(FeatureTable featureTable, GeometryType geometryType, StyleRow style)
Set the feature table style for the geometry type- Parameters:
featureTable
- feature tablegeometryType
- geometry typestyle
- style row
-
setTableStyle
public void setTableStyle(String featureTable, GeometryType geometryType, StyleRow style)
Set the feature table style for the geometry type- Parameters:
featureTable
- feature tablegeometryType
- geometry typestyle
- style row
-
setTableIcons
public void setTableIcons(FeatureTable featureTable, Icons icons)
Set the feature table default icons- Parameters:
featureTable
- feature tableicons
- default icons
-
setTableIcons
public void setTableIcons(String featureTable, Icons icons)
Set the feature table default icons- Parameters:
featureTable
- feature tableicons
- default icons
-
setTableIconDefault
public void setTableIconDefault(FeatureTable featureTable, IconRow icon)
Set the feature table icon default- Parameters:
featureTable
- feature tableicon
- icon row
-
setTableIconDefault
public void setTableIconDefault(String featureTable, IconRow icon)
Set the feature table icon default- Parameters:
featureTable
- feature tableicon
- icon row
-
setTableIcon
public void setTableIcon(FeatureTable featureTable, GeometryType geometryType, IconRow icon)
Set the feature table icon for the geometry type- Parameters:
featureTable
- feature tablegeometryType
- geometry typeicon
- icon row
-
setTableIcon
public void setTableIcon(String featureTable, GeometryType geometryType, IconRow icon)
Set the feature table icon for the geometry type- Parameters:
featureTable
- feature tablegeometryType
- geometry typeicon
- icon row
-
setFeatureStyles
public void setFeatureStyles(FeatureRow featureRow, FeatureStyles featureStyles)
Set the feature styles for the feature row- Parameters:
featureRow
- feature rowfeatureStyles
- 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 tablefeatureId
- feature idfeatureStyles
- feature styles
-
setFeatureStyle
public void setFeatureStyle(FeatureRow featureRow, FeatureStyle featureStyle)
Set the feature style (style and icon) of the feature row- Parameters:
featureRow
- feature rowfeatureStyle
- 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 rowgeometryType
- geometry typefeatureStyle
- 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 rowfeatureStyle
- 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 tablefeatureId
- feature idgeometryType
- geometry typefeatureStyle
- 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 tablefeatureId
- feature idfeatureStyle
- feature style
-
setStyles
public void setStyles(FeatureRow featureRow, Styles styles)
Set the styles for the feature row- Parameters:
featureRow
- feature rowstyles
- styles
-
setStyles
public void setStyles(String featureTable, long featureId, Styles styles)
Set the styles for the feature table and feature id- Parameters:
featureTable
- feature tablefeatureId
- feature idstyles
- styles
-
setStyle
public void setStyle(FeatureRow featureRow, StyleRow style)
Set the style of the feature row- Parameters:
featureRow
- feature rowstyle
- 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 rowgeometryType
- geometry typestyle
- style row
-
setStyleDefault
public void setStyleDefault(FeatureRow featureRow, StyleRow style)
Set the default style of the feature row- Parameters:
featureRow
- feature rowstyle
- style row
-
setStyle
public void setStyle(String featureTable, long featureId, GeometryType geometryType, StyleRow style)
Set the style of the feature- Parameters:
featureTable
- feature tablefeatureId
- feature idgeometryType
- geometry typestyle
- style row
-
setStyleDefault
public void setStyleDefault(String featureTable, long featureId, StyleRow style)
Set the default style of the feature- Parameters:
featureTable
- feature tablefeatureId
- feature idstyle
- style row
-
setIcons
public void setIcons(FeatureRow featureRow, Icons icons)
Set the icons for the feature row- Parameters:
featureRow
- feature rowicons
- icons
-
setIcons
public void setIcons(String featureTable, long featureId, Icons icons)
Set the icons for the feature table and feature id- Parameters:
featureTable
- feature tablefeatureId
- feature idicons
- icons
-
setIcon
public void setIcon(FeatureRow featureRow, IconRow icon)
Set the icon of the feature row- Parameters:
featureRow
- feature rowicon
- 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 rowgeometryType
- geometry typeicon
- icon row
-
setIconDefault
public void setIconDefault(FeatureRow featureRow, IconRow icon)
Set the default icon of the feature row- Parameters:
featureRow
- feature rowicon
- 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 tablefeatureId
- feature idgeometryType
- geometry typeicon
- icon row
-
setIconDefault
public void setIconDefault(String featureTable, long featureId, IconRow icon)
Set the default icon of the feature- Parameters:
featureTable
- feature tablefeatureId
- feature idicon
- 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 tablegeometryType
- geometry type
-
deleteTableStyle
public void deleteTableStyle(String featureTable, GeometryType geometryType)
Delete the feature table style for the geometry type- Parameters:
featureTable
- feature tablegeometryType
- 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 tablegeometryType
- geometry type
-
deleteTableIcon
public void deleteTableIcon(String featureTable, GeometryType geometryType)
Delete the feature table icon for the geometry type- Parameters:
featureTable
- feature tablegeometryType
- 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 tablefeatureId
- 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 tablefeatureId
- 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 rowgeometryType
- geometry type
-
deleteStyle
public void deleteStyle(String featureTable, long featureId, GeometryType geometryType)
Delete the feature row style for the geometry type- Parameters:
featureTable
- feature tablefeatureId
- feature idgeometryType
- 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 tablefeatureId
- 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 tablefeatureId
- 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 rowgeometryType
- geometry type
-
deleteIcon
public void deleteIcon(String featureTable, long featureId, GeometryType geometryType)
Delete the feature row icon for the geometry type- Parameters:
featureTable
- feature tablefeatureId
- feature idgeometryType
- 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 clausewhereArgs
- 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 clausewhereArgs
- 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 clausewhereArgs
- 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 clausewhereArgs
- 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 tablescale
- 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 rowscale
- 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 expandstyleRow
- 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 expandstyleRow
- style rowscale
- 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 rowscale
- 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 expandiconRow
- 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 expandiconRow
- icon rowscale
- scale factor- Since:
- 6.3.0
-
-