shapefile-gbk

Crates.ioshapefile-gbk
lib.rsshapefile-gbk
version0.6.0
created_at2025-03-26 09:06:03.54993+00
updated_at2025-03-26 09:06:03.54993+00
descriptionRead & Write shapefiles in Rust
homepagehttps://github.com/tmontaigu/shapefile-rs
repositoryhttps://github.com/tmontaigu/shapefile-rs
max_upload_size
id1606339
size256,139
唐加彬 (JiabinTang)

documentation

README

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 ! ();
}

You can check out examples in the examples folder

Commit count: 200

cargo fmt