<font size=3 face="Book Antiqua">Thank you very much, Tamas! </font>
<br>
<br><font size=3 face="Book Antiqua">Do you know which dll files are the
dependencies of <b>ogr_csharp.dl</b>l. It will be nice if I do not have
to put all dll files into my project.</font>
<br>
<br><font size=3 face="Book Antiqua">Best,</font>
<br>
<br><font size=2 face="sans-serif">Genhan Chen<br>
Cambridge Systematics, Inc.<br>
555 12th Street, Suite 1600<br>
Oakland CA 94607<br>
tel  510 873 8700<br>
fax  510 873 8701<br>
e-mail gchen@camsys.com<br>
</font><a href=www.camsys.com><font size=2 face="sans-serif">www.camsys.com</font></a>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From:      
 </font><font size=1 face="sans-serif">Tamas Szekeres <szekerest@gmail.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">To:      
 </font><font size=1 face="sans-serif">Genhan Chen <GChen@camsys.com>,
</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Cc:      
 </font><font size=1 face="sans-serif">gdal-dev@lists.osgeo.org</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date:      
 </font><font size=1 face="sans-serif">06/27/2013 11:17 PM</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject:    
   </font><font size=1 face="sans-serif">Re: [gdal-dev]
C# version of ogr2ogr function</font>
<br>
<hr noshade>
<br>
<br>
<br><font size=3>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.</font>
<br>
<br><font size=3>Best regards,</font>
<br>
<br><font size=3>Tamas</font>
<br>
<br>
<br><font size=3><br>
</font>
<br><font size=3>2013/6/28 Genhan Chen <</font><a href=mailto:GChen@camsys.com target=_blank><font size=3 color=blue><u>GChen@camsys.com</u></font></a><font size=3>></font>
<br><font size=3 face="Book Antiqua">Hi Tamas,</font><font size=3> <br>
</font><font size=3 face="Book Antiqua"><br>
I am using pre-compiled <b>ogr_csharp.dl</b>l, downloaded from </font><a href=http://vbkto.dyndns.org/sdk/ target=_blank><font size=3 color=blue face="Book Antiqua"><u>http://vbkto.dyndns.org/sdk/</u></font></a><font size=3 face="Book Antiqua">
. I added "<b>using OSGeo.OGR</b>" in front of the class. and
did not see any error during build process.</font><font size=3> <br>
</font><font size=3 face="Book Antiqua"><br>
However, I got the following error message if any Ogr method (e.g. "<b>Ogr.RegisterAll()</b>;")
was added in the program.:</font><font size=3> <br>
</font><font size=3 face="Book Antiqua"><b><br>
{"The type initializer for 'OSGeo.OGR.OgrPINVOKE' threw an exception."}
       </b></font><font size=3> </font><font size=3 face="Book Antiqua"><b><br>
