Repository navigation
The pointer readout and Copy Coordinates in the active layer's own system (#2032 C2f-8) #2795
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
Changes from all commits
285cf90
9e7a1a9
c6747ed
677cd86
297c6f5
1459c4c
8c45e31
8d0530a
002194d
bb23f0a
7127c80
9c7b46a
fb6fd02
488c45e
794b2bc
164b8c1
1e5b677
cff6ee0
d9e7393
6a75d29
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -839,7 +839,13 @@ impl Crs { | |
| /// semi-major axis isn't the Earth's ([`super::planetary`]). Its longitude/latitude are read as | ||
| /// they are, on the Earth. | ||
| pub fn is_planetary(self) -> bool { | ||
| self.custom_def().and_then(|d| super::planetary::proj4_axes(&d.proj4)).is_some_and(|(a, _)| super::planetary::off_earth(a)) | ||
| self.planetary_semi_major().is_some() | ||
| } | ||
|
|
||
| /// The semi-major axis, in metres, of another body's system ([`Crs::is_planetary`]), which | ||
| /// tells the bodies apart; `None` for the Earth's. | ||
| pub fn planetary_semi_major(self) -> Option<f64> { | ||
| self.custom_def().and_then(|d| super::planetary::proj4_axes(&d.proj4)).map(|(a, _)| a).filter(|a| super::planetary::off_earth(*a)) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is raised again because the code it feeds has changed. The earlier answer defers this to the next C2f PR. AGENTS.md only lets quality points wait for the release pass, so this has to be fixed here. Suggested fix: scan the whole definition in Category: bug |
||
| } | ||
|
|
||
| /// A transformer between this system and WGS 84 longitude/latitude, built once a run per | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.