autumnplot-gl

Hardware-accelerated geospatial data plotting in the browser


Project maintained by tsupinie Hosted on GitHub Pages — Theme by mattgraham

autumnplot-glDocs


autumnplot-gl / Grid

Class: abstract Grid

Extended by

Constructors

new Grid()

new Grid(type, is_conformal, ni, nj): Grid

Parameters

type: GridType

is_conformal: boolean

ni: number

nj: number

Returns

Grid

Source

Grid.ts:92

Properties

is_conformal

readonly is_conformal: boolean

Source

Grid.ts:86


ni

readonly ni: number

Source

Grid.ts:84


nj

readonly nj: number

Source

Grid.ts:85


type

readonly type: GridType

Source

Grid.ts:83

Methods

copy()

abstract copy(opts?): Grid

Parameters

opts?

opts.ni?: number

opts.nj?: number

Returns

Grid

Source

Grid.ts:113


getEarthCoords()

abstract getEarthCoords(): EarthCoords

Returns

EarthCoords

Source

Grid.ts:115


getGridCoords()

abstract getGridCoords(): GridCoords

Returns

GridCoords

Source

Grid.ts:116


getThinnedGrid()

abstract getThinnedGrid(thin_x, thin_y): Grid

Parameters

thin_x: number

thin_y: number

Returns

Grid

Source

Grid.ts:118


getVectorRotationTexture()

getVectorRotationTexture(gl): object

Parameters

gl: WebGLAnyRenderingContext

Returns

object

rotation

rotation: WGLTexture

Source

Grid.ts:128


getWGLBillboardBuffers()

getWGLBillboardBuffers(gl, thin_fac, max_zoom): Promise<object>

Parameters

gl: WebGLAnyRenderingContext

thin_fac: number

max_zoom: number

Returns

Promise<object>

texcoords

texcoords: WGLBuffer

vertices

vertices: WGLBuffer

Source

Grid.ts:124


getWGLBuffers()

getWGLBuffers(gl): Promise<object>

Parameters

gl: WebGLAnyRenderingContext

Returns

Promise<object>

cellsize

cellsize: WGLBuffer

texcoords

texcoords: WGLBuffer

vertices

vertices: WGLBuffer

Source

Grid.ts:120


transform()

abstract transform(x, y, opts?): [number, number]

Parameters

x: number

y: number

opts?

opts.inverse?: boolean

Returns

[number, number]

Source

Grid.ts:117