michelk / shapefile-rs

Rust library to read & write shapefiles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

shapefile-rs

Rust library to read & write shapefiles .dbf files supported via the dbase crate

let mut reader = shapefile::Reader::from_path(filename).unwrap();

for result in reader.iter_shapes_and_records() {
    let (shape, record) = result.unwrap();
    println ! ("Shape: {}, records: ", shape);
    for (name, value) in record {
        println ! ("\t{}: {:?}, ", name, value);
    }
    println ! ();
}

About

Rust library to read & write shapefiles

License:MIT License


Languages

Language:Rust 100.0%