-
-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Unable to call SpatialReference.SetWellKnownGeogCS #2
Comments
I had a repro on my machine. That must be a broken reference in library, caused by a version collision during the build. |
Do you know when you might be able to post the new packages? Thanks! |
Sorry for the late reply. In my leisure time, I'm trying to complete the build. |
Believe me I'm trying to help. The build process is very complicated and we are hitting quite a few hiccups. Still learning how to link everything up on the windows side before moving on to the linux side. |
Please, checkout a new 3.0.1.2 release MaxRev.Gdal.Core. And tell me, if you have any issues with it. |
Thanks. I'm using SpatialReference from OSR as you suggested and it works. I'm also using the new packages. Thanks for the effort! |
(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:
Additional context
I have not yet tested this on linux.
The text was updated successfully, but these errors were encountered: