Commit 789b9ef8 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Added type hint.

parent d1a17054
Pipeline #1182 passed with stages
in 5 minutes and 26 seconds
...@@ -124,7 +124,7 @@ def transform_coordArray(prj_src, prj_tgt, Xarr, Yarr, Zarr=None): ...@@ -124,7 +124,7 @@ def transform_coordArray(prj_src, prj_tgt, Xarr, Yarr, Zarr=None):
def mapXY2imXY(mapXY, gt): def mapXY2imXY(mapXY, gt):
# type: (tuple,list) -> _T_xycoords # type: (tuple, Union[list, tuple]) -> _T_xycoords
"""Translates given geo coordinates into pixel locations according to the given image geotransform. """Translates given geo coordinates into pixel locations according to the given image geotransform.
:param mapXY: <tuple, np.ndarray> The geo coordinates to be translated in the form (x,y) or as np.ndarray [Nx1]. :param mapXY: <tuple, np.ndarray> The geo coordinates to be translated in the form (x,y) or as np.ndarray [Nx1].
...@@ -144,7 +144,7 @@ def mapXY2imXY(mapXY, gt): ...@@ -144,7 +144,7 @@ def mapXY2imXY(mapXY, gt):
def imXY2mapXY(imXY, gt): def imXY2mapXY(imXY, gt):
# type: (tuple,list) -> _T_xycoords # type: (tuple, Union[list, tuple]) -> _T_xycoords
"""Translates given pixel locations into geo coordinates according to the given image geotransform. """Translates given pixel locations into geo coordinates according to the given image geotransform.
:param imXY: <tuple, np.ndarray> The image coordinates to be translated in the form (x,y) or as np.ndarray [Nx1]. :param imXY: <tuple, np.ndarray> The image coordinates to be translated in the form (x,y) or as np.ndarray [Nx1].
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment