AnsweredAssumed Answered

Java: is it possible to check if elevation for given point exists in Surface?

Question asked by marko.tandre on Mar 26, 2018
Latest reply on Sep 13, 2019 by Ludo.G

Hello,

 

If I ask (getElevationAsync(Point point)) from surface then I get 0 if it doesn't exist. How can I check if it exists in any of the ElevationSources?

I couldn't find anything how to check it.

Method getElevationAsync(Point point) should throw exception not return 0 elevation if it doesn't exist in any ElevationSource. This is bad practice and can do much harm.

The answer is not to use some url for elevations for entire world because most of the time my use case is offline and .tif file must be used as ElevationSource.

Outcomes