[gdal-dev] C# version of ogr2ogr function

Tamas Szekeres szekerest at gmail.com
Thu Jun 27 23:17:53 PDT 2013


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 <GChen at camsys.com>

> 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 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*<http://lists.osgeo.org/pipermail/gdal-dev/2009-March/020130.html>
>
> Best regards,
>
> Tamas
>
>
>
> 2013/6/26 Genhan Chen <*GChen at camsys.com* <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* <510%20873%208700>
> fax  *510 873 8701* <510%20873%208701>
> e-mail *gchen at camsys.com* <gchen at camsys.com>*
> **www.camsys.com* <http://www.camsys.com/>
> _______________________________________________
> gdal-dev mailing list*
> **gdal-dev at lists.osgeo.org* <gdal-dev at lists.osgeo.org>*
> **http://lists.osgeo.org/mailman/listinfo/gdal-dev*<http://lists.osgeo.org/mailman/listinfo/gdal-dev>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20130628/44e6fd39/attachment.html>


More information about the gdal-dev mailing list