Skip to content

Commit

Permalink
Fix areas.cfg test to be compatible with new PROJ
Browse files Browse the repository at this point in the history
  • Loading branch information
djhoese committed Jan 31, 2022
1 parent 821ea18 commit 98fba93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyresample/test/test_files/areas.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ REGION: pc_world {
REGION: ortho {
NAME: Ortho globe
PCS_ID: ortho_globe
PCS_DEF: proj=ortho, a=6370997.0, lon_0=40, lat_0=-40
PCS_DEF: proj=ortho, lon_0=40, lat_0=-40, ellps=sphere
XSIZE: 640
YSIZE: 480
AREA_EXTENT: (-10000000, -10000000, 10000000, 10000000)
Expand Down
3 changes: 1 addition & 2 deletions pyresample/test/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,8 +492,7 @@ def test_get_area_def_from_raster_non_georef_respects_proj_dict(self):
transform = Affine(300.0379266750948, 0.0, 101985.0,
0.0, -300.041782729805, 2826915.0)
source = tmptiff(transform=transform)
proj_dict = {'init': 'epsg:3857'}
area_def = utils.rasterio.get_area_def_from_raster(source, proj_dict=proj_dict)
area_def = utils.rasterio.get_area_def_from_raster(source, projection="EPSG:3857")
self.assertEqual(area_def.crs, CRS(3857))


Expand Down

0 comments on commit 98fba93

Please sign in to comment.