We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
transform_bbox
1 parent b777b16 commit e4d8cedCopy full SHA for e4d8ced
1 file changed
pygeoapi/crs.py
@@ -278,15 +278,16 @@ def crs_transform_feature(feature: dict, transform_func: Callable):
278
)
279
280
281
-def transform_bbox(bbox: list, from_crs: str, to_crs: str) -> list:
+def transform_bbox(bbox: list, from_crs: Union[str, pyproj.CRS],
282
+ to_crs: Union[str, pyproj.CRS]) -> list:
283
"""
284
helper function to transform a bounding box (bbox) from
285
a source to a target CRS. CRSs in URI str format.
286
Uses pyproj Transformer.
287
288
:param bbox: list of coordinates in 'from_crs' projection
289
:param from_crs: CRS to transform from
- :param to_crs: CRSto transform to
290
+ :param to_crs: CRS to transform to
291
:raises `CRSError`: Error raised if no CRS could be identified from an
292
URI.
293
0 commit comments