Commit 3e17cad3 authored by luroth's avatar luroth
Browse files

Debug message if no points found

parent b5741f3b
......@@ -90,6 +90,8 @@ def generate_image_masks_with_DEM():
plot_label = plot_labels[i]
point_number = point_numbers[i]
print("Plot " + plot_label + " found on image " + photo)
row = {"image_x":image_x,
"image_y":image_y,
"image":photo,
......@@ -102,6 +104,10 @@ def generate_image_masks_with_DEM():
"type":"canopy"}
rows.append(row)
if len(rows) == 0:
print("No points found! Are the coordinate system of the agisoft project and of the plot geojson the same?")
return(1)
keys = rows[0].keys()
with open(path_masks_output + "/projected_points.csv", 'w', newline='') as output_file:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment