Function geojson::ser::to_feature_collection_writer

source ·
pub fn to_feature_collection_writer<W, T>(
    writer: W,
    features: &[T],
) -> Result<()>
where W: Write, T: Serialize,
Expand description

Serialize elements as a GeoJSON FeatureCollection 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.