dem-net/DEM.Net

GetElevation() returns points back in wrong order

gsus24 opened this issue · 4 comments

Hi

tried to get elevation with a huge list of about 2700 points.
https://github.com/sk-zk/TruckLib/blob/b258f1f8f881c68db2b3c6409a43ce4b40e13fad/Samples/02-RealRoad/ElevationProvider.cs#L27

Elevation values matches to Lat,Long. But the returned values are mixed up

Hi @gsus24 and thanks for reporting this. Seems linked to sk-zk/TruckLib#4.
I'll check that using their sample.

@gsus24, @sk-zk, will provide a fixed sample on TruckLib with a better way to do this. Elevations can be requested per lines (ie the road geometry), and you get ALL the samples along the way, and can reduce afterwards. This was indeed the first use case that got the whole project bootstrapped :)

Elevations can be requested per lines (ie the road geometry), and you get ALL the samples along the way, and can reduce afterwards.

I'm well aware of this, but I'd decided to cut it out of the sample code to keep it as concise as I can get away with because I believed it to go beyond the scope of what I actually wanted to demonstrate. Since this appears to have backfired on me to be point where it spills over into someone else's issues, I'm going to rewrite this portion using the other method.

No worries. Feel free to reach and reopen if needed.