Skip to content

Commit bf936fe

Browse files
authored
Add always_xy = True to bbox transformer
1 parent bc76849 commit bf936fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pygeoapi/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ def transform_bbox(bbox: list, from_crs: str, to_crs: str) -> list:
889889
from_crs_obj = get_crs_from_uri(from_crs)
890890
to_crs_obj = get_crs_from_uri(to_crs)
891891
transform_func = pyproj.Transformer.from_crs(
892-
from_crs_obj, to_crs_obj).transform
892+
from_crs_obj, to_crs_obj, always_xy=True).transform
893893
n_dims = len(bbox) // 2
894894
return list(transform_func(*bbox[:n_dims]) + transform_func(
895895
*bbox[n_dims:]))

0 commit comments

Comments
 (0)