-
Notifications
You must be signed in to change notification settings - Fork 802
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some suggestions for code cleanup #2387
Comments
This is awesome, @cffk - scratching your own itch, but leaving the universe in better overall shape as a side effect - a classic driver for open source/free software progress. With a bit of luck and promotion, it will even inspire others to take up the challenge and expand on your work. |
This addresses item 1 in issue OSGeo#2387 Things to note: * I made "editorial" changes to the text. The virtues and vices of Mercator are a hot topic. So check these out. (I judged that the text I replaced to be pretty misleading.) * I include the radius of the sphere/ellipsoid in the formulas (and I did this also for my mods for tmerc documentation). Surely this is better than leaving the reader to figure out how this is introduced. * I include the "old-style" (ca 18th century) formulas and the newer ones in terms of hyperbolic functions. The former may be the familiar ones, but the latter are better for computation (more succinct, more accurate, faster, preserve parity). * For the inverse ellipsoidal transformation, I just say that the formula for psi is inverted iteratively. This is probably sufficient, but it could be expanded later.
Reopened as #2388 is only a partial fix to this. |
I found Is there any benchmark and speed which we should try to maintain? Would like to know if that is also included in the CI, and, if there is a to-do list of functions which we may go hunting for performance? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
My recent update to the tmerc documentation #2379 was prompted by queries from NGA (the US National Geospatial Intelligence Agency) figuring what it should do with PROJ. Along the way there was talk of NGA doing a code review of PROJ. Of course, we should welcome this. However, there are many parts of PROJ which are showing their age. Some of these are ripe for updating to improve:
(a) clarity of the code
(b) accuracy
(c) speed
I've identified the following sections that I'm interested in updating:
I realize that this is a somewhat Sisyphean undertaking. For example, other conformal projections share the defects of the Mercator projection. However, I figure I'd start chipping away at the parts of PROJ that annoy me the most. Even if my changes are reckoned to be too piecemeal, it will be good to capture possible code changes for a future more systematic housecleaning.
I will make separate pull requests for these 4 items and these can be discussed in full at that time. However, holler if you want to know my intentions before I get around to making the changes.
The text was updated successfully, but these errors were encountered: