Jump to content

GeodeticPivot: mapGeodeticToFlat wrong pos.z


photo

Recommended Posts

Hi

I created big GlobalTerrain by LandscapeTool:

image.thumb.png.44e5298339a9e7d8ea277cc8c00c3d9d.png

And used only Imagery input raster data

using GeodeticPivot::mapGeodeticToFlat(Vec3(59.70366, 30.37401, 0.0)) i have got (-13345.158286 -9610.064772 0.000291)

but actually (visually, this position must be on terrain with z = 7)

And for any geo point GeodeticPivot::mapGeodeticToFlat returns z ~= 0. but GlobalTerrain has height +-1000(z) on corners

How properly use GeodeticPivot? how to get correct 3D position on Global Terrain by geo coordinates?

image.png.34d5424a318f8d38c7168342f26c75db.png

 

Link to comment

Hi, Sergej,

 

Geodetic pivot operates with 3 coordinate systems:

- Geodetic position (lat / lon / alt)

- Flat position: local position in a flat (not curved) mode

- Ellipsoid position: local position in a curved mode

+ WorldFlat / WorldEllipsoid (world positions)

 

And if you have curved terrain, you need ellipsoid position. To get ellipsoid from geodetic you can use this api:

- mapGeodeticToFlat + mapFlatToEllipsoid

- toWorld

Link to comment
×
×
  • Create New...