Re: HOW TO ADD SPEED DATA TO KML FILE

1,452 views
Skip to first unread message
Message has been deleted

barryhunter [KML Guru]

unread,
May 26, 2008, 8:18:44 AM5/26/08
to KML Developer Support - Advanced Support for KML
What do you mean by 'speed data tag'?

Perhaps a better question is what are you trying to do? What is this
this tag going to archive?



On May 25, 6:07 pm, Oracle wrote:
> hi ,
>
> i want to create a kml file for MYSQL database which has the data
> regarding the speed can anyone please help me which kml tags have to
> be used ?
>
> can anyone send me an example of the kml file with the speed data
> tag ?
>
> am eagerly awaiting your response
>
> thanx
Message has been deleted

barryhunter [KML Guru]

unread,
May 26, 2008, 12:47:57 PM5/26/08
to KML Developer Support - Advanced Support for KML
I still unsure what you mean, where do you wish to display the Speed?

Are you asking how to store it as an value with the placemakr, and
then display it in the description ballon?
http://code.google.com/apis/kml/documentation/extendeddata.html



On May 26, 5:36 pm, Oracle wrote:
> i wish to display the speed of the object in the kml file for eg.
> description , name etc ..well is there any way to do it ?

ManoM

unread,
May 26, 2008, 9:43:07 PM5/26/08
to KML Developer Support - Advanced Support for KML
Hi Oracle,

While there is no KML element for speed, there are three ways - that I
can think of - to represent speed in KML.

1) You can note the speed in the description balloon:
<description>speed = 200mph</description>
An alternative to this is to use <Data> elements and embed them in the
<description> or <BalloonStyle><text> element, like this:
<Placemark>
<description>speed = $[speed]</description>
<ExtendedData>
<Data name="speed">
<value>200</value>
</Data>
...
for more information:
http://code.google.com/apis/kml/documentation/extendeddata.html

2) You can change size of a Placemark or the width of the LineString
based on how fast it is.

3) You can change the color of the Placemark or the LineString based
on the speed.

Mano

On May 26, 9:36 am, Oracle wrote:
> i wish to display the speed of the object in the kml file for eg.
> description , name etc ..well is there any way to do it ?
>
> On May 26, 5:18 pm, barryhunter [KML Guru] wrote:
>
Message has been deleted

ManoM

unread,
May 27, 2008, 1:18:13 PM5/27/08
to KML Developer Support - Advanced Support for KML
That depends on how your output your KML, but yes that should work. If
you output your speed column in ExtendedData as I posted yesterday.

Mano

On May 27, 9:50 am, Oracle wrote:
> hi ,
>
> thanx for your prompt reply ..you mean if i have a mysql database with
> "speed" as one of it coloum doing this
>
> description>speed = $[speed]</description> would display the speed ?
>
> am eagerly awaiting your response
>
> than i guess i will be directly be able to do that ...
Reply all
Reply to author
Forward
0 new messages