https://github.com/tmontaigu/shapefile-rs
Rust library to read & write shapefiles
https://github.com/tmontaigu/shapefile-rs
gis rust-lang shapefile
Last synced: 6 months ago
JSON representation
Rust library to read & write shapefiles
- Host: GitHub
- URL: https://github.com/tmontaigu/shapefile-rs
- Owner: tmontaigu
- License: mit
- Created: 2019-01-03T20:13:59.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2025-03-26T18:50:27.000Z (7 months ago)
- Last Synced: 2025-04-01T08:40:12.646Z (6 months ago)
- Topics: gis, rust-lang, shapefile
- Language: Rust
- Size: 348 KB
- Stars: 60
- Watchers: 8
- Forks: 23
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# shapefile-rs
Rust library to read & write shapefiles
.dbf files supported via the [dbase](https://crates.io/crates/dbase) crate```rust
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](https://github.com/tmontaigu/shapefile-rs/tree/master/examples/) folder