MetOffice / qgis-plugin-edr

GNU General Public License v3.0
3 stars 1 forks source link

Corridor Query Fails Due To Missing Resolutions #29

Closed Gugym closed 2 months ago

Gugym commented 2 months ago

QGIS 3.28.6 EDR Plugin 13.3

When running the following corridor query (against this service: https://ogcie.iblsoft.com/edr), it fails with the error below which seems to suggest that we are not sending the resolution_x/y/z parameters.

image

The geometry is LINESTRINGM (51.42199999999999704 -0.17399999999999999 1714518000000, 51.42199999999999704 -0.154 1714518120000, 51.42199999999999704 -0.13400000000000001 1714518180000, 51.42199999999999704 -122 1714518300000, 5.42220000000000013 -0.12 1714518360000, 5.42220000000000013 -0.10000000000000001 1714518420000, 5.42199999999999971 -0.05 1714518540000, 5.42199999999999971 -0.02 1714518660000, 5.42199999999999971 -0.015 1714518780000, 5.42199999999999971 -0.005 1714518300000)

2024-05-03T10:19:33 WARNING Python error : An error has occurred while executing Python code: See message log (Python Error) for more details.

2024-05-03T10:19:33 WARNING Traceback (most recent call last): File "C:\Users/guy.collins/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\edr_plugin\gui__init.py", line 520, in query_data_collection data_query_definition = self.current_data_query_tool.get_query_definition() File "C:\Users/guy.collins/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\edr_plugin\gui\query_tools.py", line 535, in get_query_definition query_definition = CorridorQueryDefinition( TypeError: init__() missing 3 required positional arguments: 'resolution_x', 'resolution_y', and 'resolution_z'