MSS icon indicating copy to clipboard operation
MSS copied to clipboard

problem in get_projection_params

Open ReimarBauer opened this issue 9 months ago • 7 comments

after the raise that code is unreachable

https://github.com/Open-MSS/MSS/blame/develop/mslib/utils/get_projection_params.py#L45 https://github.com/Open-MSS/MSS/blob/develop/mslib/utils/get_projection_params.py#L64

The function was moved, that can be also fixed in stable and I redo the changes at merge time if needed.

ReimarBauer avatar Feb 05 '25 09:02 ReimarBauer

@ReimarBauer Are AUTO and AUTO2 projections intended to be supported, or should the raise stay and the unreachable code be removed?

annapurna-gupta avatar Feb 15 '25 10:02 annapurna-gupta

Please ask @joernu76. I assigned the issue to.

ReimarBauer avatar Feb 15 '25 11:02 ReimarBauer

@joernu76 can i work on this issue?

annapurna-gupta avatar Feb 15 '25 16:02 annapurna-gupta

@ReimarBauer Are AUTO and AUTO2 projections intended to be supported, or should the raise stay and the unreachable code be removed?

I have no idea. That´s why I think it is a task for Joern because he is familiar with that math.

ReimarBauer avatar Feb 19 '25 07:02 ReimarBauer

These are projections described in the WMS standards, e.g. here https://portal.ogc.org/files/?artifact_id=14416 I do not know why we do not support them (judging from the raise ValueError).

This commit 71de73e98b49be53f59f501f066052bfb5e8ea77 tried to make MSWMS more standards compliant in this regard. The message indicates "AUTO/AUTO2 projections are not yet supported due to technical difficulties in basemap", which isn't a lot of information. basemap hasn't really changed in the last seven years, so if the statement was true, this likely hasn't changed. On the other hand, I do not immediately see why we couldn't work around basemaps problems...?

I personally would leave this code in there as minder and maybe add an issue to revisit this?

joernu76 avatar Feb 20 '25 07:02 joernu76

personally would leave this code in there as minder and maybe add an issue to revisit this?

pylint or similiar will always show the lines as not reachable. We maybe should comment them and add a hint to the issue. Also it would be good to add an issue what we need in basemap https://github.com/matplotlib/basemap When we have on basemap an issue about Auto/Auto2 we can link it here and label this one with Upstream Fix needed.

What do you think?

ReimarBauer avatar Feb 20 '25 08:02 ReimarBauer

fine, if we use the issue to track it.

joernu76 avatar Feb 20 '25 08:02 joernu76