Function geojson::ser::to_feature_writer

source ·
pub fn to_feature_writer<W, T>(writer: W, value: &T) -> Result<()>
where W: Write, T: Serialize,
Expand description

Serialize a single data structure as a GeoJSON Feature into the IO stream.

Note that T must have a column called geometry.

§Errors

Serialization can fail if T’s implementation of Serialize decides to fail, or if T contains a map with non-string keys.