[Gdal-dev] Export shp to kml using ogr_csharp.dll
Frank Warmerdam
warmerdam at pobox.com
Thu May 31 18:26:50 EDT 2007
Leonidas Liakos wrote:
> Until now I manage to Open a Datasource and Create a Datasource.
> The utility ogr2ogr converts shp to kml like that example:
> ogr2ogr -f KML mypoints.kml sbpoints.shp
>
> 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,
You will need to do all the iteration over features. There are no
convenience functions to encapsulate this.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | President OSGeo, http://osgeo.org
More information about the Gdal-dev
mailing list