[gdal-dev] C# version of ogr2ogr function
Genhan Chen
GChen at camsys.com
Fri Jun 28 15:15:22 PDT 2013
Thank you very much, Tamas!
Do you know which dll files are the dependencies of ogr_csharp.dll. It
will be nice if I do not have to put all dll files into my project.
Best,
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/27/2013 11:17 PM
Subject: Re: [gdal-dev] C# version of ogr2ogr function
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.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/20130628/154f45ef/attachment.html>
More information about the gdal-dev
mailing list