From e5dd443e123a6e67a4dfdf7333faa160a0f0f7cd Mon Sep 17 00:00:00 2001 From: Howcanoe WANG Date: Tue, 9 Jan 2024 18:28:42 +0900 Subject: [PATCH] fix epsg6677 to epsg32654 convert error Name: JGD2011 / Japan Plane Rectangular CS IX Axis Info [cartesian]: - X[north]: Northing (metre) - Y[east]: Easting (metre) Common: Name: WGS 84 / UTM zone 54N Axis Info [cartesian]: - E[east]: Easting (metre) - N[north]: Northing (metre) --- easyidp/geotools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/easyidp/geotools.py b/easyidp/geotools.py index fe8178d..0008869 100644 --- a/easyidp/geotools.py +++ b/easyidp/geotools.py @@ -272,9 +272,9 @@ def _get_crs_xy_order(crs): crs : pyproj object _description_ """ - if crs.axis_info[0].abbrev in ['E', 'X', 'east', 'Lon']: + if crs.axis_info[0].direction == 'east': return 'xy' - elif crs.axis_info[0].abbrev in ['N', 'Y', 'north', 'Lat']: + elif crs.axis_info[0].direction == 'north': return 'yx' else: raise ValueError(f'Unable to parse the crs axis info\n- {crs.axis_info[0]}\n- {crs.axis_info[1]}') \ No newline at end of file