[gdal-dev] Re: converting KML to CSV

Stefan Keller sfkeller at gmail.com
Tue May 20 16:35:52 EDT 2008


Try this:

% ogrinfo -ro Bahnhoefe.kml
INFO: Open of `Bahnhoefe.kml'
      using driver `KML' successful.
1: BahnhoefeWGS84 (Point)

% ogr2ogr -f CSV out Bahnhoefe.kml -sql "select *,OGR_GOM_WKT from
BahnhoefeWGS84"
...or my online converter http://geoconverter.hsr.ch

-- Stefan
2008/5/20 Tim Michelsen <timmichelsen at gmx-topmail.de>:

>  The CSV driver does not support writing geometries, though I can see some
>> support for this might be desirable.
>>
> May I enter a request for it?
>
> I also suggest that CSV reader accepts the following formats as well:
>
> 8.1;0.25;First point
> 49.2;1.1;Second point
> 47.5;0.75;Third point
>
> Excel writes like this by default and many programs use it as well. If you
> want the traditional format -- the only one accepted by OGR -- you need to
> use the more advanced CSV export in openoffice calc.
>
>
>
> Kind regards,
> Tim
>
>
> _______________________________________________
> 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/20080520/a07cff01/attachment.html


More information about the gdal-dev mailing list