AnsweredAssumed Answered

Elevation in 2D

Question asked by norbert.thoden on Dec 15, 2017
Latest reply on Dec 18, 2017 by LSmallwood-esristaff

Hi All!

I´m able to use the screenToLocation/screenToBaseSurface call to get the appropriate location containing x and y and also the desired elevation available at z().

The necessery assignment of the elevationSourceUrl is simple and it worsk for 3D - fine.

 

But whats about 2D:

Eric Bader gave me the hint to have a look at the Surface class - Surface Class | ArcGIS for Developers and its locationToElevation method.

Unfortunatly i can´t get it work.

 

What i did:

  1. create Esri::ArcGISRuntime::ArcGISTiledElevationSource per URL
  2. create Esri::ArcGISRuntime::Surface using the elecationSources (as QList)
  3. request elevation by
    1. connect locationToElevationCompleted to an appropriate slot (onLocationToElevationCompleted)
    2. call locationToElevation on that surface

but the result in onLocationToElevationCompleted is nan (not a number)

 

My questions are:

What is missing? Like:

  1. Where do i have to call Loadable::load()?On Surface (cascading loading?) or every ArcGISTiledElevationSource directly? Or both?
  2. Do i have to enable the single ArcGISTiledElevationSources? (setEnable())

 

 

I think there are many question for an essential problem, isn´t it?

Is there an example?

 

Thanks in advance!

Norbert

Outcomes