Skip to content

Commit

Permalink
exclude compound processing for&to the same compound crs and use the …
Browse files Browse the repository at this point in the history
…default 'noop'
  • Loading branch information
WouterVisscher committed Mar 6, 2024
1 parent d4a4b3c commit 8217aa7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/coordinate_transformation_api/crs_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ def my_round(val: float, precision: int | None) -> float | int:
# These transformations need to be splitted in a horizontal and vertical transformation.
if (
transformer.target_crs is not None
and source_crs != target_crs
and transformer.target_crs.type_name == "Compound CRS"
and len(transformer.target_crs.sub_crs_list) == COMPOUND_CRS_LENGTH
):
Expand All @@ -402,7 +403,7 @@ def my_round(val: float, precision: int | None) -> float | int:
v_transformer = get_transformer(source_crs, vertical, epoch)

def transform_compound_crs(val: CoordinatesType) -> tuple[float, ...]:
#

input = tuple([*val, float(epoch)]) if epoch is not None else tuple([*val])

h = tuple(
Expand Down

0 comments on commit 8217aa7

Please sign in to comment.