Skip to content

Commit ddc345a

Browse files
committed
add comment about group size
1 parent 5914cec commit ddc345a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mapswipe_workers/mapswipe_workers/project_types/arbitrary_geometry/grouping_functions.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ def group_input_geometries(input_geometries_file, group_size):
5555
feature_count = 0
5656
for feature in layer:
5757
feature_count += 1
58-
# TODO: why group_size + 1?
58+
# feature count starts at 1
59+
# assuming group size would be 10
60+
# when feature_count = 11 then we enter the next group
5961
if feature_count % (group_size + 1) == 0:
6062
group_id += 1
6163
group_id_string = f"g{group_id}"

0 commit comments

Comments
 (0)