-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* remove unitconvert operator * rename noop to senmerc * update changelog
- Loading branch information
Showing
6 changed files
with
12 additions
and
392 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,8 @@ | ||
mod noop; | ||
mod unitconvert; | ||
pub mod units; | ||
mod senmerc; | ||
|
||
use geodesy_rs::authoring::*; | ||
|
||
#[rustfmt::skip] | ||
pub const ACCESSORY_OPERATORS: [(&str, OpConstructor); 5] = [ | ||
("unitconvert", OpConstructor(unitconvert::new)), | ||
// As far as I can tell the `longlat` operator is a no-op. | ||
// - https://proj.org/en/9.3/operations/conversions/latlon.html | ||
// - https://github.com/OSGeo/PROJ/blob/2040e685f5ab9c2958b7b611f5aaafee21fed82f/src/projections/latlong.cpp#L94 | ||
// My assumption is it's for historical reasons, so in geodesy-wasm it's just a noop. | ||
("longlat", OpConstructor(noop::new)), | ||
// And Aliases latlon, latlong, lonlat | ||
("latlon", OpConstructor(noop::new)), | ||
("latlong", OpConstructor(noop::new)), | ||
("lonlat", OpConstructor(noop::new)), | ||
pub const ACCESSORY_OPERATORS: [(&str, OpConstructor); 1] = [ | ||
("senmerc", OpConstructor(senmerc::new)), | ||
]; |
5 changes: 2 additions & 3 deletions
5
src/geodesy/operators/noop.rs → src/geodesy/operators/senmerc.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.