[gdal-dev] C# version of ogr2ogr function

Genhan Chen GChen at camsys.com
Thu Jun 27 17:40:07 PDT 2013


Hi Tamas,

I am using pre-compiled ogr_csharp.dll, downloaded from 
http://vbkto.dyndns.org/sdk/ . I added "using OSGeo.OGR" in front of the 
class. and did not see any error during build process.

However, I got the following error message if any Ogr method (e.g. "
Ogr.RegisterAll();") was added in the program.:

{"The type initializer for 'OSGeo.OGR.OgrPINVOKE' threw an exception."} 
System.Exception {System.TypeInitializationException}

Do you know what caused this error?

Thanks a lot,

Genhan Chen
Cambridge Systematics, Inc.
555 12th Street, Suite 1600
Oakland CA 94607
tel  510 873 8700
fax  510 873 8701
e-mail gchen at camsys.com
www.camsys.com



From:   Tamas Szekeres <szekerest at gmail.com>
To:     Genhan Chen <GChen at camsys.com>, 
Cc:     gdal-dev at lists.osgeo.org
Date:   06/26/2013 11:28 PM
Subject:        Re: [gdal-dev] C# version of ogr2ogr function



Please refer to this thread for further information: 
http://lists.osgeo.org/pipermail/gdal-dev/2009-March/020130.html

Best regards,

Tamas



2013/6/26 Genhan Chen <GChen at camsys.com>
Hello, 

I need a function (similar to ogr2ogr) to convert Shapefile into GeoJson 
format. 

How can I implement this function using C#, in .NET framework? 

Any help is really appreciated! 

Genhan Chen
Cambridge Systematics, Inc.
555 12th Street, Suite 1600
Oakland CA 94607
tel  510 873 8700
fax  510 873 8701
e-mail gchen at camsys.com
www.camsys.com
_______________________________________________
gdal-dev mailing list
gdal-dev at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20130627/b6c4c225/attachment.html>


More information about the gdal-dev mailing list