Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

altitude not working when Projecting #108

Open
NeedNot opened this issue Feb 20, 2024 · 1 comment
Open

altitude not working when Projecting #108

NeedNot opened this issue Feb 20, 2024 · 1 comment
Labels

Comments

@NeedNot
Copy link

NeedNot commented Feb 20, 2024

no matter what altitude I give it it returns as if it was 0

   fun geodeticToCartesian(lat: Double, lon: Double, alt: Double): Point3d {

        val srcCoord = ProjCoordinate(lon, lat, alt)
        val targetCoord = ProjCoordinate()
        WGS84_TO_ECEF.transform(srcCoord, targetCoord)
    
        return Point3d(targetCoord.x, targetCoord.y, targetCoord.z)
    }
@pomadchin
Copy link
Member

Hi @NeedNot I think proj4j does not really support 3d coordinates sadly, a nice feature to have though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants