[Gdal-dev] OGR C# .NET
Tamas Szekeres
szekerest at gmail.com
Mon Apr 16 18:10:29 EDT 2007
Do you have [FWTools dir]\bin available in the PATH?
Best regards,
Tamas
2007/4/16, Andrew Timmins <drewtimmins at gmail.com>:
> Is there any way you can use the OGR lib in C# .NET ?
> 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"
>
> my Code
>
>
> using System;
> using System.Collections.Generic;
> using System.ComponentModel;
> using System.Data;
> using System.Drawing;
> using System.Text;
> using System.Windows.Forms;
> using OGR;
>
> namespace WindowsApplication1
> {
> public partial class Form1 : Form
> {
> public Form1()
> {
>
> InitializeComponent();
>
> }
>
> private void Form1_Load(object sender, EventArgs e)
> {
> ogr.RegisterAll();
> }
> }
> }
>
>
> If anyone has any ideas please reply.
>
> Thanks,
> Drew
>
>
>
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/gdal-dev
>
More information about the Gdal-dev
mailing list