Skip to content

Commit

Permalink
fix epsg6677 to epsg32654 convert error
Browse files Browse the repository at this point in the history
<Projected CRS: EPSG:6677>
Name: JGD2011 / Japan Plane Rectangular CS IX
Axis Info [cartesian]:
- X[north]: Northing (metre)
- Y[east]: Easting (metre)

Common:
<Projected CRS: EPSG:32654>
Name: WGS 84 / UTM zone 54N
Axis Info [cartesian]:
- E[east]: Easting (metre)
- N[north]: Northing (metre)
  • Loading branch information
HowcanoeWang committed Jan 9, 2024
1 parent da4bb9b commit e5dd443
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions easyidp/geotools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]}')

0 comments on commit e5dd443

Please sign in to comment.