pub struct Dataset { /* private fields */ }
Expand description
Vector dataset
use std::path::Path;
use gdal::vector::Dataset;
let mut dataset = Dataset::open(Path::new("fixtures/roads.geojson")).unwrap();
println!("Dataset has {} layers", dataset.count());
Implementations
sourceimpl Dataset
impl Dataset
pub unsafe fn _with_c_dataset(c_dataset: OGRDataSourceH) -> Dataset
sourcepub fn layer_by_name(&mut self, name: &str) -> Result<&Layer>
pub fn layer_by_name(&mut self, name: &str) -> Result<&Layer>
Get layer with name
.
sourcepub fn create_layer(&mut self) -> Result<&mut Layer>
pub fn create_layer(&mut self) -> Result<&mut Layer>
Create a new layer with a blank definition.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Dataset
impl !Send for Dataset
impl !Sync for Dataset
impl Unpin for Dataset
impl UnwindSafe for Dataset
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more