Commit 0117d611 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Fixed wrong output of reproject_shapelyGeometry() in case of EPSG 4326. Updated version info.


Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent c844f704
Pipeline #12158 failed with stages
in 19 minutes and 48 seconds
...@@ -2,7 +2,13 @@ ...@@ -2,7 +2,13 @@
History History
======= =======
0.15.3 (2020-09-21) 0.15.4 (2020-09-01)
-------------------
* Fixed wrong output of reproject_shapelyGeometry() in case of EPSG 4326.
0.15.3 (2020-09-01)
------------------- -------------------
* Fixed wrong output of transform_any_prj() in case of EPSG 4326. * Fixed wrong output of transform_any_prj() in case of EPSG 4326.
......
...@@ -305,6 +305,7 @@ def reproject_shapelyGeometry(shapelyGeometry, prj_src, prj_tgt): ...@@ -305,6 +305,7 @@ def reproject_shapelyGeometry(shapelyGeometry, prj_src, prj_tgt):
""" """
project = pyproj.Transformer.from_proj( project = pyproj.Transformer.from_proj(
pyproj.CRS.from_user_input(prj_src), pyproj.CRS.from_user_input(prj_src),
pyproj.CRS.from_user_input(prj_tgt)) pyproj.CRS.from_user_input(prj_tgt),
always_xy=True)
return transform(project.transform, shapelyGeometry) # apply projection return transform(project.transform, shapelyGeometry) # apply projection
...@@ -19,5 +19,5 @@ ...@@ -19,5 +19,5 @@
# You should have received a copy of the GNU Lesser General Public License along # You should have received a copy of the GNU Lesser General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>. # with this program. If not, see <http://www.gnu.org/licenses/>.
__version__ = '0.15.3' __version__ = '0.15.4'
__versionalias__ = '20200901_01' __versionalias__ = '20200901_02'
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