Commit 9cb17b13 authored by Daniel Scheffler's avatar Daniel Scheffler

Fixed Test_transform_any_prj.

Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 8ee071b1
Pipeline #12238 passed with stages
in 2 minutes and 10 seconds
......@@ -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]))))
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