Skip to content

Limit Spatial Bounds#104

Open
AM1729 wants to merge 4 commits into
TheHortonMachine:masterfrom
AM1729:bounds
Open

Limit Spatial Bounds#104
AM1729 wants to merge 4 commits into
TheHortonMachine:masterfrom
AM1729:bounds

Conversation

@AM1729
Copy link
Copy Markdown
Contributor

@AM1729 AM1729 commented Apr 13, 2026

No description provided.


Position lowerCorner = envelope.getLowerCorner();
double[] westSouth = lowerCorner.getCoordinate();
westSouth[1] = Math.max(-90, Math.min(90, westSouth[1]));
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hi @AM1729 , I am afraid this is only right if you are talking lat-long CRS.
In any other case not. So the check will have to be done later, depending on the CRS.

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