mathnet / mathnet-spatial

Math.NET Spatial
http://spatial.mathdotnet.com
MIT License
378 stars 133 forks source link

System.MissingMethodException CoordinateSystem.CreateMappingCoordinateSystem #156

Closed andrzejmy closed 6 years ago

andrzejmy commented 6 years ago

Hello

I am using the library version 0.4 and latest 4.4.1 Math.Net.Numerics. I am trying to call method:

TransformCoordinateSystem = CoordinateSystem.CreateMappingCoordinateSystem(GlobalCoordinateSystem, LocalC oordinateSystem);

But got following exception: System.MissingMethodException - MathNet.Numerics.LinearAlgebra.Matrix`1.ToColumnWiseArray()'.'

Could you help me? I can write some test for these rotation if needed but I believe there is some inconsistent with the Math.Net.Numerics library?

JohanLarsson commented 6 years ago

ToColumnWiseArray was removed from MathNet.Numerics IIRC. Using an older version until we get the updated spatial out is the only way I think.

cdrnet commented 6 years ago

Yes, it is called ToColumnMajorArray now, see commit where it was dropped. ToColumnWiseArray has been marked as obsolete for a while and thus been finally dropped in v4 (major version number changes are a rare chance to allow such breaking changes).

Technically the current Spatial NuGet package is not compatible with Numerics v4 yet (but the code already is). I'll try to help getting a new Spatial package out.

andrzejmy commented 6 years ago

Thanks a lot for quick support! With the latest 3.x is working!