[gdal-dev] Colors and KML output

Tim Keitt tkeitt at utexas.edu
Tue Oct 29 18:57:08 PDT 2013


Thanks. I had seen that, but did not realize it was saying to write these
string into a column in the database.

THK


On Tue, Oct 29, 2013 at 5:10 PM, Jukka Rahkonen
<jukka.rahkonen at mmmtike.fi>wrote:

> Tim Keitt <tkeitt <at> utexas.edu> writes:
>
> >
> > I'd like to set the color of line segments individually according to a
> field in KML output. Is that possible? Seem it only outputs red. I can
> change that globally, but not easily for many line segments.
> >
> >
> >
> > Looking at the driver code, there is some code there to handle colors. I
> have no idea how to attach a color table to an ogr layer. Any hints on how
> this works?
>
> Have a try by adding an OGR_STYLE column and fill the colours for the
> features as described in
> http://www.gdal.org/ogr/ogr_feature_style.html
>
> I have never tried that myself but perhaps it works.
>
> -Jukka Rahkonen-
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>



-- 
http://www.keittlab.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20131029/82a6dc3b/attachment.html>


More information about the gdal-dev mailing list