Heightmap¶
Heightmap
Extends¶
Constructors¶
new Heightmap()¶
new Heightmap(
data,option):Heightmap
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¶
value_max¶
readonlyvalue_max:number
value_min¶
readonlyvalue_min:number
value_no_data¶
readonlyvalue_no_data:number
value_offset¶
readonlyvalue_offset:number
value_resolution¶
readonlyvalue_resolution:number
Methods¶
convertFromRGBA()¶
staticconvertFromRGBA(resolution,offset,data):number[]
RGBAの数値変換
Parameters¶
| Parameter | Type | Description |
|---|---|---|
resolution |
number |
- |
offset |
number |
オフセット |
data |
Uint8ClampedArray<ArrayBufferLike> |
RGBA値格納配列 |
Returns¶
number[]
変換した値の配列
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
getHeightmapTexture()¶
getHeightmapTexture(
glenv):Texture
ハイトマップテクスチャの取得
Parameters¶
| Parameter | Type | Description |
|---|---|---|
glenv |
GLEnv |
Returns¶
Texture
ハイトマップテクスチャ
getValue()¶
getValue(
local_pos):number
ローカル座標から値を取得
Parameters¶
| Parameter | Type | Description |
|---|---|---|
local_pos |
Vector3 | Vector2 |
ローカル座標 |
Returns¶
number
値
isInDataRange()¶
isInDataRange(
pixel_pos):boolean
Parameters¶
| Parameter | Type |
|---|---|
pixel_pos |
Vector2 |
Returns¶
boolean
Inherited from¶
loadCloudHeightmap()¶
staticloadCloudHeightmap(heightmap_resource,loption):Promise<Heightmap>
MaprayCloud に登録されたデータを指定し Heightmapを生成
Parameters¶
| Parameter | Type | Description |
|---|---|---|
heightmap_resource |
Resource |
リソース |
loption |
LoadOption |
- |
Returns¶
Promise<Heightmap>
Heightmap
loadHeightmap()¶
staticloadHeightmap(json_src,image_src,loption):Promise<Heightmap>
ハイトマップを生成
Parameters¶
| Parameter | Type | Description |
|---|---|---|
json_src |
string | URLResource |
Heightmap json URLResource or URL |
image_src |
string | URLResource |
Heightmap image URLResource or URL |
loption |
LoadOption |
- |
Returns¶
Promise<Heightmap>