@@ -108,28 +108,28 @@ def test_from_sentinel_2(self):
108
108
109
109
gm = GridMapping .from_dataset (dataset )
110
110
# Should pick the projected one which is regular
111
- self .assertEqual ( "Derived Projected CRS " , gm .crs .type_name )
111
+ self .assertIn ( " Projected" , gm .crs .type_name )
112
112
self .assertEqual (True , gm .is_regular )
113
113
114
114
gm = GridMapping .from_dataset (dataset , prefer_is_regular = True )
115
115
# Should pick the projected one which is regular
116
- self .assertEqual ( "Derived Projected CRS " , gm .crs .type_name )
116
+ self .assertIn ( " Projected" , gm .crs .type_name )
117
117
self .assertEqual (True , gm .is_regular )
118
118
119
119
gm = GridMapping .from_dataset (dataset , prefer_is_regular = False )
120
120
# Should pick the geographic one which is irregular
121
- self .assertEqual ( ' Geographic 2D CRS' , gm .crs .type_name )
121
+ self .assertIn ( " Geographic" , gm .crs .type_name )
122
122
self .assertEqual (False , gm .is_regular )
123
123
124
124
gm = GridMapping .from_dataset (dataset , prefer_crs = GEO_CRS )
125
125
# Should pick the geographic one which is irregular
126
- self .assertEqual ( ' Geographic 2D CRS' , gm .crs .type_name )
126
+ self .assertIn ( " Geographic" , gm .crs .type_name )
127
127
self .assertEqual (False , gm .is_regular )
128
128
129
129
gm = GridMapping .from_dataset (dataset , prefer_crs = GEO_CRS ,
130
130
prefer_is_regular = True )
131
131
# Should pick the geographic one which is irregular
132
- self .assertEqual ( ' Geographic 2D CRS' , gm .crs .type_name )
132
+ self .assertIn ( " Geographic" , gm .crs .type_name )
133
133
self .assertEqual (False , gm .is_regular )
134
134
135
135
def test_no_grid_mapping_found (self ):
0 commit comments