Skip to content

expected lon/lat axis order #268

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

Open
WHATTHEHELLOHMYGOD opened this issue Mar 22, 2025 · 1 comment
Open

expected lon/lat axis order #268

WHATTHEHELLOHMYGOD opened this issue Mar 22, 2025 · 1 comment

Comments

@WHATTHEHELLOHMYGOD
Copy link

WHATTHEHELLOHMYGOD commented Mar 22, 2025

Traceback (most recent call last):
File "C:\Users/Admin/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\gis4wrf\plugin\ui\widget_domains.py", line 352, in on_set_canvas_extent_button_clicked
self.set_domain_to_extent(map_crs, extent)
File "C:\Users/Admin/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\gis4wrf\plugin\ui\widget_domains.py", line 385, in set_domain_to_extent
center_lonlat = domain_crs.to_lonlat(Coordinate2D(center_x, center_y))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users/Admin/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\gis4wrf\core\crs.py", line 150, in to_lonlat
out = self.transform_point(srs_in=self.srs, srs_out=self.lonlat_srs, point=point)
^^^^^^^^^^^^^^^
File "C:\Users/Admin/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\gis4wrf\core\crs.py", line 185, in lonlat_srs
assert not srs_out.EPSGTreatsAsLatLong(), 'expected lon/lat axis order'
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: expected lon/lat axis order

I have no idea how to reproduce the bug

When I try to set to domain, it bugs out.

Image

Latest verison of QGIS

@Koni2020
Copy link

Traceback (most recent call last): File "C:\Users/Admin/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\gis4wrf\plugin\ui\widget_domains.py", line 352, in on_set_canvas_extent_button_clicked self.set_domain_to_extent(map_crs, extent) File "C:\Users/Admin/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\gis4wrf\plugin\ui\widget_domains.py", line 385, in set_domain_to_extent center_lonlat = domain_crs.to_lonlat(Coordinate2D(center_x, center_y)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users/Admin/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\gis4wrf\core\crs.py", line 150, in to_lonlat out = self.transform_point(srs_in=self.srs, srs_out=self.lonlat_srs, point=point) ^^^^^^^^^^^^^^^ File "C:\Users/Admin/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\gis4wrf\core\crs.py", line 185, in lonlat_srs assert not srs_out.EPSGTreatsAsLatLong(), 'expected lon/lat axis order' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError: expected lon/lat axis order

I have no idea how to reproduce the bug

When I try to set to domain, it bugs out.

Image

Latest verison of QGIS

I also ran into the same bug. It appears there's a version conflict with QGIS. Did downgrading the version help fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants