Struct gdal::vector::Dataset
[−]
[src]
pub struct Dataset { /* fields omitted */ }
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());
Methods
impl Dataset
[src]
unsafe fn _with_c_dataset(c_dataset: *const c_void) -> Dataset
fn open(path: &Path) -> Option<Dataset>
Open the dataset at path
.
fn count(&self) -> isize
Get number of layers.
fn layer(&mut self, idx: isize) -> Option<&Layer>
Get layer number idx
.
fn create_layer(&mut self) -> &mut Layer
Create a new layer with a blank definition.
Trait Implementations
impl Metadata for Dataset
[src]
fn get_description(&self) -> Option<String>
fn get_metadata_item(&self, key: &str, domain: &str) -> Option<String>
fn set_metadata_item(
&mut self,
key: &str,
value: &str,
domain: &str
) -> Result<(), ()>
&mut self,
key: &str,
value: &str,
domain: &str
) -> Result<(), ()>