Skip to content

Conversation

@zhuabaguai
Copy link
Contributor

No description provided.

@daohu527 daohu527 self-requested a review May 14, 2025 07:49
@daohu527
Copy link
Owner

@zhuabaguai This pull request refactors the projection handling in the imap library to provide more flexibility by supporting custom projection strings (proj_txt) in addition to the default UTM-based projections. The changes primarily affect the proj_helper module and its usage in the convertor module.

Refactoring projection functions:

  • Replaced the latlon2utm function with latlon2projected, which now supports custom projection strings (proj_txt) in addition to the default UTM-based projection.
  • Replaced the utm2latlon function with projected2latlon, which supports inverse transformations using either a custom projection string (proj_txt) or the default UTM-based projection.

Updates to convertor.py:

  • Updated the import statement in imap/lib/convertor.py to use latlon2projected instead of latlon2utm.
  • Modified the convert_proj_txt method to use the new latlon2projected function, passing the proj_txt parameter for custom projections.

Copy link
Contributor Author

@zhuabaguai zhuabaguai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image
Test passed

@daohu527 daohu527 merged commit 45ef3e0 into daohu527:main May 15, 2025
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants