Skip to content

How to convert verticalWKID WGS84 height (wkid: 4326, verticalWkid: 115700) to DHHN2016 (wkid 4258, verticalWkid: 7837) #1

Answered by bosborn
ecr334 asked this question in Q&A
Discussion options

You must be logged in to vote

The easiest way would be to just transform between the EPSG codes. The elevation does not make a difference and is simply preserved. Alternatively you can get more complex by specifying the well-known text definitions (compounds in WKT2 with verticals). I don't think you'll see much difference between 4326 and 4258 though.

    PROJProjectionTransform *transform = [PROJProjectionTransform transformFromEpsg:4326 andToEpsg:4258];
    
    CLLocationCoordinate2D coordinate = CLLocationCoordinate2DMake(52.51064626078732, 13.403729270903389);
    CLLocationCoordinate2D transformedCoordinate = [transform transform:coordinate];
    
    PROJLocationCoordinate3D *coordinate3d = [PROJLocationCoordi…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@bosborn
Comment options

@bosborn
Comment options

@ecr334
Comment options

@bosborn
Comment options

@bosborn
Comment options

Answer selected by bosborn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants