Colormap¶
Colormap
Extends¶
Constructors¶
new Colormap()¶
new Colormap(
data,option):Colormap
Parameters¶
| Parameter | Type |
|---|---|
data |
HTMLImageElement |
option |
Option |
Returns¶
Overrides¶
Properties¶
offset¶
readonlyoffset:Vector2
Inherited from¶
origin¶
readonlyorigin:GeoPoint
Inherited from¶
pitch¶
readonlypitch:Vector2
Inherited from¶
raster_size¶
readonlyraster_size:Vector2
ラスターデータの幅、高さ(ピクセル)
Inherited from¶
size¶
readonlysize:Vector2
大きさ(m)
下記を満たす。
- this.size[0] === this.pitch[0] * this.width
- this.size[1] === this.pitch[1] * this.height
Inherited from¶
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¶
経度/緯度/標高値
Inherited from¶
GeoRastermap.convertLocalToGeoPos
convertLocalToPixel()¶
convertLocalToPixel(
local_pos,dst):Vector2
ローカル座標からピクセル座標へ変換
Parameters¶
| Parameter | Type | Description |
|---|---|---|
local_pos |
Vector3 | Vector2 |
ローカル座標 |
dst |
Vector2 |
ピクセル座標格納先 |
Returns¶
ピクセル座標
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¶
loadCloudColormap()¶
staticloadCloudColormap(image_resource,loption):Promise<Colormap>
MaprayCloud に登録されたデータを指定し Colormapを生成
Parameters¶
| Parameter | Type | Description |
|---|---|---|
image_resource |
Resource |
リソース |
loption |
LoadOption |
- |
Returns¶
Promise<Colormap>
カラーマップ
loadColormap()¶
staticloadColormap(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>
カラーマップ