Function geojson::ser::to_feature_collection_byte_vec
source · pub fn to_feature_collection_byte_vec<T>(values: &[T]) -> Result<Vec<u8>>where
T: Serialize,
Expand description
Serialize elements to a GeoJSON FeatureCollection byte vector.
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.