ghagler wrote:
> I am hoping to write KML code to take data in a txt/csv format and
> project it onto GE, displayed as a time series (with the time slide
> feature) and markers colored by the data value. I am using GE Pro.
>
> My data output would have the following columns and is expected to
> have >1000 data points:
> timestamp
> lat
> long
> data value
>
> A couple of questions:
> (1) Is there a way to write KML code that would step through such a
> data set and display on GE? It appears GE will accept csv/txt data
> files, but does not have a time feature as an option.
You'll have to write your own script/program that reads the CSV file
and generates appropriate KML. The output might look like:
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="
http://earth.google.com/kml/2.1">
<Document>
<name>Data</name>
<Style id="red">
<IconStyle>
<color>ff0000ff</color>
</IconStyle>
</Style>
<Style id="green">
<IconStyle>
<color>ff00ff00</color>
</IconStyle>
</Style>
...
<Placemark>
<name>1</name>
<TimeStamp>
<when>2008-01-01</when>
</TimeStamp>
<styleUrl>#red</styleUrl>
<Point>
<coordinates>0,0</coordinates>
</Point>
</Placemark>
<Placemark>
<name>2</name>
<TimeStamp>
<when>2008-01-02</when>
</TimeStamp>
<styleUrl>#green</styleUrl>
<Point>
<coordinates>1,0</coordinates>
</Point>
</Placemark>
...
</Document>
</kml>
You might want to use a TimeSpan instead, to get rid of the time of
nothingness between points.
> (2) Is there a way to have data points fade out after displaying for a
> certain time increment? (say, have data point #1 fade out while data
> point #101 is showing up)
I don't think you can really "fade" them, but by setting the time
slider to a certain range any points not in that range disappear.
Jonathan