I am working on a free/open source workflow to ingest OSM data and convert it to a KML so I can view it in 3D with Google Earth.
I used ogr2ogr to convert to a shapefile and have extracted the height values into their own field in the file. I now want to use ogr2ogr to convert to KML. I understand that I need to use the LIBKML library and extrude on my height field, but while I try to do this I repeatedly get flat KML output. I tried to look through the GDAL documentation, but there is little info on how to extrude height from a field so it shows up in the resulting KML.
This is the command I attempted:
ogr2ogr -f libkml "E:/filepath.kml" "E:/filepath.shp" -zfield "height" -t_srs "EPSG:4326"
I would really like to use ogr2ogr to solve this, but if there's another open source library I'm open to that too.