locationtech / locationtech/proj4j
altitude not working when Projecting
Open
Nobody has claimed this yet.
feature
- Dominant language
- Java
- Stars
- 232
- Forks
- 86
- PR merge metrics
- No merged PRs in 30d
Description
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)
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the geodeticToCartesian entry point shown in the issue and trace how ProjCoordinate, WGS84_TO_ECEF, and the transformation handle the alt argument. Reproduce the result with nonzero altitudes, then verify with a focused regression check that altitude changes the returned Point3d rather than behaving as zero.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100