Skip to content

Commit 933663d

Browse files
committed
fix: project_area was not correctly summing up all geometry areas, thus arbitrarily large projects could be created
1 parent 8bec12e commit 933663d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mapswipe_workers/mapswipe_workers/utils/validate_input.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def validate_geometries(projectId, zoomLevel, input_file_path):
127127

128128
transform = osr.CoordinateTransformation(source, target)
129129
feat_geom.Transform(transform)
130-
project_area = +feat_geom.GetArea() / 1000000
130+
project_area += feat_geom.GetArea() / 1000000
131131

132132
# max zoom level is 22
133133
if zoomLevel > 22:

0 commit comments

Comments
 (0)