[gdal-dev] KML polygons with a label
paul.malm at lfv.se
paul.malm at lfv.se
Fri Apr 21 00:52:26 PDT 2023
I'm trying to export a table from PostgreSQL to a KML file, using:
ogr2ogr -a_srs epsg:4326 -f "LIBKML" C:\Temp\kml\obst.kml PG:"dbname='aaa' host='localhost' port='5434' user='postgres' password='postgres'" "obstaclepolygon1" -progress
The table (Polygons) has a column:
OGR_STYLE=BRUSH(fc:#AABBCCFF);PEN(c:#123456,w:10px);LABEL(c:#00CC00,f:"Arial, Helvetica",s:12pt,t:{count})
and
count = integer.
The result of the STYLE in the KML file:
<Style>
<LabelStyle>
<color>ff00cc00</color>
</LabelStyle>
<LineStyle>
<color>ff563412</color>
<width>10</width>
</LineStyle>
<PolyStyle>
<color>ffccbbaa</color>
</PolyStyle>
</Style>
How do I get the LabelStyle correct?
Thanks,
Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20230421/db0ca711/attachment.htm>
More information about the gdal-dev
mailing list