Crate gdal[−][src]
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
config | GDAL Configuration Functions |
errors | |
raster | GDAL Raster Data |
spatial_ref | |
vector | GDAL Vector Data |
version |
Structs
Dataset | Wrapper around a |
DatasetOptions | |
Driver | |
GdalOpenFlags | GDal extended open flags used by |
LayerIterator | |
Transaction | Represents an in-flight transaction on a dataset. |
Traits
Metadata |
Type Definitions
GeoTransform | A 2-D affine transform mapping pixel coordiates to world coordinates. See GDALGetGeoTransform for more details. |