geojson
geojson copied to clipboard
Library for serializing the GeoJSON vector GIS file format
- [x] I agree to follow the project's [code of conduct](https://github.com/georust/geo/blob/master/CODE_OF_CONDUCT.md). - [x] I added an entry to `CHANGES.md` if knowledge of this change could be valuable to users. ---...
- [x] I agree to follow the project's [code of conduct](https://github.com/georust/geo/blob/master/CODE_OF_CONDUCT.md). - [x] I added an entry to `CHANGES.md` if knowledge of this change could be valuable to users. ---...
- [x] I agree to follow the project's [code of conduct](https://github.com/georust/geo/blob/master/CODE_OF_CONDUCT.md). - [x] I added an entry to `CHANGES.md` if knowledge of this change could be valuable to users. ---...
If you've been following the recent changes I made in the WKT crate (https://github.com/georust/wkt/pull/89, https://github.com/georust/wkt/pull/95), I'm interested in doing a similar thing here in the geojson crate: avoid exposing the...
At the time of writing, the `Error` enum is 216 bytes. We can reduce the size by splitting the enum into different enums (e.g. `DeserializeError`, `SerializeError`, `ToGeoError`, etc). And also...
See https://github.com/georust/geojson/compare/frewsxcv-test-test?expand=1 This test fails with: ``` called `Result::unwrap()` on an `Err` value: Custom { kind: InvalidData, error: Error("invalid type: floating point `1`, expected a map", line: 1, column: 4)...
(copied from discord) what do people think about adding macros in the geojson crate to ease creation? ```rust let feature = geojson::feature! { geometry: geojson::point![1., 1.], properties: { foo: "bar",...
By default, serde_json uses a BTreeMap to store JSValue's, which means that properties can get unexpectedly re-ordered. serde_json has an optional (disabled by default) preserve_order feature for users who want...
It would be great if this implemented support for the postgis crate. If welcomed, I can provided a patch. Note, this would likely have to be `TryFrom` and not `From`...
Currently, we convert `Geojson` to a `Map` to serialize. This seems to be quite wasteful with memory (and probably also compute-time). For instance, when serializing a large set of geoms,...