Skip to content

Commit

Permalink
fix document
Browse files Browse the repository at this point in the history
  • Loading branch information
smellman committed Nov 24, 2023
1 parent 4324407 commit 988d053
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plateauutils/flood_converter/flood_to_png.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ def parse(self, output_dir: str = ""):


class Store(object):
"""タイルの座標及び標高を保持するクラス"""
"""タイルの座標及び属性を保持するクラス"""

def __init__(self, zoom):
self.zoom = zoom
self.storage = dict()

def add(self, x, y, classification):
"""タイルの座標及び標高を格納するメソッド"""
"""タイルの座標及び属性を格納するメソッド"""
longitude, latitude = x, y
# 座標からタイルの座標とタイル内の座標を取得
x, y, pos_x, pos_y = self._coordinate_to_position(longitude, latitude)
Expand All @@ -66,7 +66,7 @@ def _insert(self, x, y, pos_x, pos_y, classification):
# 存在しない場合は256*256の配列を作成
array = np.zeros((256, 256), dtype=np.int32)
self.storage[key] = array
# 標高を格納
# 属性を格納
current = array[pos_x][pos_y]
if current < classification:
array[pos_x][pos_y] = classification
Expand Down Expand Up @@ -156,7 +156,7 @@ def _write(self, x, y, value):
except ImportError:
print("can't import PIL / Pillow, shutdown program")
sys.exit(-1)
# 標高をpngに変換
# 属性をpngに変換
dt = np.dtype(
{
"names": ["r", "g", "b", "a"],
Expand Down

0 comments on commit 988d053

Please sign in to comment.