Skip to content
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

Determine bounding box for oblique area #7657

Merged
merged 2 commits into from Jul 21, 2023
Merged

Determine bounding box for oblique area #7657

merged 2 commits into from Jul 21, 2023

Conversation

PaulWessel
Copy link
Member

Added to more directives to -W (b and B) which results in reporting the extreme longitude and latitude (the bounding box) of the oblique are in geographical lon/lat coordinates.

As an example, consider the polar stereographic windshield area below. The bounding rectangle to this sector is the outer fat rectangle, but what are the minimum and maximum longitude for this rectangle (which is defined in the projected units).

WIth the new option we get

gmt mapproject -R-30/30/30/70 -JS0/90/12c -WB
-R-62.0519979675384/62.0519979675384/24.28467811471676/72.63728988203717

map

So to ensure that a rectangular lon/lat image or grid will completely fill the polar windshield we need to have longitudes for±62.05 and latitude needs to start at 25.28N and go up to 72.63 since the sliver north of the polar windshield extends further north and to fill the box we need data beyond the initial 70N.

Added to more directives to -W (b and B) which results in reporiting the extreme longitude and latitude (the bounding box) of the oblilque are in geographical lon/lat coordinates.
@PaulWessel PaulWessel added the enhancement Improving an existing feature label Jul 19, 2023
@PaulWessel PaulWessel added this to the 6.5.0 milestone Jul 19, 2023
@PaulWessel PaulWessel self-assigned this Jul 19, 2023
@PaulWessel PaulWessel changed the title WIP Determine bounding box for oblique area Determine bounding box for oblique area Jul 21, 2023
@PaulWessel PaulWessel requested a review from anbj July 21, 2023 14:41
@PaulWessel PaulWessel merged commit 0cc093a into master Jul 21, 2023
6 checks passed
@PaulWessel PaulWessel deleted the mapproject-Wb branch July 21, 2023 14:53
@maxrjones maxrjones added the add-changelog Add PR to the changelog label Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
add-changelog Add PR to the changelog enhancement Improving an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants