Skip to content

Commit d0a1355

Browse files
Merge pull request #111 from busstoptaktik/work
Minor corrections
2 parents cf94cf6 + 5e25dab commit d0a1355

File tree

5 files changed

+43
-36
lines changed

5 files changed

+43
-36
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ Cargo.lock
44
*.code-workspace
55
/untracked
66
CHANGELOG
7+
.markdownlint.jsonc

CHANGELOG.md

+18-9
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
All notable changes to this project will be documented in this file.
44

5-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
6+
this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88
## [Unreleased]
99

@@ -69,7 +69,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6969

7070
- Improved syntax for register resources (See *Rumination #009*)
7171

72-
- Change the name of `CHANGES.md` to `CHANGELOG.md`, and try to follow guidelines from [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
72+
- Change the name of `CHANGES.md` to `CHANGELOG.md`, and try to follow guidelines from
73+
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
7374

7475
### Removed
7576

@@ -81,11 +82,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8182

8283
### Improvements
8384

84-
- Alternative parameter names for the `helmert` operator (`translations`, `rotations` etc.) (Nic Hill)
85+
- Alternative parameter names for the `helmert` operator
86+
(`translations`, `rotations` etc.) (Nic Hill)
8587
- Improved syntax and parameter handling (#92) (Thomas Knudsen)
86-
- `>` and `<` can be used to indicate pipeline steps that are `omit_inv` and `omit_fwd` respectively (syntactic sugar for `| omit_inv`, etc.)
87-
- True utf-8 subscripts supported in parameter names (e.g. `x₀`), as alternatives to the existing `x_0`-style
88-
- More free form syntax: Modifiers `inv`, `omit_inv` and `omit_fwd` may now prefix the operator name, i.e. `inv utm zone=32` is functionally identical to `utm inv zone=32`
88+
- `>` and `<` can be used to indicate pipeline steps that are `omit_inv` and
89+
`omit_fwd` respectively (syntactic sugar for `| omit_inv`, etc.)
90+
- True utf-8 subscripts supported in parameter names (e.g. `x₀`), as alternatives
91+
to the existing `x_0`-style
92+
- More free form syntax: Modifiers `inv`, `omit_inv` and `omit_fwd` may now prefix
93+
the operator name, i.e. `inv utm zone=32` is functionally identical to `utm inv zone=32`
8994
- Implement the `axisswap` operator (#84) (Thomas Knudsen)
9095
- Replace `once_cell` with `std::sync::OneLock`. (Corey Farwell)
9196
- KP: Guess output dimensionality (#82) (Thomas Knudsen)
@@ -131,7 +136,8 @@ Geodesy v0.12.0 materialized through contributions from
131136

132137
which does nothing, in a very convoluted way
133138
- Partial operator introspection
134-
- General support for 2D, 3D, 4D, and 32 bit 2D coordinates (`Coor2D`, `Coor3D`, `Coor4D`, `Coor32`)
139+
- General support for 2D, 3D, 4D, and 32 bit 2D coordinates
140+
(`Coor2D`, `Coor3D`, `Coor4D`, `Coor32`)
135141
- Hence `Coord` is gone
136142

137143
### Bug fixes
@@ -140,4 +146,7 @@ Geodesy v0.12.0 materialized through contributions from
140146

141147
### Acknowledgements
142148

143-
A huge thank you goes to [Sean Rennie](https://github.com/Rennzie) who a.o. did most of the work on the improved grid support in 0.11.0, and to [Kyle Barron](https://github.com/kylebarron) for pushing Geodesy over the WASM barrier in 0.10.0
149+
A huge thank you goes to [Sean Rennie](https://github.com/Rennzie) who a.o. did most
150+
of the work on the improved grid support in 0.11.0,
151+
and to [Kyle Barron](https://github.com/kylebarron) for pushing Geodesy over the
152+
WASM barrier in 0.10.0

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ The documentation is currently limited, but take a look at:
103103

104104
## License
105105

106-
*Rust Geodesy*: Copyright 2020, 2021, 2022, 2023 by Thomas Knudsen <knudsen.thomas@gmail.com>.
106+
*Rust Geodesy*: Copyright 2020, 2021, 2022, 2023, 2024 by Thomas Knudsen <knudsen.thomas@gmail.com> and contributors.
107107

108108
Licensed under either of
109109

src/context/minimal.rs

-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ impl Context for Minimal {
4040
direction: Direction,
4141
operands: &mut dyn CoordinateSet,
4242
) -> Result<usize, Error> {
43-
const BAD_ID_MESSAGE: Error = Error::General("Minimal: Unknown operator id");
4443
let op = self.operators.get(&op).ok_or(BAD_ID_MESSAGE)?;
4544
Ok(op.apply(self, operands, direction))
4645
}

src/lib.rs

+23-25
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pub mod prelude {
55
pub use crate::coord::*;
66
pub use crate::ctx::*;
77
pub use crate::ellps::*;
8-
#[allow(unused_imports)]
8+
#[cfg(test)]
99
pub use crate::test_coords::*;
1010
pub use crate::Error;
1111
}
@@ -73,30 +73,6 @@ pub mod coord {
7373
pub use crate::math::angular;
7474
}
7575

76-
/// Some generic coordintes for test composition
77-
mod test_coords {
78-
#[cfg(test)]
79-
pub fn some_basic_coor4dinates() -> [crate::coord::Coor4D; 2] {
80-
let copenhagen = crate::coord::Coor4D::raw(55., 12., 0., 0.);
81-
let stockholm = crate::coord::Coor4D::raw(59., 18., 0., 0.);
82-
[copenhagen, stockholm]
83-
}
84-
85-
#[cfg(test)]
86-
pub fn some_basic_coor3dinates() -> [crate::coord::Coor3D; 2] {
87-
let copenhagen = crate::coord::Coor3D::raw(55., 12., 0.);
88-
let stockholm = crate::coord::Coor3D::raw(59., 18., 0.);
89-
[copenhagen, stockholm]
90-
}
91-
92-
#[cfg(test)]
93-
pub fn some_basic_coor2dinates() -> [crate::coord::Coor2D; 2] {
94-
let copenhagen = crate::coord::Coor2D::raw(55., 12.);
95-
let stockholm = crate::coord::Coor2D::raw(59., 18.);
96-
[copenhagen, stockholm]
97-
}
98-
}
99-
10076
/// Elements for building operators
10177
mod ops {
10278
pub use crate::inner_op::InnerOp;
@@ -197,6 +173,28 @@ mod math;
197173
mod op;
198174
mod token;
199175

176+
/// Some generic coordinates for test composition
177+
#[cfg(test)]
178+
mod test_coords {
179+
pub fn some_basic_coor4dinates() -> [crate::coord::Coor4D; 2] {
180+
let copenhagen = crate::coord::Coor4D::raw(55., 12., 0., 0.);
181+
let stockholm = crate::coord::Coor4D::raw(59., 18., 0., 0.);
182+
[copenhagen, stockholm]
183+
}
184+
185+
pub fn some_basic_coor3dinates() -> [crate::coord::Coor3D; 2] {
186+
let copenhagen = crate::coord::Coor3D::raw(55., 12., 0.);
187+
let stockholm = crate::coord::Coor3D::raw(59., 18., 0.);
188+
[copenhagen, stockholm]
189+
}
190+
191+
pub fn some_basic_coor2dinates() -> [crate::coord::Coor2D; 2] {
192+
let copenhagen = crate::coord::Coor2D::raw(55., 12.);
193+
let stockholm = crate::coord::Coor2D::raw(59., 18.);
194+
[copenhagen, stockholm]
195+
}
196+
}
197+
200198
// ---- Documentation: Bibliography ----
201199
#[cfg(doc)]
202200
pub use crate::bibliography::Bibliography;

0 commit comments

Comments
 (0)