Style extension

Hierarchy

Constructors

Properties

Methods

_hasStyleRelationship createExtension createIconRelationship createIconTable createRelationships createStyleRelationship createStyleTable createTableIconRelationship createTableStyleRelationship deleteAllFeatureStyles deleteAllIcons deleteAllRelationships deleteAllStyles deleteFeatureStyles deleteIcon deleteIconAndMappingsByIconRow deleteIconAndMappingsByIconRowId deleteIconDefault deleteIconDefaultForFeatureRow deleteIconForFeatureRow deleteIconForFeatureRowAndGeometryType deleteIconRelationship deleteIcons deleteIconsForFeatureId deleteIconsForFeatureRow deleteMapping deleteMappings deleteMappingsForFeatureId deleteRelationships deleteStyle deleteStyleAndMappingsByStyleRow deleteStyleAndMappingsByStyleRowId deleteStyleDefault deleteStyleDefaultForFeatureRow deleteStyleForFeatureRow deleteStyleForFeatureRowAndGeometryType deleteStyleRelationship deleteStyles deleteStylesForFeatureId deleteStylesForFeatureRow deleteTableFeatureStyles deleteTableIcon deleteTableIconDefault deleteTableIconRelationship deleteTableIcons deleteTableMapping deleteTableMappings deleteTableStyle deleteTableStyleDefault deleteTableStyleRelationship deleteTableStyles get getAllIconIds getAllStyleIds getAllTableIconIds getAllTableStyleIds getContentsId getExtension getFeatureStyleDefault getFeatureStyleForFeatureRow getFeatureStyles getFeatureStylesForFeatureRow getFeatureTableName getGeoPackage getIconDao getIconMappingDao getIconsForFeatureId getIconsForFeatureRow getMappingTableName getOrCreate getOrCreateExtension getOrInsertIcon getOrInsertStyle getRelatedTables getStyleDao getStyleMappingDao getStyles getStylesForFeatureId getStylesForFeatureRow getTableFeatureStyles getTableIcon getTableIconDefault getTableIconMappingDao getTableIcons getTableStyle getTableStyleDefault getTableStyleMappingDao getTableStyles getTables has hasExtension hasExtensions hasIconRelationship hasRelationship hasStyleRelationship hasTableIconRelationship hasTableStyleRelationship insertStyleMapping removeExtension setFeatureStyle setFeatureStyleDefault setFeatureStyleDefaultForFeatureRow setFeatureStyleForFeatureRow setFeatureStyleForFeatureRowAndGeometryType setFeatureStyles setFeatureStylesForFeatureRow setIcon setIconDefault setIconDefaultForFeatureRow setIconForFeatureRow setIconForFeatureRowAndGeometryType setIcons setIconsForFeatureRow setStyle setStyleDefault setStyleDefaultForFeatureRow setStyleForFeatureRow setStyleForFeatureRowAndGeometryType setStyles setStylesForFeatureRow setTableFeatureStyles setTableIcon setTableIconDefault setTableIcons setTableStyle setTableStyleDefault setTableStyles verifyWritable

Constructors

Properties

Connection to the GeoPackage

Contents Id extension

extensionDefinition: string

Definition for the extension

extensionName: string

Name of the extension

extensionsDao: ExtensionsDao

ExtensionDao

geoPackage: GeoPackage

GeoPackage

relatedTables: RelatedTablesExtension

Related Tables extension

tableName: string

extension table name

EXTENSION_AUTHOR: "nga" = NGAExtensionsConstants.EXTENSION_AUTHOR

Extension author

EXTENSION_DEFINITION: "https://ngageoint.github.io/GeoPackage/docs/extensions/feature-style.html\">https://ngageoint.github.io/GeoPackage/docs/extensions/feature-style.html" = 'https://ngageoint.github.io/GeoPackage/docs/extensions/feature-style.html">https://ngageoint.github.io/GeoPackage/docs/extensions/feature-style.html'

Extension definition URL

EXTENSION_NAME: string = ...

Extension, with author and name

EXTENSION_NAME_NO_AUTHOR: "feature_style" = 'feature_style'

Extension name without the author

TABLE_MAPPING_ICON: string = ...

Table name prefix for mapping icons

TABLE_MAPPING_STYLE: string = ...

Table name prefix for mapping styles

TABLE_MAPPING_TABLE_ICON: string = ...

Table name prefix for mapping icon defaults

TABLE_MAPPING_TABLE_STYLE: string = ...

Table name prefix for mapping style defaults

