Skip to content

Commit fe6cf1e

Browse files
committed
add unique feature id
1 parent 808a5e9 commit fe6cf1e

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
@@ -70,7 +70,9 @@ def group_input_geometries(input_geometries_file, group_size):
7070
"screen": [],
7171
}
7272

73-
groups[group_id_string]["feature_ids"].append(feature.GetFID())
73+
# we use a new id here based on the count
74+
# since we are not sure that GetFID returns unique values
75+
groups[group_id_string]["feature_ids"].append(feature_count)
7476
groups[group_id_string]["feature_geometries"].append(
7577
json.loads(feature.GetGeometryRef().ExportToJson())
7678
)

0 commit comments

Comments
 (0)