This question already has an answer here:
I've just unsuccessfully tried to use
ogr2ogr to convert CSV into KML like so:
ogr2ogr -f "KML" output.kml input.csv
The csv has "latitude" and "longitude" columns.
The attributes are all loaded but if you inspect the KML's text, the Coordinate elements are not being added so its not working.
I feel like this will work if I can inform gdal to interpret certain columns ("latitude", "longitude") as coordinates.
How might I do this?