Skip to content

Commit fba022c

Browse files
author
mz
committed
...
1 parent fbd619f commit fba022c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

SpatialPositionModel.zip

306 KB
Binary file not shown.

SpatialPositionModel_dialog.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,10 @@ def on_change_layer(self, layer):
7777
bounds = (ext.xMinimum(), ext.yMinimum(),
7878
ext.xMaximum(), ext.yMaximum())
7979
height, width = get_height_width(bounds, layer.crs().geographicFlag())
80-
reso = ((height / 100) + (width / 100)) / 2
80+
reso = max([(height / 90), (width / 90)])
81+
reso += reso * 0.2
8182
self.StewartdoubleSpinBox_resolution.setValue(round(reso))
82-
self.StewartdoubleSpinBox_span.setValue(round(reso * 2.2))
83+
self.StewartdoubleSpinBox_span.setValue(round(reso * 2.5))
8384

8485
def clear_stewart_fields(self):
8586
self.clean_fields()

0 commit comments

Comments
 (0)