Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TST: Update test_transformer*__area_of_interest for PROJ 9.1 #1116

Merged
merged 1 commit into from
Aug 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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