pub enum DatasetFormat {
Show 18 variants
GeoTiff,
GeoJson,
Shapefile,
GeoParquet,
NetCdf,
Hdf5,
Zarr,
Grib,
Stac,
Terrain,
Vrt,
FlatGeobuf,
Jpeg2000,
GeoPackage,
PMTiles,
MBTiles,
Copc,
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)
GeoPackage
GeoPackage (.gpkg, SQLite-based)
PMTiles
PMTiles v3 single-file tile archive (.pmtiles)
MBTiles
MBTiles SQLite tile archive (.mbtiles)
Copc
Cloud Optimized Point Cloud (.copc.laz)
Unknown
Unknown / user-specified
Implementations§
Source§impl DatasetFormat
impl DatasetFormat
Sourcepub fn is_geopackage(path: &Path) -> bool
pub fn is_geopackage(path: &Path) -> bool
Returns true if this format is likely a GeoPackage (GPKG).
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.
For .copc.laz files, the compound extension is checked first.
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
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more