[Gdal-dev] OGR C# .NET
Mateusz Loskot
mateusz at loskot.net
Mon Apr 16 17:43:23 EDT 2007
Andrew Timmins wrote:
> Is there any way you can use the OGR lib in C# .NET ?
Andrew,
Yes, there is.
Check the Wiki:
http://trac.osgeo.org/gdal/wiki/GdalOgrInCsharp
> I downloaded FWTools and found a /csharp/ directory with a dll called
> ogr_csharp.dll But when I try and use this in a project I get errors.
> [Error]
> "The type initializer for 'OGR.ogr' threw an exception"
I'm not sure but AFAIK there were some changes in names,
and it should be
using OSGeo.OGR;
check this article for details:
http://trac.osgeo.org/gdal/wiki/GdalOgrCsharpVersions
Also, don't forget to look at C# example applications, like GDALRead.cs:
http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/csharp/apps
Cheers
--
Mateusz Loskot
http://mateusz.loskot.net
More information about the Gdal-dev
mailing list