Interface StyleParser<T>

Interface, which has to be implemented by all GeoStyler style parser classes.

interface StyleParser<T> {
    title: string;
    unsupportedProperties?: UnsupportedProperties;
    readFilter?(inputFilter): Promise<Filter>;
    readRule?(inputRule): Promise<Rule>;
    readScaleDenominator?(inputScaleDenominator): Promise<ScaleDenominator>;
    readStyle(inputStyle): Promise<ReadStyleResult>;
    readSymbolizer?(inputSymbolizer): Promise<Symbolizer>;
    writeFilter?(geoStylerFilter): Promise<any>;
    writeRule?(geoStylerRule): Promise<any>;
    writeScaleDenominator?(geoStylerScaleDenominator): Promise<any>;
    writeStyle(geoStylerStyle): Promise<WriteStyleResult<T>>;
    writeSymbolizer?(geoStylerSymbolizer): Promise<any>;
}

Type Parameters

  • T = any

Properties

title: string

The name of the Parser

unsupportedProperties?: UnsupportedProperties

Object specifying which properties are not or just partially supported.

Methods

  • Parses an input Filter and transforms it to a GeoStyler Filter

    Parameters

    • inputFilter: any

    Returns Promise<Filter>

  • Parses an input Rule and transforms it to a GeoStyler Rule

    Parameters

    • inputRule: any

    Returns Promise<Rule>

  • Parses an input ScaleDenominator and transforms it to a GeoStyler ScaleDenominator

    Parameters

    • inputScaleDenominator: any

    Returns Promise<ScaleDenominator>

  • Parses an input Symbolizer and transforms it to a GeoStyler Symbolizer

    Parameters

    • inputSymbolizer: any

    Returns Promise<Symbolizer>

  • Reads a GeoStyler Filter and transforms it to a target Filter representation.

    Parameters

    • geoStylerFilter: Filter

      Filter

    Returns Promise<any>

  • Reads a GeoStyler Rule and transforms it to a target Rule representation.

    Parameters

    • geoStylerRule: Rule

      Rule

    Returns Promise<any>

  • Reads a GeoStyler ScaleDenominator and transforms it to a target ScaleDenominator representation

    Parameters

    Returns Promise<any>

  • Reads a GeoStyler Symbolizer and transforms it to a target Symbolizer representation

    Parameters

    Returns Promise<any>