> So, the workaround is a little more complicated than I thought,
> requiring that the view be respositioned along the linestring, before
> each elevation query.
Hi,
Don't know if you've already written something to do this but if not
this might help a bit.
I had a similar requirement - getting GE ground altitudes for points
along a linestring/path so a hacked the following together to give me
that. You're welcome to copy it and adapt where needed.
http://www.thekmz.co.uk/GEPlugin/wip/test/PathElevation/Path_Elevation.htm
(It's based on the Driving Simulator and uses 2 main files -
path_walker.js & path_walker_index.js as well as Roman's
kmldomwalk.js, geplugin-helpers.js and math3d.js)
The utility loads a KML file (there's a variable for that in the main
page) and then, using kmldomwalk, looks for a placemark called "Path"
and loads the coords into an array. Then, on clicking start, it moves
along the path and records the ground altitudes as it goes. (When
finished it pops up an alert that shows the distance covered - that's
just a double check for me that the path is roughly the length I
expect it to be).
Because I need this data in an offline db (the same one that produces
the path.kml) there is a button below the GE window, Show Array Data,
that output to the screen so I can copy it (shift-ctrl-end, the ctrl-
c) and save it in a csv file for import. The data shown is the coord
index (from 1), Lat, Long and Ground Altitude.
As I say don't know if it helps but it works for me so thought I'd
post it anyway just in case.
Regards
Nymor