Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Daniel Scheffler
py_tools_ds
Commits
789b9ef8
Commit
789b9ef8
authored
Sep 19, 2017
by
Daniel Scheffler
Browse files
Added type hint.
parent
d1a17054
Pipeline
#1182
passed with stages
in 5 minutes and 26 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
py_tools_ds/geo/coord_trafo.py
View file @
789b9ef8
...
...
@@ -124,7 +124,7 @@ def transform_coordArray(prj_src, prj_tgt, Xarr, Yarr, Zarr=None):
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.
: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):
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.
:param imXY: <tuple, np.ndarray> The image coordinates to be translated in the form (x,y) or as np.ndarray [Nx1].
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment