pub enum DatasetFormat {
Show 14 variants
GeoTiff,
GeoJson,
Shapefile,
GeoParquet,
NetCdf,
Hdf5,
Zarr,
Grib,
Stac,
Terrain,
Vrt,
FlatGeobuf,
Jpeg2000,
Unknown,
}Expand description
Detected format of a geospatial dataset.
Variants§
GeoTiff
GeoTIFF / Cloud-Optimized GeoTIFF (.tif, .tiff)
GeoJson
GeoJSON (.geojson, .json)
Shapefile
ESRI Shapefile (.shp)
GeoParquet
GeoParquet (.parquet, .geoparquet)
NetCdf
NetCDF (.nc, .nc4)
Hdf5
HDF5 (.h5, .hdf5, .he5)
Zarr
Zarr (.zarr directory)
Grib
GRIB/GRIB2 (.grib, .grib2, .grb, .grb2)
Stac
STAC catalog (.json with STAC metadata)
Terrain
Terrain formats
Vrt
Virtual Raster Tiles (.vrt)
FlatGeobuf
FlatGeobuf (.fgb)
Jpeg2000
JPEG2000 (.jp2, .j2k)
Unknown
Unknown / user-specified
Implementations§
Source§impl DatasetFormat
impl DatasetFormat
Sourcepub fn from_extension(path: &str) -> Self
pub fn from_extension(path: &str) -> Self
Detect format from file extension.
Returns DatasetFormat::Unknown if the extension is not recognized.
Sourcepub fn driver_name(&self) -> &'static str
pub fn driver_name(&self) -> &'static str
Human-readable driver name (matches GDAL naming convention).
Trait Implementations§
Source§impl Clone for DatasetFormat
impl Clone for DatasetFormat
Source§fn clone(&self) -> DatasetFormat
fn clone(&self) -> DatasetFormat
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 DatasetFormat
impl Debug for DatasetFormat
Source§impl Display for DatasetFormat
impl Display for DatasetFormat
Source§impl PartialEq for DatasetFormat
impl PartialEq for DatasetFormat
impl Copy for DatasetFormat
impl Eq for DatasetFormat
impl StructuralPartialEq for DatasetFormat
Auto Trait Implementations§
impl Freeze for DatasetFormat
impl RefUnwindSafe for DatasetFormat
impl Send for DatasetFormat
impl Sync for DatasetFormat
impl Unpin for DatasetFormat
impl UnsafeUnpin for DatasetFormat
impl UnwindSafe for DatasetFormat
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