diff --git a/src/proj.rs b/src/proj.rs index fe529292..a2ec3b05 100644 --- a/src/proj.rs +++ b/src/proj.rs @@ -27,8 +27,9 @@ use std::mem::MaybeUninit; use std::path::Path; use thiserror::Error; -pub trait CoordinateType: Float + Copy + PartialOrd + Debug {} -impl CoordinateType for T {} +/// Base numeric type. This should match CoordFloat trait in the geo-types crate. +pub trait CoordinateType: Float + Copy + PartialOrd + Debug + Default {} +impl CoordinateType for T {} /// An error number returned from a PROJ call. pub(crate) struct Errno(pub libc::c_int);