コンテンツにスキップ

Colormap

Colormap

Extends

Constructors

new Colormap()

new Colormap(data, option): Colormap

Parameters

Parameter Type
data HTMLImageElement
option Option

Returns

Colormap

Overrides

GeoRastermap.constructor

Properties

offset

readonly offset: Vector2

Inherited from

GeoRastermap.offset


origin

readonly origin: GeoPoint

Inherited from

GeoRastermap.origin


pitch

readonly pitch: Vector2

Inherited from

GeoRastermap.pitch


raster_size

readonly raster_size: Vector2

ラスターデータの幅、高さ(ピクセル)

Inherited from

GeoRastermap.raster_size


size

readonly size: Vector2

大きさ(m) 下記を満たす。 - this.size[0] === this.pitch[0] * this.width - this.size[1] === this.pitch[1] * this.height

Inherited from

GeoRastermap.size

Methods

convertGeoPosToLocal()

convertGeoPosToLocal<T>(pos, dst): T

経度/緯度/高度からローカル座標[m]に変換

Type parameters

Type parameter
T extends Vector3 | Vector2

Parameters

Parameter Type Description
pos GeoPoint 経度/緯度/高度
dst T ローカル座標格納用

Returns

T

ローカル座標[m]

Inherited from

GeoRastermap.convertGeoPosToLocal


convertLocalToGeoPos()

convertLocalToGeoPos(local_pos, dst): GeoPoint

ローカル座標を経度/緯度/標高に変換

Parameters

Parameter Type Description
local_pos Vector3 | Vector2 ローカル座標
dst GeoPoint 経度/緯度/標高値の格納先

Returns

GeoPoint

経度/緯度/標高値

Inherited from

GeoRastermap.convertLocalToGeoPos


convertLocalToPixel()

convertLocalToPixel(local_pos, dst): Vector2

ローカル座標からピクセル座標へ変換

Parameters

Parameter Type Description
local_pos Vector3 | Vector2 ローカル座標
dst Vector2 ピクセル座標格納先

Returns

Vector2

ピクセル座標

Inherited from

GeoRastermap.convertLocalToPixel


dispose()

dispose(): void

リソースを破棄する

Returns

void


getImageTexture()

getImageTexture(glenv): Texture

Parameters

Parameter Type
glenv GLEnv

Returns

Texture


isInDataRange()

isInDataRange(pixel_pos): boolean

Parameters

Parameter Type
pixel_pos Vector2

Returns

boolean

Inherited from

GeoRastermap.isInDataRange


loadCloudColormap()

static loadCloudColormap(image_resource, loption): Promise<Colormap>

MaprayCloud に登録されたデータを指定し Colormapを生成

Parameters

Parameter Type Description
image_resource Resource リソース
loption LoadOption -

Returns

Promise<Colormap>

カラーマップ


loadColormap()

static loadColormap(json_src, image_src, loption): Promise<Colormap>

Colormapを生成

Parameters

Parameter Type Description
json_src string | URLResource Colormap json URLResource or URL
image_src string | URLResource Colormap image URLResource or URL
loption LoadOption -

Returns

Promise<Colormap>

カラーマップ