Skip to content

Commit 4cfe291

Browse files
authored
Update gcp.py
1 parent bf1b34f commit 4cfe291

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dm/opendm/gcp.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def make_filtered_copy(self, gcp_file_output, images_dir, min_images=3):
155155
if os.path.exists(gcp_file_output):
156156
os.remove(gcp_file_output)
157157

158-
files = map(os.path.basename, glob.glob(os.path.join(images_dir, "*")))
158+
files = list(map(os.path.basename, glob.glob(os.path.join(images_dir, "*"))))
159159

160160
output = [self.raw_srs]
161161
files_found = 0
@@ -234,6 +234,9 @@ def __init__(self, x, y, z, px, py, filename, extras=""):
234234
self.filename = filename
235235
self.extras = extras
236236

237+
def coords_key(self):
238+
return "{} {} {}".format(self.x, self.y, self.z)
239+
237240
def __str__(self):
238241
return "{} {} {} {} {} {} {}".format(self.x, self.y, self.z,
239242
self.px, self.py,

0 commit comments

Comments
 (0)