pub struct Tokyo { /* private fields */ }Expand description
Tokyo Datum, The older Japanese Datum.
旧日本測地系。
EPSG: 4301
Implementations§
Source§impl Tokyo
impl Tokyo
Sourcepub fn new(degrees: LatLon) -> Result<Self, DegreesError>
pub fn new(degrees: LatLon) -> Result<Self, DegreesError>
Constructs a Tokyo with a coordinate in degrees.
§Errors
Returns DegreesError if the LatLon is out of range in degrees.
§Examples
let jgd2011 = Tokyo::new(LatLon(35.0, 135.0))?.to_jgd2000().to_jgd2011();Sourcepub fn to_jgd2000(&self) -> Jgd2000
Available on crate feature tky2jgd only.
pub fn to_jgd2000(&self) -> Jgd2000
tky2jgd only.Transforms to Jgd2000.
TKY2JGD を用いて変換される。精度は、一定の条件下で
「緯度, 経度の標準偏差はそれぞれ9cm, 8cm」(飛田, 2001)。
ただし、TKY2JGD の範囲外では Tokyo97::to_jgd2000 によって変換され、精度が大きく下がる。
日本国内の地表面の座標のみに使用可能。地中や空中ではズレが大きくなる。
§Examples
let LatLon(lat, lon) = tokyo.to_jgd2000().degrees();Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tokyo
impl RefUnwindSafe for Tokyo
impl Send for Tokyo
impl Sync for Tokyo
impl Unpin for Tokyo
impl UnwindSafe for Tokyo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more