forked from OSGeo/PROJ
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+proj=push/pop: add a +bank=<name> parameter to interleave push/pop o…
…perations The motivation is to be able to do transformation that first do a geoid transformation followed by a Helmert one. The following example shows a ETRS89 to S-JTSK/05 + Baltic 1957 height transformation that chains a geoid model registered against ETRS89 with a Helmert transformation. ``` +proj=pipeline \ +step +proj=push +v_3 +omit_inv \ # Save ETRS89 ellipsoidal height +step +inv +proj=vgridshift +grids=CR2005.tif +multiplier=1 \ # Apply geoid +step +proj=push +v_3 +bank=baltic_height \ # Save Baltic 1957 height +step +proj=pop +v_3 +omit_inv \ # Restore ETRS89 ellipsoidal height +step +proj=cart +ellps=GRS80 \ # Helmert transformation +step +inv +proj=helmert +x=572.213 +y=85.334 +z=461.94 \ +rx=-4.9732 +ry=-1.529 +rz=-5.2484 +s=3.5378 +convention=coordinate_frame \ +step +inv +proj=cart +ellps=bessel \ +step +proj=pop +v_3 +bank=baltic_height # Restore Baltic 1957 height ``` Without that, the current alternative is a ugly workaround involving using the v_4 component and axisswap ``` +proj=pipeline \ +step +proj=push +v_4 \ # Save v_4 as we are going to use it as a temp variable +step +proj=push +v_3 +omit_inv \ # Save ETRS89 ellipsoidal height +step +inv +proj=vgridshift +grids=CR2005.tif +multiplier=1 \ # Apply geoid +step +proj=push +v_3 +omit_fwd \ # On reverse path, restore initial Baltic height +step +proj=axisswap +order=1,2,4,3 +omit_inv \ # On forward path, save Baltic height in v_4 component... +step +proj=pop +v_3 +omit_inv \ # On forward parth, restore initial ellipsoidal height +step +proj=cart +ellps=GRS80 \ # Helmert transformation +step +inv +proj=helmert +x=572.213 +y=85.334 +z=461.94 \ +rx=-4.9732 +ry=-1.529 +rz=-5.2484 +s=3.5378 +convention=coordinate_frame \ +step +inv +proj=cart +ellps=bessel \ +step +proj=axisswap +order=1,2,4,3 +omit_inv \ # On forward path, restore Baltic height from v_4 component... +step +proj=pop +v_3 +omit_fwd \ # On reverse path, save initial Baltic height +step +proj=pop +v_4 ```
- Loading branch information
Showing
4 changed files
with
177 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters