Make sure to copy all the dll-s from the /bin and /bin/gdal/csharp
directories into you application directory, or make the location of this
files available in the PATH environment variable.

Best regards,

Tamas




2013/6/28 Genhan Chen <[email protected]>

> Hi Tamas,
>
> I am using pre-compiled *ogr_csharp.dl*l, downloaded from *
> http://vbkto.dyndns.org/sdk/* <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 [email protected]
> www.camsys.com
>
>
>
> From:        Tamas Szekeres <[email protected]>
> To:        Genhan Chen <[email protected]>,
> Cc:        [email protected]
> 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*<http://lists.osgeo.org/pipermail/gdal-dev/2009-March/020130.html>
>
> Best regards,
>
> Tamas
>
>
>
> 2013/6/26 Genhan Chen <*[email protected]* <[email protected]>>
> 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* <510%20873%208700>
> fax  *510 873 8701* <510%20873%208701>
> e-mail *[email protected]* <[email protected]>*
> **www.camsys.com* <http://www.camsys.com/>
> _______________________________________________
> gdal-dev mailing list*
> **[email protected]* <[email protected]>*
> **http://lists.osgeo.org/mailman/listinfo/gdal-dev*<http://lists.osgeo.org/mailman/listinfo/gdal-dev>
>
>
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to