Open stephankistner opened 1 year ago
Solution/Fix:
The problem is the MzCart.dll version 20.0.0.15310
. It's encrypted, so I can't trace the issue further, but I replaced it with the version 21.0.0.16308 from the MIKE 2023 SDK and that solves the issue.
Thanks for finding a solution. I think it is time to bump the references to the MIKE Core/SDK components from 20.0 to 21.0. I will put that on my todo-list.
Hi,
I had issues in mikeio when trying to create a Dfs2 file with a _Lambert_Conformal_Conic2SP projection. I can do this succesfully when trying manually (i.e. in MIKE Zero GUI), and in mikecore. So I traced the issue to the
mikecore.projections.MapProjection
class used to setup the Dfs2 projection info for the Dfs2 builder: when it tries to convert projected coordinates it runs into numerical issues. See example below:Fail case: Lambert_Conformal_Conic_2SP projection
As you can see the _Lambert_Conformal_Conic2SP coordinate pairs fail when trying to converted from projected to geographical coordinates, while the reverse works just fine. I haven't tested this in the .NET/C# code, but I'm confident this isn't correct behaviour.
Working case: Transverse_Mercator projection
Success - works as expected!