├── .github └── workflows │ └── CI.yml ├── .gitignore ├── CHANGELOG.md ├── Cargo.toml ├── LICENSE.md ├── README.md ├── examples ├── create.rs ├── geotype-example │ ├── .gitignore │ ├── Cargo.toml │ ├── README.md │ ├── src │ │ └── main.rs │ └── tests │ │ └── data │ │ ├── points.cpg │ │ ├── points.dbf │ │ ├── points.prj │ │ ├── points.shp │ │ ├── points.shx │ │ ├── polygons.cpg │ │ ├── polygons.dbf │ │ ├── polygons.prj │ │ ├── polygons.shp │ │ └── polygons.shx └── print-content.rs ├── src ├── geo_traits_impl.rs ├── header.rs ├── lib.rs ├── reader.rs ├── record │ ├── bbox.rs │ ├── io.rs │ ├── macros.rs │ ├── mod.rs │ ├── multipatch.rs │ ├── multipoint.rs │ ├── point.rs │ ├── polygon.rs │ ├── polyline.rs │ └── traits.rs └── writer.rs └── tests ├── data ├── line.shp ├── line.shx ├── linem.shp ├── linez.shp ├── multi_polygon.shp ├── multipatch.dbf ├── multipatch.shp ├── multipoint.shp ├── multipointz.shp ├── ne_10m_lakes_north_america.shp ├── point.shp ├── point.shx ├── pointm.shp ├── pointz.shp ├── polygon.shp ├── polygon_hole.shp ├── polygon_hole.shx ├── polygonm.shp └── polygonz.shp ├── read_tests.rs ├── read_with_index.rs ├── testfiles.rs └── write_tests.rs /.github/workflows/CI.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/.github/workflows/CI.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | **/*.rs.bk 3 | Cargo.lock 4 | 5 | .idea/ 6 | 7 | \.vs/ 8 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/README.md -------------------------------------------------------------------------------- /examples/create.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/examples/create.rs -------------------------------------------------------------------------------- /examples/geotype-example/.gitignore: -------------------------------------------------------------------------------- 1 | target/ 2 | -------------------------------------------------------------------------------- /examples/geotype-example/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/examples/geotype-example/Cargo.toml -------------------------------------------------------------------------------- /examples/geotype-example/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/examples/geotype-example/README.md -------------------------------------------------------------------------------- /examples/geotype-example/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/examples/geotype-example/src/main.rs -------------------------------------------------------------------------------- /examples/geotype-example/tests/data/points.cpg: -------------------------------------------------------------------------------- 1 | UTF-8 -------------------------------------------------------------------------------- /examples/geotype-example/tests/data/points.dbf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/examples/geotype-example/tests/data/points.dbf -------------------------------------------------------------------------------- /examples/geotype-example/tests/data/points.prj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/examples/geotype-example/tests/data/points.prj -------------------------------------------------------------------------------- /examples/geotype-example/tests/data/points.shp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/examples/geotype-example/tests/data/points.shp -------------------------------------------------------------------------------- /examples/geotype-example/tests/data/points.shx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/examples/geotype-example/tests/data/points.shx -------------------------------------------------------------------------------- /examples/geotype-example/tests/data/polygons.cpg: -------------------------------------------------------------------------------- 1 | UTF-8 -------------------------------------------------------------------------------- /examples/geotype-example/tests/data/polygons.dbf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/examples/geotype-example/tests/data/polygons.dbf -------------------------------------------------------------------------------- /examples/geotype-example/tests/data/polygons.prj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/examples/geotype-example/tests/data/polygons.prj -------------------------------------------------------------------------------- /examples/geotype-example/tests/data/polygons.shp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/examples/geotype-example/tests/data/polygons.shp -------------------------------------------------------------------------------- /examples/geotype-example/tests/data/polygons.shx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/examples/geotype-example/tests/data/polygons.shx -------------------------------------------------------------------------------- /examples/print-content.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/examples/print-content.rs -------------------------------------------------------------------------------- /src/geo_traits_impl.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/src/geo_traits_impl.rs -------------------------------------------------------------------------------- /src/header.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/src/header.rs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/src/lib.rs -------------------------------------------------------------------------------- /src/reader.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/src/reader.rs -------------------------------------------------------------------------------- /src/record/bbox.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/src/record/bbox.rs -------------------------------------------------------------------------------- /src/record/io.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/src/record/io.rs -------------------------------------------------------------------------------- /src/record/macros.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/src/record/macros.rs -------------------------------------------------------------------------------- /src/record/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/src/record/mod.rs -------------------------------------------------------------------------------- /src/record/multipatch.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/src/record/multipatch.rs -------------------------------------------------------------------------------- /src/record/multipoint.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/src/record/multipoint.rs -------------------------------------------------------------------------------- /src/record/point.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/src/record/point.rs -------------------------------------------------------------------------------- /src/record/polygon.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/src/record/polygon.rs -------------------------------------------------------------------------------- /src/record/polyline.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/src/record/polyline.rs -------------------------------------------------------------------------------- /src/record/traits.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/src/record/traits.rs -------------------------------------------------------------------------------- /src/writer.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/src/writer.rs -------------------------------------------------------------------------------- /tests/data/line.shp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/tests/data/line.shp -------------------------------------------------------------------------------- /tests/data/line.shx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/tests/data/line.shx -------------------------------------------------------------------------------- /tests/data/linem.shp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/tests/data/linem.shp -------------------------------------------------------------------------------- /tests/data/linez.shp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/tests/data/linez.shp -------------------------------------------------------------------------------- /tests/data/multi_polygon.shp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/tests/data/multi_polygon.shp -------------------------------------------------------------------------------- /tests/data/multipatch.dbf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/tests/data/multipatch.dbf -------------------------------------------------------------------------------- /tests/data/multipatch.shp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/tests/data/multipatch.shp -------------------------------------------------------------------------------- /tests/data/multipoint.shp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/tests/data/multipoint.shp -------------------------------------------------------------------------------- /tests/data/multipointz.shp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/tests/data/multipointz.shp -------------------------------------------------------------------------------- /tests/data/ne_10m_lakes_north_america.shp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/tests/data/ne_10m_lakes_north_america.shp -------------------------------------------------------------------------------- /tests/data/point.shp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/tests/data/point.shp -------------------------------------------------------------------------------- /tests/data/point.shx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/tests/data/point.shx -------------------------------------------------------------------------------- /tests/data/pointm.shp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/tests/data/pointm.shp -------------------------------------------------------------------------------- /tests/data/pointz.shp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/tests/data/pointz.shp -------------------------------------------------------------------------------- /tests/data/polygon.shp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/tests/data/polygon.shp -------------------------------------------------------------------------------- /tests/data/polygon_hole.shp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/tests/data/polygon_hole.shp -------------------------------------------------------------------------------- /tests/data/polygon_hole.shx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/tests/data/polygon_hole.shx -------------------------------------------------------------------------------- /tests/data/polygonm.shp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/tests/data/polygonm.shp -------------------------------------------------------------------------------- /tests/data/polygonz.shp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/tests/data/polygonz.shp -------------------------------------------------------------------------------- /tests/read_tests.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/tests/read_tests.rs -------------------------------------------------------------------------------- /tests/read_with_index.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/tests/read_with_index.rs -------------------------------------------------------------------------------- /tests/testfiles.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/tests/testfiles.rs -------------------------------------------------------------------------------- /tests/write_tests.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmontaigu/shapefile-rs/HEAD/tests/write_tests.rs --------------------------------------------------------------------------------