Methods

  • Check if the style extension relationship between a feature table and style extension table exists

    Returns

    true if relationship exists

    Parameters

    • mappingTableName: string

      mapping table name

    • baseTable: string

      base table name

    • relatedTable: string

      related table name

    Returns boolean

  • Create the extension

    Parameters

    • extensionName: string
    • tableName: string
    • columnName: string
    • definition: string
    • scopeType: string

    Returns number

  • Delete all feature styles including table styles, table icons, style, and icons

    Parameters

    Returns {
        styles: {
            icons: number;
            styles: number;
        };
        tableStyles: {
            icons: number;
            styles: number;
        };
    }

    • styles: {
          icons: number;
          styles: number;
      }
      • icons: number
      • styles: number
    • tableStyles: {
          icons: number;
          styles: number;
      }
      • icons: number
      • styles: number
  • Delete all icons including table icons and feature row icons

    Parameters

    Returns {
        icons: number;
        tableIcons: number;
    }

    • icons: number
    • tableIcons: number
  • Delete the style and icon table and row relationships for all feature tables

    Returns {
        iconRelationship: number;
        styleRelationships: number;
        tableIconRelationship: number;
        tableStyleRelationships: number;
    }

    • iconRelationship: number
    • styleRelationships: number
    • tableIconRelationship: number
    • tableStyleRelationships: number
  • Delete all styles including table styles and feature row style

    Parameters

    Returns {
        styles: number;
        tableStyles: number;
    }

    • styles: number
    • tableStyles: number
  • Delete the style and icon table and row relationships for the feature table

    Parameters

    Returns {
        iconRelationship: number;
        styleRelationships: number;
        tableIconRelationship: number;
        tableStyleRelationships: number;
    }

    • iconRelationship: number
    • styleRelationships: number
    • tableIconRelationship: number
    • tableStyleRelationships: number
  • Get the extension for the name, table name and column name

    Returns

    Parameters

    • extensionName: string

      extension name

    • Optional tableName: string

      table name

    • Optional columnName: string

      column name

    Returns Extensions

  • Determine if the GeoPackage has the extension

    Returns

    if the extension exists

    Parameters

    • extensionName: string

      extension name

    • tableName: string

      table name

    • columnName: string

      column name

    Returns boolean

  • Insert a style mapping row

    Parameters

    • mappingDao: StyleMappingDao

      mapping dao

    • baseId: number

      base id, either contents id or feature id

    • relatedId: number

      related id, either style or icon id

    • geometryType: GeometryType = null

      geometry type or null

    Returns number

  • Set the feature style (style and icon) of the feature

    Returns

    Parameters

    • featureTable: string | FeatureTable

      feature table

    • featureId: number

      feature id

    • geometryType: GeometryType

      geometry type

    • Optional featureStyle: FeatureStyle

      feature style

    Returns {
        deleted?: {
            icon: number;
            style: number;
        };
        icon: number;
        style: number;
    }

    • Optional deleted?: {
          icon: number;
          style: number;
      }
      • icon: number
      • style: number
    • icon: number
    • style: number
  • Set the feature style (style and icon) of the feature

    Returns

    Parameters

    • featureTable: string | FeatureTable

      feature table

    • featureId: number

      feature id

    • featureStyle: FeatureStyle

      feature style

    Returns {
        deleted?: {
            icon: number;
            style: number;
        };
        icon: number;
        style: number;
    }

    • Optional deleted?: {
          icon: number;
          style: number;
      }
      • icon: number
      • style: number
    • icon: number
    • style: number
  • Set the feature style default (style and icon) of the feature row

    Returns

    Parameters

    Returns {
        deleted?: {
            icon: number;
            style: number;
        };
        icon: number;
        style: number;
    }

    • Optional deleted?: {
          icon: number;
          style: number;
      }
      • icon: number
      • style: number
    • icon: number
    • style: number
  • Set the feature style (style and icon) of the feature row

    Returns

    Parameters

    Returns {
        deleted?: {
            icon: number;
            style: number;
        };
        icon: number;
        style: number;
    }

    • Optional deleted?: {
          icon: number;
          style: number;
      }
      • icon: number
      • style: number
    • icon: number
    • style: number
  • Set the feature style (style and icon) of the feature row for the specified geometry type

    Returns

    Parameters

    • featureRow: FeatureRow

      feature row

    • geometryType: GeometryType

      geometry type

    • featureStyle: FeatureStyle

      feature style

    Returns {
        deleted?: {
            icon: number;
            style: number;
        };
        icon: number;
        style: number;
    }

    • Optional deleted?: {
          icon: number;
          style: number;
      }
      • icon: number
      • style: number
    • icon: number
    • style: number
  • Set the feature styles for the feature table and feature id

    Returns

    Parameters

    • featureTable: string | FeatureTable

      feature table

    • featureId: number

      feature id

    • Optional featureStyles: FeatureStyles

      feature styles

    Returns {
        deleted?: {
            deletedIcons: number;
            deletedStyles: number;
        };
        icons: {
            iconDefault: number;
            icons: number[];
        };
        styles: {
            styleDefault: number;
            styles: number[];
        };
    }

    • Optional deleted?: {
          deletedIcons: number;
          deletedStyles: number;
      }
      • deletedIcons: number
      • deletedStyles: number
    • icons: {
          iconDefault: number;
          icons: number[];
      }
      • iconDefault: number
      • icons: number[]
    • styles: {
          styleDefault: number;
          styles: number[];
      }
      • styleDefault: number
      • styles: number[]
  • Set the feature styles for the feature row

    Returns

    Parameters

    Returns {
        icons: {
            deleted?: {
                icon: number;
                style: number;
            };
            iconDefault: number;
            icons: number[];
        };
        styles: {
            styleDefault: number;
            styles: number[];
        };
    }

    • icons: {
          deleted?: {
              icon: number;
              style: number;
          };
          iconDefault: number;
          icons: number[];
      }
      • Optional deleted?: {
            icon: number;
            style: number;
        }
        • icon: number
        • style: number
      • iconDefault: number
      • icons: number[]
    • styles: {
          styleDefault: number;
          styles: number[];
      }
      • styleDefault: number
      • styles: number[]
  • Get the icon of the feature, searching in order: feature geometry type icon, feature default icon, table geometry type icon, table default icon

    Returns

    Parameters

    • featureTable: string | FeatureTable

      feature table

    • featureId: number

      feature id

    • geometryType: GeometryType

      geometry type

    • Optional icon: IconRow

      icon row

    Returns number

  • Set the icons for the feature table and feature id

    Returns

    Parameters

    • featureTable: string | FeatureTable

      feature table

    • featureId: number

      feature id

    • Optional icons: Icons

      icons

    Returns {
        deleted: number;
        iconDefault: number;
        icons: number[];
    }

    • deleted: number
    • iconDefault: number
    • icons: number[]
  • Set the icons for the feature row

    Returns

    Parameters

    Returns {
        deleted: number;
        iconDefault: number;
        icons: number[];
    }

    • deleted: number
    • iconDefault: number
    • icons: number[]
  • Set the styles for the feature table and feature id

    Returns

    Parameters

    • featureTable: string | FeatureTable

      feature table

    • featureId: number

      feature id

    • Optional styles: Styles

      styles

    Returns {
        deleted: number;
        styleDefault: number;
        styles: number[];
    }

    • deleted: number
    • styleDefault: number
    • styles: number[]
  • Set the styles for the feature row

    Returns

    Parameters

    Returns {
        deleted: number;
        styleDefault: number;
        styles: number[];
    }

    • deleted: number
    • styleDefault: number
    • styles: number[]
  • Set the feature table default feature styles

    Returns

    Parameters

    Returns {
        deleted?: {
            icons: number;
            styles: number;
        };
        tableIcons: {
            iconDefault: number;
            icons: number[];
        };
        tableStyles: {
            styleDefault: number;
            styles: number[];
        };
    }

    • Optional deleted?: {
          icons: number;
          styles: number;
      }
      • icons: number
      • styles: number
    • tableIcons: {
          iconDefault: number;
          icons: number[];
      }
      • iconDefault: number
      • icons: number[]
    • tableStyles: {
          styleDefault: number;
          styles: number[];
      }
      • styleDefault: number
      • styles: number[]
  • Set the feature table default icons

    Returns

    Parameters

    • featureTable: string | FeatureTable

      feature table

    • Optional icons: Icons

      default icons

    Returns {
        deleted: number;
        iconDefault: number;
        icons: number[];
    }

    • deleted: number
    • iconDefault: number
    • icons: number[]
  • Set the feature table default styles

    Returns

    Parameters

    • featureTable: string | FeatureTable

      feature table

    • Optional styles: Styles

      default styles

    Returns {
        deleted: number;
        styleDefault: number;
        styles: number[];
    }

    • deleted: number
    • styleDefault: number
    • styles: number[]

Generated using TypeDoc