Internal Dataset class

import Dataset from './dataset.js'

const dataset = new Dataset(config)

Hierarchy (View Summary)

Constructors

Properties

availability: IAvailability
category?: Category
created: Date
dataLiabilityAgreement?: DataLiabilityAgreement
description?: string
hasApiListener: boolean
hasIncludedAttributes: boolean
id: string
license?: License
livePreviews?: LivePreview[]
metadata?: string
owners?: Organization[]
previewImages?: PreviewImage[]
related?: Dataset[]
supportContact?: string
tags?: Tag[]
thumbnail?: Image
title: string
type: string
updated: Date
wfsSource?: WfsSource
wmsSource?: WmsSource
wmtsSource?: WmtsSource

Accessors

  • get error(): boolean
  • Returns boolean

  • get favorite(): boolean
  • Returns boolean

  • set favorite(isFavorite: boolean): void
  • Parameters

    • isFavorite: boolean

    Returns void

  • get legends(): Legend[]
  • Returns Legend[]

  • get opacity(): number
  • Returns number

  • set opacity(opacity: number): void
  • Parameters

    • opacity: number

    Returns void

  • get queryable(): boolean
  • Determines if this dataset supports querying

    Returns boolean

  • get renderable(): boolean
  • Determines if this dataset supports rendering

    Returns boolean

  • get visible(): boolean
  • Returns boolean

  • set visible(visible: boolean): void
  • Parameters

    • visible: boolean

    Returns void

Methods

  • Parameters

    • event: string
    • ...args: unknown[]

    Returns void

  • Get an OpenLayers layer to add to a map

    Parameters

    • Optionalcopy: boolean

      Create a new OpenLayers layer without relation to the dataset

    • OptionalsourceType: "WMS" | "WMTS"

      Force to use a specific source type

    Returns BaseLayer

  • Remove a listen from an event

    Parameters

    • listener: EventListener_2

      returned by the on method

    Returns void

  • Listen to an event

    Parameters

    • event:
          | "change:favorite"
          | "change:visible"
          | "change"
          | "change:opacity"
          | "rendererror"

      Name of the event

    • callback: EventListenerCallback

      When the event is triggered

      • For 'change:opacity' the callback function is called with the event name and the new opacity
      • For 'change:visible' the callback function is called with the event name and the visible state
      • For 'change:favorite' the callback function is called with the event name and the favorite state
      • For 'rendererror' the callback function is called with the event name and the requested URL

    Returns EventListener_2

    A listener that can be used for removing the listener

  • Parameters

    • feature: Feature

    Returns any

  • Parameters

    • filter: Filter
    • Optionallimit: number
    • Optionaltimeout: number

    Returns Promise<Feature[]>

  • Query a Dataset with a coordinate

    Parameters

    • coordinate: Coordinate

      The coordinate to query with

    • Optionaloptions: QueryOptions

      Options for the query

    Returns Promise<QueryResult>

    a query result

  • Query a Dataset with an extent

    Parameters

    • extent: Extent

      The bounding box to query with

    • Optionaloptions: QueryOptions

      Options for the query

    Returns Promise<QueryResult>

    a query result

  • Query the Dataset with a Geometry

    Parameters

    • geometry: Geometry

      The Geometry to query with

    • Optionaloptions: QueryOptions

      Options for the query

    Returns Promise<QueryResult>

    a query result

  • Query the Dataset for a specific feature using id

    Parameters

    • id: string | number

      An id of a Feature from the Dataset

    Returns Promise<Feature>

    a list of queried dataset with the related hit

  • Parameters

    Returns void