#[non_exhaustive]pub enum OutputFormat {
GeoTiff,
GeoJson,
Shapefile,
GeoPackage,
GeoParquet,
FlatGeobuf,
Vrt,
}Expand description
Supported output formats for dataset creation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
GeoTiff
GeoTIFF / Cloud-Optimized GeoTIFF
GeoJson
GeoJSON vector format
Shapefile
ESRI Shapefile
GeoPackage
GeoPackage (SQLite-based)
GeoParquet
GeoParquet (Apache Parquet with geometry extension)
FlatGeobuf
FlatGeobuf
Vrt
Virtual Raster Tiles (VRT)
Implementations§
Source§impl OutputFormat
impl OutputFormat
Sourcepub fn driver_name(&self) -> &'static str
pub fn driver_name(&self) -> &'static str
Return a human-readable driver name (mirrors GDAL naming convention).
Sourcepub fn default_extension(&self) -> &'static str
pub fn default_extension(&self) -> &'static str
Return the canonical file extension (without the leading dot).
Sourcepub fn from_dataset_format(fmt: DatasetFormat) -> Option<Self>
pub fn from_dataset_format(fmt: DatasetFormat) -> Option<Self>
Derive an OutputFormat from a DatasetFormat, if possible.
Trait Implementations§
Source§impl Clone for OutputFormat
impl Clone for OutputFormat
Source§fn clone(&self) -> OutputFormat
fn clone(&self) -> OutputFormat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OutputFormat
impl Debug for OutputFormat
Source§impl Display for OutputFormat
impl Display for OutputFormat
Source§impl PartialEq for OutputFormat
impl PartialEq for OutputFormat
impl Copy for OutputFormat
impl Eq for OutputFormat
impl StructuralPartialEq for OutputFormat
Auto Trait Implementations§
impl Freeze for OutputFormat
impl RefUnwindSafe for OutputFormat
impl Send for OutputFormat
impl Sync for OutputFormat
impl Unpin for OutputFormat
impl UnsafeUnpin for OutputFormat
impl UnwindSafe for OutputFormat
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