[Gdal-dev] Export shp to kml using ogr_csharp.dll

Mateusz Loskot mateusz at loskot.net
Thu May 31 17:49:56 EDT 2007


Leonidas Liakos wrote:
> Question: Is there any function which i can use to do tha
> progrmmatically OR I have to iterate in all the features of the
> Opened Datasource(shp) to the new Created DataSource(kml) and write
> each feature in that kml file? My code until now:

Leonidas,

The latter is the only option you have.

> NEXT HOW TO IMPLEMENT ogr2ogr -f KML like in example?

The best place to learn how to implement it is to look at source
code of the ogr2ogr.cpp program and then implement similar logic in
in C#, VB.NET, ...

Cheers
-- 
Mateusz Loskot
http://mateusz.loskot.net



More information about the Gdal-dev mailing list