Crate gdal[][src]

Expand description

GDAL bindings for Rust.

A high-level API to access the GDAL library, for vector and raster data.

Use

use std::path::Path;
use gdal::Dataset;

let dataset = Dataset::open(Path::new("fixtures/roads.geojson")).unwrap();
let mut layer = dataset.layer(0).unwrap();
for feature in layer.features() {
    let highway_field = feature.field("highway").unwrap().unwrap();
    let geometry = feature.geometry();
    println!("{} {}", highway_field.into_string().unwrap(), geometry.wkt().unwrap());
}

Re-exports

pub use version::version_info;

Modules

GDAL Configuration Functions

GDAL Raster Data

GDAL Vector Data

Structs

Wrapper around a GDALDataset object.

GDal extended open flags used by Dataset::open_ex.

Represents an in-flight transaction on a dataset.

Traits

Type Definitions

A 2-D affine transform mapping pixel coordiates to world coordinates. See GDALGetGeoTransform for more details.