@@ -43,14 +43,14 @@ def parse(self, output_dir: str = ""):
4343
4444
4545class Store (object ):
46- """タイルの座標及び標高を保持するクラス """
46+ """タイルの座標及び属性を保持するクラス """
4747
4848 def __init__ (self , zoom ):
4949 self .zoom = zoom
5050 self .storage = dict ()
5151
5252 def add (self , x , y , classification ):
53- """タイルの座標及び標高を格納するメソッド """
53+ """タイルの座標及び属性を格納するメソッド """
5454 longitude , latitude = x , y
5555 # 座標からタイルの座標とタイル内の座標を取得
5656 x , y , pos_x , pos_y = self ._coordinate_to_position (longitude , latitude )
@@ -66,7 +66,7 @@ def _insert(self, x, y, pos_x, pos_y, classification):
6666 # 存在しない場合は256*256の配列を作成
6767 array = np .zeros ((256 , 256 ), dtype = np .int32 )
6868 self .storage [key ] = array
69- # 標高を格納
69+ # 属性を格納
7070 current = array [pos_x ][pos_y ]
7171 if current < classification :
7272 array [pos_x ][pos_y ] = classification
@@ -156,7 +156,7 @@ def _write(self, x, y, value):
156156 except ImportError :
157157 print ("can't import PIL / Pillow, shutdown program" )
158158 sys .exit (- 1 )
159- # 標高をpngに変換
159+ # 属性をpngに変換
160160 dt = np .dtype (
161161 {
162162 "names" : ["r" , "g" , "b" , "a" ],
0 commit comments