Skip to content

add +over support#530

Merged
ahocevar merged 1 commit intoproj4js:masterfrom
malaretv:over-support
Oct 29, 2025
Merged

add +over support#530
ahocevar merged 1 commit intoproj4js:masterfrom
malaretv:over-support

Conversation

@malaretv
Copy link
Copy Markdown
Contributor

@malaretv malaretv commented Oct 28, 2025

Basically #396 with tests.

I did try to rebase #396 originally on top of master but my git-fu is weak and I crumbled.

Closes #396
Fixes #324

Copy link
Copy Markdown
Member

@ahocevar ahocevar left a comment

Choose a reason for hiding this comment

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

Thanks for reviving this and adding the tests. Excellent work, @malaretv!

@ahocevar ahocevar merged commit cfebb35 into proj4js:master Oct 29, 2025
5 checks passed
@mclaeysb
Copy link
Copy Markdown

This has been a very helpful improvement for us at Allmaps, just wanted to say thank you @malaretv @ahocevar !

yharby added a commit to walkthru-earth/objex that referenced this pull request Mar 18, 2026
Replace manual longitude normalization hacks with proj4's +over flag on
the target projection definitions. +over disables adjust_lon() which was
wrapping longitude at ±180°, causing:
- forward(-180.001°) → positive easting (wrong sign)
- inverse(-WM_HALF) → +180° instead of -180°
- 360° round-trip errors making mesh refinement unconvergeable

With +over, both forward and inverse directions return unwrapped
coordinates. Removes tile-aware inverse wrapper and per-tile maxError
guard — no longer needed.

Ref: proj4js/proj4js#324, proj4js/proj4js#530
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.

Add +over support

3 participants