File tree 2 files changed +76
-1
lines changed
swiftnav/src/reference_frame
2 files changed +76
-1
lines changed Original file line number Diff line number Diff line change @@ -125,6 +125,15 @@ pub enum ReferenceFrame {
125
125
#[ allow( non_camel_case_types) ]
126
126
#[ strum( to_string = "DREF91(R2016)" , serialize = "DREF91_R2016" ) ]
127
127
DREF91_R2016 ,
128
+ #[ allow( non_camel_case_types) ]
129
+ #[ strum( to_string = "WGS84(G1762)" , serialize = "WGS84_G1762" ) ]
130
+ WGS84_G1762 ,
131
+ #[ allow( non_camel_case_types) ]
132
+ #[ strum( to_string = "WGS84(G2139)" , serialize = "WGS84_G2139" ) ]
133
+ WGS84_G2139 ,
134
+ #[ allow( non_camel_case_types) ]
135
+ #[ strum( to_string = "WGS84(G2296)" , serialize = "WGS84_G2296" ) ]
136
+ WGS84_G2296 ,
128
137
}
129
138
130
139
/// 15-parameter Helmert transformation parameters
Original file line number Diff line number Diff line change 1
1
use super :: { ReferenceFrame , TimeDependentHelmertParams , Transformation } ;
2
2
3
- pub const TRANSFORMATIONS : [ Transformation ; 31 ] = [
3
+ pub const TRANSFORMATIONS : [ Transformation ; 34 ] = [
4
4
Transformation {
5
5
from : ReferenceFrame :: ITRF2020 ,
6
6
to : ReferenceFrame :: ITRF2014 ,
@@ -652,4 +652,70 @@ pub const TRANSFORMATIONS: [Transformation; 31] = [
652
652
epoch : 2021.0 ,
653
653
} ,
654
654
} ,
655
+ // WGS84(G2296) is defined to be the same as ITRF2020 at epoch 2024.0
656
+ Transformation {
657
+ from : ReferenceFrame :: ITRF2020 ,
658
+ to : ReferenceFrame :: WGS84_G2296 ,
659
+ params : TimeDependentHelmertParams {
660
+ tx : 0.0 ,
661
+ tx_dot : 0.0 ,
662
+ ty : 0.0 ,
663
+ ty_dot : 0.0 ,
664
+ tz : 0.0 ,
665
+ tz_dot : 0.0 ,
666
+ s : 0.0 ,
667
+ s_dot : 0.0 ,
668
+ rx : 0.0 ,
669
+ rx_dot : 0.0 ,
670
+ ry : 0.0 ,
671
+ ry_dot : 0.0 ,
672
+ rz : 0.0 ,
673
+ rz_dot : 0.0 ,
674
+ epoch : 2024.0 ,
675
+ } ,
676
+ } ,
677
+ // WGS84(G2139) is defined to be the same as ITRF2014 at epoch 2016.0
678
+ Transformation {
679
+ from : ReferenceFrame :: ITRF2014 ,
680
+ to : ReferenceFrame :: WGS84_G2139 ,
681
+ params : TimeDependentHelmertParams {
682
+ tx : 0.0 ,
683
+ tx_dot : 0.0 ,
684
+ ty : 0.0 ,
685
+ ty_dot : 0.0 ,
686
+ tz : 0.0 ,
687
+ tz_dot : 0.0 ,
688
+ s : 0.0 ,
689
+ s_dot : 0.0 ,
690
+ rx : 0.0 ,
691
+ rx_dot : 0.0 ,
692
+ ry : 0.0 ,
693
+ ry_dot : 0.0 ,
694
+ rz : 0.0 ,
695
+ rz_dot : 0.0 ,
696
+ epoch : 2016.0 ,
697
+ } ,
698
+ } ,
699
+ // WGS84(G1762) is defined to be the same as ITRF2008 at epoch 2005.0
700
+ Transformation {
701
+ from : ReferenceFrame :: ITRF2008 ,
702
+ to : ReferenceFrame :: WGS84_G1762 ,
703
+ params : TimeDependentHelmertParams {
704
+ tx : 0.0 ,
705
+ tx_dot : 0.0 ,
706
+ ty : 0.0 ,
707
+ ty_dot : 0.0 ,
708
+ tz : 0.0 ,
709
+ tz_dot : 0.0 ,
710
+ s : 0.0 ,
711
+ s_dot : 0.0 ,
712
+ rx : 0.0 ,
713
+ rx_dot : 0.0 ,
714
+ ry : 0.0 ,
715
+ ry_dot : 0.0 ,
716
+ rz : 0.0 ,
717
+ rz_dot : 0.0 ,
718
+ epoch : 2005.0 ,
719
+ } ,
720
+ } ,
655
721
] ;
You can’t perform that action at this time.
0 commit comments