Description
(I suspect I'm missing a call that will include the DLLs that are necessary)
Describe the bug
Windows 10, VS 2019, Nuget packages.
After constructing a SpacialReference object I try to call SetWellKnownGeogCS, and receive the error: "System.EntryPointNotFoundException: 'Unable to find an entry point named '?' in DLL 'osr_wrap'.'
To Reproduce
In a console based application netcore v2.2:
GdalBase.ConfigureAll();
Gdal.AllRegister();
// Uncomment line below to get a different EntryPoint exception
//Console.WriteLine("Osr.Version: {0}.{1}", Osr.GetPROJVersionMajor(), Osr.GetPROJVersionMinor());
IntPtr intPtr = new IntPtr();
SpatialReference spatialReference = new SpatialReference(intPtr, true, null);
spatialReference.SetWellKnownGeogCS("WGS84");
Expected behavior
The above should run without error/exception.
Environment information:
- OS (version): Windows 10
- Package version (core): v3.0.0.4
- Package version (runtime): v3.0.0.4
- Visual Studio Version: 2019 (v16.1.0)
Additional context
I have not yet tested this on linux.