Skip to content

Commit

Permalink
Update gcp.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kikislater authored Sep 15, 2024
1 parent bf1b34f commit 4cfe291
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dm/opendm/gcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def make_filtered_copy(self, gcp_file_output, images_dir, min_images=3):
if os.path.exists(gcp_file_output):
os.remove(gcp_file_output)

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

output = [self.raw_srs]
files_found = 0
Expand Down Expand Up @@ -234,6 +234,9 @@ def __init__(self, x, y, z, px, py, filename, extras=""):
self.filename = filename
self.extras = extras

def coords_key(self):
return "{} {} {}".format(self.x, self.y, self.z)

def __str__(self):
return "{} {} {} {} {} {} {}".format(self.x, self.y, self.z,
self.px, self.py,
Expand Down

0 comments on commit 4cfe291

Please sign in to comment.