Skip to content

Commit

Permalink
Merge pull request #636 from kartoza/timlinux/issue624
Browse files Browse the repository at this point in the history
Disable CRS check box if project is in EPSG 4326
  • Loading branch information
timlinux authored Nov 21, 2024
2 parents 8748593 + 44331a0 commit 9225ace
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions geest/gui/panels/create_project_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,17 @@ def initUI(self):
self.load_boundary_button.clicked.connect(self.load_boundary)

self.progress_bar.setVisible(False)
# If the project CRS is EPGS:4326, disable the checkbox
project_crs = QgsProject.instance().crs().authid()
log_message(f"Project CRS: {project_crs}")
if project_crs == "EPSG:4326" or project_crs == "":
log_message(
"Project CRS is EPSG:4326 or blank, disabling boundary CRS checkbox"
)
self.use_boundary_crs.setEnabled(False)
else:
log_message("Project CRS is not EPSG:4326, enabling boundary CRS checkbox")
self.use_boundary_crs.setEnabled(True)

def on_previous_button_clicked(self):
self.switch_to_previous_tab.emit()
Expand Down

0 comments on commit 9225ace

Please sign in to comment.