Skip to content
Snippets Groups Projects
Commit 8ff3fff1 authored by A Nilsen's avatar A Nilsen
Browse files

Update get_nib.py

parent 2a4e0c61
No related branches found
No related tags found
No related merge requests found
...@@ -1262,7 +1262,7 @@ class getnib: ...@@ -1262,7 +1262,7 @@ class getnib:
ymin = e.y() - int(h)*1000/2 ymin = e.y() - int(h)*1000/2
ymax = e.y() + int(h)*1000/2 ymax = e.y() + int(h)*1000/2
""" Check length and height of bounding box. Limit is set to 500 km """ """ Check length and height of bounding box. Limit is set to 500 km """
ok = self.check_bbsize(destCrs, xmin, xmax, ymin, ymax) # Check if bb is small enough ok = self.check_bbsize(crs_proj_str, xmin, xmax, ymin, ymax) # Check if bb is small enough
if self.dlg.radioButton_lyr.isChecked(): # layer-option checked if self.dlg.radioButton_lyr.isChecked(): # layer-option checked
lyr_name = self.dlg.comboBox_lyr.currentText() # Get the layer name lyr_name = self.dlg.comboBox_lyr.currentText() # Get the layer name
if lyr_name != "": # If a layer is present/chosen if lyr_name != "": # If a layer is present/chosen
...@@ -1273,7 +1273,7 @@ class getnib: ...@@ -1273,7 +1273,7 @@ class getnib:
else: # If no file or layer is selcted, throw an error mesage and end plugin else: # If no file or layer is selcted, throw an error mesage and end plugin
self.iface.messageBar().pushMessage("Error", "No layer selected!", level=Qgis.Critical, duration=3) self.iface.messageBar().pushMessage("Error", "No layer selected!", level=Qgis.Critical, duration=3)
return # Return from (end) plugin return # Return from (end) plugin
else:
elif self.dlg.radioButton_file.isChecked(): # file-option checked elif self.dlg.radioButton_file.isChecked(): # file-option checked
fname = self.dlg.lineEdit_file.text() # get the text (path and filename) fname = self.dlg.lineEdit_file.text() # get the text (path and filename)
if fname != "": if fname != "":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment