altitude not working when Projecting · Issue #108 · locationtech/proj4j · GitHub
Skip to content

altitude not working when Projecting #108

Open

Description

@NeedNot

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)
    }

Activity

  1. pomadchin commented on Mar 7, 2024

    @pomadchin
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions