Skip to content
This repository was archived by the owner on Aug 14, 2022. It is now read-only.
This repository was archived by the owner on Aug 14, 2022. It is now read-only.

Transform 3D data to lat lon. #68

@raphaeljolivet

Description

@raphaeljolivet

Hi, thanks for this work.
This is very useful.

If you happen to need to project back the 3D x,y,z coordinates to geographic (lat,lon) coordinates, be aware that Google seems to model the earth as a perfect sphere (rather than an ellipsoid).

Hence, you can get lat, lon from basic trigonometry (here in Python) :

lon = atan2(y, x) * 180 / pi
lat = atan2(z, sqrt(x*x + y*y)) * 180 / pi
height = sqrt(x * x + y * y + z * z)

Those coordinates are then compliant with WGS84 / EPSG:4326

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions