Rocket Trajectory with Polygones with several different coloured sections?

43 views
Skip to first unread message

hornig

unread,
Nov 29, 2009, 8:11:01 PM11/29/09
to KML Developer Support - Getting Started with KML
Hi,

I want to use kml for displaying a rocket trajectory from ground into
orbit and I ried this here
http://kml-samples.googlecode.com/svn/trunk/interactive/index.html#./Lines_and_Paths/Line_Strings.Absolute_Extruded.kml
and it works well for it.

now I want to change it, because I want to use differen colours for
some sections, because I want to have red section for thrust phases,
and green for costing phases, but I'm not quite sure how to do that.

i have long,lat,height for several points in each of these phases

it will be like

thrustphase in red
1,2,3
1,2,3
1,2,3
/thurstphase in red
coastingphase in green
4,5,6
4,5,6
4,5,6
/coastingphase in green
thrustphase in red
7,8,9
7,8,9
7,8,9
/thurstphase in red
coastingphase in green
1,2,3
1,2,3
1,2,3
/coastingphase in green
...

because it's a staged rocket.

so, could anyoneplease tell me how to do that?

and I don't want to urge you, but I'm in a hurry. I have to finish
this on dezember 7th 2009 :)


thank you in advance! Andreas

Maarten L

unread,
Nov 30, 2009, 6:00:21 PM11/30/09
to KML Developer Support - Getting Started with KML
You can use different styles with different colors, identified by
different id's (for example id="yellowLineGreenPoly",
id="redLineGreenpoly", id="yellowLineBluePoly" and
id="redLineBluePoly"). Than use <styleUrl> to attach the right style
to the each section.

On Nov 30, 2:11 am, hornig wrote:
> Hi,
>
> I want to use kml for displaying a rocket trajectory from ground into
> orbit and I ried this herehttp://kml-samples.googlecode.com/svn/trunk/interactive/index.html#./...

hornig

unread,
Dec 2, 2009, 7:06:01 AM12/2/09
to KML Developer Support - Getting Started with KML
Hi Maarten,

I'm new tothat toppic. would you be sokind a do a short example for
me, please?
unfortunally the kmltutorials at google don't have such an example :(.

that would be really nice!

thank you in advance, Andreas
Reply all
Reply to author
Forward
0 new messages