[gdal-dev] KML and custom styles

Kralidis,Tom [Burlington] Tom.Kralidis at ec.gc.ca
Wed Sep 3 23:08:32 EDT 2008

Hi: using svn trunk, the KML output has reletively simple style definitions by default.

OGC KML allows for styles to be remotely defined within the <styleURL> element, which refs a local or remote file, and XPointer to a given style def.  For example:


...would use the style mystyle in somefile.kml.

I wonder whether this would be a useful -dsco for KML output (default behaviour would be as per the current behaviour).  Something like -dsco LayerStyle=[LayerName,]somefile.kml#mystyle.

the KML driver would then use this to output the style def for the given layer.  If LayerName is not specified, the style is applied to the entire document.



More information about the gdal-dev mailing list