Skip to content

API / geotoolkit / contour / datasource / AbstractContourDataSource / AbstractContourDataSource

Class: AbstractContourDataSource

datasource.AbstractContourDataSource.AbstractContourDataSource

Abstract datasource that supplies data for contour. Data are supplied as a set of grids. Contour building algorithm calls 'Query' method to get the enumerator that enumerates set of grids appropriate for given model rectangle and model-to-device transformation. Contour building algorithm calls 'LoadGrid' on enumerator to load grid into memory and get access to its data.

Hierarchy

Table of contents

Constructors
  • [new AbstractContourDataSource()](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.contour.datasource.abstractcontourdatasource.abstractcontourdatasource.md#new abstractcontourdatasource())
Methods

Contents

Constructors

new AbstractContourDataSource()

• new AbstractContourDataSource()

Methods

freeGrid

▸ Abstract freeGrid(grid): void

Release memory occupied by the grid.

Parameters

Name Type Description
gridContourAbstractGridThe grid that contains points.

Returns

void


getClassName

▸ getClassName(): string

Returns

string


getModelLimits

▸ Abstract getModelLimits(): Rect

Gets the model limits of contour data.

Returns

Rect

modelLimits The rectangle that contains all data grids,


getProperties

▸ getProperties(): AnyRecord

Gets the datasource properties

Returns

AnyRecord

properties datasource properties


loadGrid

▸ Abstract loadGrid(): ContourAbstractGrid

Loads grid into memory.

Returns

ContourAbstractGrid

grid The loaded grid.


setProperties

▸ setProperties(properties): AbstractContourDataSource

Sets the datasource properties

Parameters

Name Type Description
propertiesAnyRecorddatasource properties

Returns

AbstractContourDataSource

this


getClassName

▸ Static getClassName(): string

Returns

string