Skip to content

Commit

Permalink
TST: Update test_transformer*__area_of_interest for PROJ 9.1 (#1116)
Browse files Browse the repository at this point in the history
  • Loading branch information
snowman2 committed Aug 7, 2022
1 parent 5194313 commit 7cfbff2
Showing 1 changed file with 14 additions and 20 deletions.
34 changes: 14 additions & 20 deletions test/test_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -703,34 +703,28 @@ def test_transformer_group__get_transform_crs():
assert len(tg.transformers) == 6


@pytest.mark.grid
def test_transformer__area_of_interest():
transformer = Transformer.from_crs(
4326, 2964, area_of_interest=AreaOfInterest(-136.46, 49.0, -60.72, 83.17)
"EPSG:7789",
"EPSG:4936",
area_of_interest=AreaOfInterest(-177.25, -44.64, -43.3, -175.54),
)
assert (
transformer.description
== "Ballpark geocentric translation from ITRF2014 to ETRS89"
)
if not grids_available("ca_nrc_ntv2_0.tif"):
assert (
transformer.description == "Inverse of NAD27 to WGS 84 (13) + Alaska Albers"
)
else:
assert (
transformer.description == "Inverse of NAD27 to WGS 84 (33) + Alaska Albers"
)


@pytest.mark.grid
def test_transformer_proj__area_of_interest():
transformer = Transformer.from_proj(
4326, 2964, area_of_interest=AreaOfInterest(-136.46, 49.0, -60.72, 83.17)
"EPSG:7789",
"EPSG:4936",
area_of_interest=AreaOfInterest(-177.25, -44.64, -43.3, -175.54),
)
assert (
transformer.description
== "Ballpark geocentric translation from ITRF2014 to ETRS89"
)
if not grids_available("ca_nrc_ntv2_0.tif"):
assert (
transformer.description == "Inverse of NAD27 to WGS 84 (13) + Alaska Albers"
)
else:
assert (
transformer.description == "Inverse of NAD27 to WGS 84 (33) + Alaska Albers"
)


def test_transformer__area_of_interest__invalid():
Expand Down

0 comments on commit 7cfbff2

Please sign in to comment.