How to plot line showing its azimuth in google earth kml api

6,753 views
Skip to first unread message

Farah Siraj

unread,
Feb 27, 2012, 8:16:10 AM2/27/12
to KML Developer Support - Getting Started with KML
I want to draw a line on google earth showing its azimuth angle but i
have given data for one point of line and its azimuth angle. I have
searched kml api for plotting with azimuth but couldn't find.

Can anyone tell me how to do this?
Thank in advanced.

Rossko

unread,
Feb 28, 2012, 5:09:27 AM2/28/12
to KML Developer Support - Getting Started with KML
> have given data for one point of line and its azimuth angle.

That's not enough information for GE to draw a line. Use your azimuth
and some chosen distance to calculate another point on the line, then
get GE to draw with two points.

Farah Siraj

unread,
Feb 28, 2012, 6:54:37 AM2/28/12
to KML Developer Support - Getting Started with KML


Thanks a lot!

Can you please tell me any other way to generate kml except vba macro?
Other thing i want to know that kml is static , right ? How can i add
event based functionality in kml e.g user inputs any attribute value
on the line and line changes its color etc....

Thanks in advanced.

Rossko

unread,
Mar 2, 2012, 5:00:30 AM3/2/12
to KML Developer Support - Getting Started with KML
> Can you please tell me any other way to generate kml except vba macro?

You can create it by hand with a text editor, you can write it from
php, etc. etc.

> Other thing i want to know that kml is static , right ? How can i add
> event based functionality in kml e.g user inputs any attribute value
> on the line and line changes its color etc....

You could use the GE API to program that sort of thing

Farah Siraj

unread,
Mar 6, 2012, 3:06:00 AM3/6/12
to KML Developer Support - Getting Started with KML
Many thanks

> You can create it by hand with a text editor, you can write it from
> php, etc. etc.

Actually i have worked on javascript GE APIs. In JS i made tools
easily that dynamically plot excel data but in kml i have problem that
to run tool every time i will have to generate kml ( i'm working on
VBA for kml generation). Is there any way to avoid this repetition.

> You could use the GE API to program that sort of thing

But how can i do event based programming in GE KML API as i'm working
on VBA + GE API. ?

Waiting for reply.

Thanks

Rossko

unread,
Mar 6, 2012, 6:38:24 AM3/6/12
to KML Developer Support - Getting Started with KML
> to run tool every time i will have to generate kml ( i'm working on
> VBA for kml generation). Is there any way to avoid this repetition.

I can't think of a way to generate different KML except by generating
KML.
Don't think I understand your question. Are you forced to use KML?
Can you outline what you are trying to achieve?

> But how can i do event based programming in GE KML API as i'm working
> on VBA + GE API.   ?

You'd use your javascript skills to write event based javascript code
to use with the GE API.
Again, I don't think I understand the question.
Reply all
Reply to author
Forward
0 new messages