Skip to main content

Crate geoserde

Crate geoserde 

Source
Expand description

crates.io docs.rs

geoserde is a framework for reading and writing geospatial data as Rust types.

  • Geometry — any geo-traits type to write and any DeserializeGeometry type to read, such as geo-types.
  • Properties — your own serde structs, with nested structs, maps, arrays and enums flattened into the flat columns of an attribute table.

File formats are supported by separate crates, such as:

§Traits for your data types

§Traits for file formats

Reading properties needs no trait of geoserde’s own, since a flat row is already a map in serde’s data model: expose it as a MapAccess. For its values, the built-in deserializers in serde::de::value do not read a present value into an Option field, so a format crate needs its own value deserializer to support Option fields.

§Cargo features

Modules§

de
Geometry deserialization from geo_traits sources.
ser
Property serialization into flat key-value tables.