[gdal-dev] Compile GDAL with HDF4 and Shapefile-Support (64bit)

David1980 dleimbach at zebris.com
Tue Aug 28 06:20:05 PDT 2012


If I try to show OGR-drivers in my C#-project, I get the following error:

The type-initialiser for "OSGeo.OGR.Ogs" has caused an exception. 
System.EntryPointNotFoundException: The entry point
"CSharp_OLCDeleteField_get" was not found in the DLL "ogr_wrap".
at OSGeo.OGR.OgrPINVOKE.OLCDeleteField_get()
at OSGeo.OGR.Ogr..cctor()
(translated from German by myself)

My code for that:
(..)
//Without Ogr.RegisterAll() it works fine:
Ogr.RegisterAll();
(..)
for (int i = 0; i < Ogr.GetDriverCount(); i++)
     Console.WriteLine(Ogr.GetDriver(i).name);
(..)

What could cause this exception, anyboy tried to use the FWTools-GDAL via C#
?

I always thought that happens because FWTools was only build for raster
images, but if it has Shapefile-support build in, it could be sufficent for
now. :)
(Its an old GDAL 1.7, so sooner or later we might need a newer one, but for
now I would be glad if I had at least one version that works with both
filetypes)





--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Compile-GDAL-with-HDF4-and-Shapefile-Support-64bit-tp4998275p4998320.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.


More information about the gdal-dev mailing list