File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
ogcapi-types/src/movingfeatures Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,8 @@ pub enum Crs {
3333impl Default for Crs {
3434 fn default ( ) -> Self {
3535 Self :: Name {
36- name : common:: Crs :: default ( ) . to_urn ( ) ,
36+ // FIXME: Should this be respect 3d?
37+ name : common:: Crs :: default2d ( ) . to_urn ( ) ,
3738 }
3839 }
3940}
@@ -43,7 +44,6 @@ impl TryFrom<Crs> for common::Crs {
4344
4445 fn try_from ( value : Crs ) -> Result < Self , Self :: Error > {
4546 match value {
46- // TODO this might not work for names like "EPSG:4326"
4747 Crs :: Name { name } => Self :: from_str ( name. as_str ( ) ) ,
4848 Crs :: Link { href, .. } => Self :: from_str ( href. as_str ( ) ) ,
4949 }
@@ -85,9 +85,9 @@ mod tests {
8585 #[ test]
8686 fn into_common_crs ( ) {
8787 // assert_eq!(common::Crs::try_from(Crs::default()).unwrap(), common::Crs::default());
88- assert_eq ! ( common:: Crs :: default ( ) , Crs :: default ( ) . try_into( ) . unwrap( ) ) ;
88+ assert_eq ! ( common:: Crs :: default2d ( ) , Crs :: default ( ) . try_into( ) . unwrap( ) ) ;
8989
9090 // assert_eq!(Crs::from(common::Crs::default()), Crs::default());
91- assert_eq ! ( Crs :: default ( ) , common:: Crs :: default ( ) . into( ) ) ;
91+ assert_eq ! ( Crs :: default ( ) , common:: Crs :: default2d ( ) . into( ) ) ;
9292 }
9393}
You can’t perform that action at this time.
0 commit comments