Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable CRS check box if project is in EPSG 4326 #636

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading