You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The namespace OSGeo.OGR contains non-functional SpatialReference class. I think it is not to be there at all. Attempts to use it by calling constructor new OSGeo.OGR.SpatialReference([null|string.Empty|valid wkt]) lead to
System.EntryPointNotFoundException: 'Unable to find an entry point named 'CSharp_OSGeofOGR_new_SpatialReference___' in DLL 'osr_wrap'.'
It seems like OSGeo.OGR.SpatialReference is used by another type - CoordinateTransformation.
That's another thing that comes from swig interface. Removing this type can lead to consequences we don't intend.
@MaxRev-Dev no deep thoughts other than to leave it as is. Lots of black magic involved in the swig stuff. Perhaps a FAQ entry to explain to avoid the OGR one.
Describe the bug
The namespace
OSGeo.OGR
contains non-functionalSpatialReference
class. I think it is not to be there at all. Attempts to use it by calling constructornew OSGeo.OGR.SpatialReference([null|string.Empty|valid wkt])
lead toTo Reproduce
Gdal3CoreApp.csproj:
Program.cs:
Expected behavior
The
OSGeo.OGR.SpatialReference
class should not be present at all.Using
OSGeo.OSR.SpatialReference
works fine.Environment information:
Additional context
I have not tested the linux runtime.
The text was updated successfully, but these errors were encountered: