sergej.vsemogucshij Posted April 13, 2018 Posted April 13, 2018 Hi I created big GlobalTerrain by LandscapeTool: 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?
maxi Posted April 17, 2018 Posted April 17, 2018 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
Recommended Posts