@@ -212,22 +212,22 @@ fn auto_identify() {
212
212
fn axis_mapping_strategy ( ) {
213
213
let spatial_ref = SpatialRef :: from_epsg ( 4326 ) . unwrap ( ) ;
214
214
assert_eq ! (
215
- spatial_ref. get_axis_mapping_strategy ( ) ,
215
+ spatial_ref. axis_mapping_strategy ( ) ,
216
216
gdal_sys:: OSRAxisMappingStrategy :: OAMS_AUTHORITY_COMPLIANT
217
217
) ;
218
218
spatial_ref
219
219
. set_axis_mapping_strategy ( gdal_sys:: OSRAxisMappingStrategy :: OAMS_TRADITIONAL_GIS_ORDER ) ;
220
220
assert_eq ! (
221
- spatial_ref. get_axis_mapping_strategy ( ) ,
221
+ spatial_ref. axis_mapping_strategy ( ) ,
222
222
gdal_sys:: OSRAxisMappingStrategy :: OAMS_TRADITIONAL_GIS_ORDER
223
223
) ;
224
224
}
225
225
226
226
#[ cfg( major_ge_3) ]
227
227
#[ test]
228
- fn get_area_of_use ( ) {
228
+ fn area_of_use ( ) {
229
229
let spatial_ref = SpatialRef :: from_epsg ( 4326 ) . unwrap ( ) ;
230
- let area_of_use = spatial_ref. get_area_of_use ( ) . unwrap ( ) ;
230
+ let area_of_use = spatial_ref. area_of_use ( ) . unwrap ( ) ;
231
231
assert_almost_eq ( area_of_use. west_lon_degree , -180.0 ) ;
232
232
assert_almost_eq ( area_of_use. south_lat_degree , -90.0 ) ;
233
233
assert_almost_eq ( area_of_use. east_lon_degree , 180.0 ) ;
@@ -238,26 +238,26 @@ fn get_area_of_use() {
238
238
#[ test]
239
239
fn get_name ( ) {
240
240
let spatial_ref = SpatialRef :: from_epsg ( 4326 ) . unwrap ( ) ;
241
- let name = spatial_ref. get_name ( ) . unwrap ( ) ;
241
+ let name = spatial_ref. name ( ) . unwrap ( ) ;
242
242
assert_eq ! ( name, "WGS 84" ) ;
243
243
}
244
244
245
245
#[ test]
246
246
fn get_units_epsg4326 ( ) {
247
247
let spatial_ref = SpatialRef :: from_epsg ( 4326 ) . unwrap ( ) ;
248
248
249
- let angular_units_name = spatial_ref. get_angular_units_name ( ) . unwrap ( ) ;
249
+ let angular_units_name = spatial_ref. angular_units_name ( ) . unwrap ( ) ;
250
250
assert_eq ! ( angular_units_name. to_lowercase( ) , "degree" ) ;
251
- let to_radians = spatial_ref. get_angular_units ( ) ;
251
+ let to_radians = spatial_ref. angular_units ( ) ;
252
252
assert_almost_eq ( to_radians, 0.01745329 ) ;
253
253
}
254
254
255
255
#[ test]
256
256
fn get_units_epsg2154 ( ) {
257
257
let spatial_ref = SpatialRef :: from_epsg ( 2154 ) . unwrap ( ) ;
258
- let linear_units_name = spatial_ref. get_linear_units_name ( ) . unwrap ( ) ;
258
+ let linear_units_name = spatial_ref. linear_units_name ( ) . unwrap ( ) ;
259
259
assert_eq ! ( linear_units_name. to_lowercase( ) , "metre" ) ;
260
- let to_meters = spatial_ref. get_linear_units ( ) ;
260
+ let to_meters = spatial_ref. linear_units ( ) ;
261
261
assert_almost_eq ( to_meters, 1.0 ) ;
262
262
}
263
263
@@ -295,11 +295,11 @@ fn crs_axis() {
295
295
let spatial_ref = SpatialRef :: from_epsg ( 4326 ) . unwrap ( ) ;
296
296
297
297
#[ cfg( all( major_ge_3, minor_ge_1) ) ]
298
- assert_eq ! ( spatial_ref. get_axes_count ( ) , 2 ) ;
298
+ assert_eq ! ( spatial_ref. axes_count ( ) , 2 ) ;
299
299
300
- let orientation = spatial_ref. get_axis_orientation ( "GEOGCS" , 0 ) . unwrap ( ) ;
300
+ let orientation = spatial_ref. axis_orientation ( "GEOGCS" , 0 ) . unwrap ( ) ;
301
301
assert_eq ! ( orientation, gdal_sys:: OGRAxisOrientation :: OAO_North ) ;
302
- assert ! ( spatial_ref. get_axis_name ( "GEOGCS" , 0 ) . is_ok( ) ) ;
303
- assert ! ( spatial_ref. get_axis_name ( "DO_NO_EXISTS" , 0 ) . is_err( ) ) ;
304
- assert ! ( spatial_ref. get_axis_orientation ( "DO_NO_EXISTS" , 0 ) . is_err( ) ) ;
302
+ assert ! ( spatial_ref. axis_name ( "GEOGCS" , 0 ) . is_ok( ) ) ;
303
+ assert ! ( spatial_ref. axis_name ( "DO_NO_EXISTS" , 0 ) . is_err( ) ) ;
304
+ assert ! ( spatial_ref. axis_orientation ( "DO_NO_EXISTS" , 0 ) . is_err( ) ) ;
305
305
}
0 commit comments