Skip to content
GitLab
Menu
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
9cb17b13
Commit
9cb17b13
authored
Sep 02, 2020
by
Daniel Scheffler
Browse files
Fixed Test_transform_any_prj.
Signed-off-by:
Daniel Scheffler
<
danschef@gfz-potsdam.de
>
parent
8ee071b1
Pipeline
#12238
passed with stages
in 2 minutes and 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tests/test_geo/test_coord_trafo.py
View file @
9cb17b13
...
...
@@ -32,6 +32,7 @@ Tests for `py_tools_ds.geo.coord_trafo` module.
from
unittest
import
TestCase
from
shapely.geometry
import
Polygon
import
numpy
as
np
from
py_tools_ds.geo.coord_trafo
import
reproject_shapelyGeometry
,
transform_any_prj
...
...
@@ -55,4 +56,5 @@ class Test_transform_any_prj(TestCase):
out_x
,
out_y
=
transform_any_prj
(
4326
,
32632
,
ll_x
,
ll_y
)
self
.
assertTrue
(
isinstance
(
out_x
,
float
))
self
.
assertTrue
(
isinstance
(
out_y
,
float
))
self
.
assertEqual
((
out_x
,
out_y
),
(
utm_x
,
utm_y
))
self
.
assertTrue
(
np
.
all
(
np
.
isclose
(
np
.
array
([
out_x
,
out_y
]),
np
.
array
([
utm_x
,
utm_y
]))))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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