C++ libkml 1.2.0 - Help for noob

95 views
Skip to first unread message

Thierry Pierret

unread,
May 14, 2013, 10:52:50 AM5/14/13
to lib...@googlegroups.com
Hi,

I'm using the C++ libkml 1.2.0  library in a short application that creates KML traces. Those contain points as well as paths.
I wish to distinguish those traces by setting different 'linestyles'.

From the different sample .kml files I could find, I notice that the 'linestyle' is applied to the 'placemark' owning the 'linestring'. But in the libkml API, the "set_linestyle" method is owned by the "kmldom::Style" class and cannot be applied to the "kmldom::Placemark" one. I cannot make the link between both.
Could it be possible to get a small help about this or to get a sample code ?

In the same idea, I also would like to differenciate the points. Any help about this is also welcome.

Many thanks.
Regards.

Thierry


Joel Odom

unread,
May 14, 2013, 11:04:40 AM5/14/13
to lib...@googlegroups.com
LineStyles are parts of a Style. The Style applies to the Placemark. Check out

https://developers.google.com/kml/documentation/kmlreference#placemark

where you see that you can create a shared style or an inline style
for your Placemark.
> --
> You received this message because you are subscribed to the Google Groups
> "libkml" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to libkml+un...@googlegroups.com.
> To post to this group, send email to lib...@googlegroups.com.
> Visit this group at http://groups.google.com/group/libkml?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



--
http://www.falconview.org/

Thierry Pierret

unread,
May 15, 2013, 8:35:28 AM5/15/13
to lib...@googlegroups.com
The link between the KML reference and the C++ libkml API is not straight-forward, but your answer really helps.

Thanks.
Regards




--
You received this message because you are subscribed to a topic in the Google Groups "libkml" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/libkml/XMJcV6xrAtw/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to libkml+un...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages