pub trait GeoOperations {
// Required methods
fn get_gps<P: AsRef<Path>>(&self, path: P) -> Result<Option<GpsCoordinate>>;
fn set_gps<P: AsRef<Path>>(
&self,
path: P,
coord: &GpsCoordinate,
) -> Result<()>;
fn remove_gps<P: AsRef<Path>>(&self, path: P) -> Result<()>;
fn geotag_from_track<P: AsRef<Path>, Q: AsRef<Path>>(
&self,
image: P,
track_file: Q,
) -> Result<()>;
fn generate_tracklog<P: AsRef<Path>, Q: AsRef<Path>>(
&self,
images: &[P],
output: Q,
) -> Result<()>;
fn reverse_geocode<P: AsRef<Path>>(
&self,
coord: &GpsCoordinate,
) -> Result<GeocodeResult>;
}Expand description
地理信息操作 trait
Required Methods§
Sourcefn geotag_from_track<P: AsRef<Path>, Q: AsRef<Path>>(
&self,
image: P,
track_file: Q,
) -> Result<()>
fn geotag_from_track<P: AsRef<Path>, Q: AsRef<Path>>( &self, image: P, track_file: Q, ) -> Result<()>
从 GPS 轨迹文件地理标记
Sourcefn generate_tracklog<P: AsRef<Path>, Q: AsRef<Path>>(
&self,
images: &[P],
output: Q,
) -> Result<()>
fn generate_tracklog<P: AsRef<Path>, Q: AsRef<Path>>( &self, images: &[P], output: Q, ) -> Result<()>
生成 GPS 轨迹文件
Sourcefn reverse_geocode<P: AsRef<Path>>(
&self,
coord: &GpsCoordinate,
) -> Result<GeocodeResult>
fn reverse_geocode<P: AsRef<Path>>( &self, coord: &GpsCoordinate, ) -> Result<GeocodeResult>
反向地理编码
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.