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