I am trying to figure out how to use GDAL (ogr2ogr) to export spatial data from SQLServer to KML. The standard KML driver works, but it is not very robust. LIBKML has so much promise (layers, styling, etc), but I cannot find any examples of how to make use of this added functionality.
For example, this works:
ogr2ogr.exe -f LIBKML z.kml "MSSQL:server=box;database=main;trusted_conneciton=yes;tables=dbo.z" -where "state='DE'"
It exports a POINT from my table. I would like to customize labels, icons (color, scale and image) and balloon text. I would also like to create folders/layers.
Ideally, I’d love to use columns like “icon_scale” and “layer_name” in my source tables to control this customization …
Am I crazy? Is this possible?