Merge pull request 'master' (#389) from master into Docker
Reviewed-on: SGD-Nord/konova#389
This commit is contained in:
commit
20cfb5f345
@ -364,7 +364,13 @@ class Geometry(BaseResource):
|
|||||||
|
|
||||||
geom_envelope = self.geom.envelope
|
geom_envelope = self.geom.envelope
|
||||||
diff = geom_envelope - self.geom
|
diff = geom_envelope - self.geom
|
||||||
complexity_factor = 1 - self.geom.area / diff.area
|
|
||||||
|
if diff.area == 0:
|
||||||
|
ratio = 1
|
||||||
|
else:
|
||||||
|
ratio = self.geom.area / diff.area
|
||||||
|
|
||||||
|
complexity_factor = 1 - ratio
|
||||||
return complexity_factor
|
return complexity_factor
|
||||||
|
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ pyproj==3.6.1
|
|||||||
python-dateutil==2.8.2
|
python-dateutil==2.8.2
|
||||||
pytz==2023.3.post1
|
pytz==2023.3.post1
|
||||||
PyYAML==6.0.1
|
PyYAML==6.0.1
|
||||||
qrcode==7.4.2
|
qrcode==7.3.1
|
||||||
redis==5.1.0a1
|
redis==5.1.0a1
|
||||||
requests==2.31.0
|
requests==2.31.0
|
||||||
six==1.16.0
|
six==1.16.0
|
||||||
|
Loading…
Reference in New Issue
Block a user