@@ -43,14 +43,14 @@ def parse(self, output_dir: str = ""):
43
43
44
44
45
45
class Store (object ):
46
- """タイルの座標及び標高を保持するクラス """
46
+ """タイルの座標及び属性を保持するクラス """
47
47
48
48
def __init__ (self , zoom ):
49
49
self .zoom = zoom
50
50
self .storage = dict ()
51
51
52
52
def add (self , x , y , classification ):
53
- """タイルの座標及び標高を格納するメソッド """
53
+ """タイルの座標及び属性を格納するメソッド """
54
54
longitude , latitude = x , y
55
55
# 座標からタイルの座標とタイル内の座標を取得
56
56
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):
66
66
# 存在しない場合は256*256の配列を作成
67
67
array = np .zeros ((256 , 256 ), dtype = np .int32 )
68
68
self .storage [key ] = array
69
- # 標高を格納
69
+ # 属性を格納
70
70
current = array [pos_x ][pos_y ]
71
71
if current < classification :
72
72
array [pos_x ][pos_y ] = classification
@@ -156,7 +156,7 @@ def _write(self, x, y, value):
156
156
except ImportError :
157
157
print ("can't import PIL / Pillow, shutdown program" )
158
158
sys .exit (- 1 )
159
- # 標高をpngに変換
159
+ # 属性をpngに変換
160
160
dt = np .dtype (
161
161
{
162
162
"names" : ["r" , "g" , "b" , "a" ],
0 commit comments