System.Exception {System.TypeInitializationException}</b></font><font size=3>
<br>
</font><font size=3 face="Book Antiqua"><br>
Do you know what caused this error?</font><font size=3> <br>
</font><font size=3 face="Book Antiqua"><br>
Thanks a lot,</font><font size=3> </font>
<br><font size=3 face="sans-serif"><br>
Genhan Chen<br>
Cambridge Systematics, Inc.<br>
555 12th Street, Suite 1600<br>
Oakland CA 94607<br>
tel  </font><a href=tel:510%20873%208700 target=_blank><font size=3 color=blue face="sans-serif"><u>510
873 8700</u></font></a><font size=3 face="sans-serif"><br>
fax  </font><a href=tel:510%20873%208701 target=_blank><font size=3 color=blue face="sans-serif"><u>510
873 8701</u></font></a><font size=3 face="sans-serif"><br>
e-mail </font><a href=mailto:gchen@camsys.com target=_blank><font size=3 color=blue face="sans-serif"><u>gchen@camsys.com</u></font></a><font size=3 color=blue><u><br>
</u></font><a href=http://www.camsys.com/ target=_blank><font size=3 color=blue face="sans-serif"><u>www.camsys.com</u></font></a><font size=3>
<br>
<br>
<br>
</font>
<br><font size=1 color=#5f5f5f face="sans-serif">From:      
 </font><font size=1 face="sans-serif">Tamas Szekeres <</font><a href=mailto:szekerest@gmail.com target=_blank><font size=1 color=blue face="sans-serif"><u>szekerest@gmail.com</u></font></a><font size=1 face="sans-serif">></font><font size=3>
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
To:        </font><font size=1 face="sans-serif">Genhan
Chen <</font><a href=mailto:GChen@camsys.com target=_blank><font size=1 color=blue face="sans-serif"><u>GChen@camsys.com</u></font></a><font size=1 face="sans-serif">>,
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
Cc:        </font><a href="mailto:gdal-dev@lists.osgeo.org" target=_blank><font size=1 color=blue face="sans-serif"><u>gdal-dev@lists.osgeo.org</u></font></a><font size=3>
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
Date:        </font><font size=1 face="sans-serif">06/26/2013
11:28 PM</font><font size=3> </font><font size=1 color=#5f5f5f face="sans-serif"><br>
Subject:        </font><font size=1 face="sans-serif">Re:
[gdal-dev] C# version of ogr2ogr function</font><font size=3> <br>
</font>
<hr noshade>
<br><font size=3><br>
<br>
<br>
Please refer to this thread for further information: </font><a href="http://lists.osgeo.org/pipermail/gdal-dev/2009-March/020130.html" target=_blank><font size=3 color=blue><u>http://lists.osgeo.org/pipermail/gdal-dev/2009-March/020130.html</u></font></a><font size=3>
<br>
<br>
Best regards, <br>
<br>
Tamas <br>
<br>
<br>
<br>
2013/6/26 Genhan Chen <</font><a href=mailto:GChen@camsys.com target=_blank><font size=3 color=blue><u>GChen@camsys.com</u></font></a><font size=3>>
</font><font size=3 face="sans-serif"><br>
Hello,</font><font size=3> </font><font size=3 face="sans-serif"><br>
<br>
I need a function (similar to ogr2ogr) to convert Shapefile into GeoJson
format. <br>
<br>
How can I implement this function using C#, in .NET framework?</font><font size=3>
</font><font size=3 face="sans-serif"><br>
<br>
Any help is really appreciated! </font><font size=3 color=#8f8f8f face="sans-serif"><br>
<br>
Genhan Chen<br>
Cambridge Systematics, Inc.<br>
555 12th Street, Suite 1600<br>
Oakland CA 94607<br>
tel  </font><a href=tel:510%20873%208700 target=_blank><font size=3 color=blue face="sans-serif"><u>510
873 8700</u></font></a><font size=3 color=#8f8f8f face="sans-serif"><br>
fax  </font><a href=tel:510%20873%208701 target=_blank><font size=3 color=blue face="sans-serif"><u>510
873 8701</u></font></a><font size=3 color=#8f8f8f face="sans-serif"><br>
e-mail </font><a href=mailto:gchen@camsys.com target=_blank><font size=3 color=blue face="sans-serif"><u>gchen@camsys.com</u></font></a><font size=3 color=blue><u><br>
</u></font><a href=http://www.camsys.com/ target=_blank><font size=3 color=blue face="sans-serif"><u>www.camsys.com</u></font></a><font size=3><br>
_______________________________________________<br>
gdal-dev mailing list</font><font size=3 color=blue><u><br>
</u></font><a href="mailto:gdal-dev@lists.osgeo.org" target=_blank><font size=3 color=blue><u>gdal-dev@lists.osgeo.org</u></font></a><font size=3 color=blue><u><br>
</u></font><a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target=_blank><font size=3 color=blue><u>http://lists.osgeo.org/mailman/listinfo/gdal-dev</u></font></a><font size=3>
<br>
</font>
<br>
<br>