georust / geojson

Library for serializing the GeoJSON vector GIS file format
https://crates.io/crates/geojson
Apache License 2.0
280 stars 60 forks source link

Add a conversion from Vec<Feature> to GeoJson #227

Closed dabreegster closed 1 year ago

dabreegster commented 1 year ago

As discussed in Discord, this is more convenient than let gj = geojson::GeoJson::from(features.into_iter().collect::<geojson::FeatureCollection>()); or let gj:GeoJson = FeatureCollection::from_iter(vec_of_geojson_features.into_iter()).into(); or similar

bors[bot] commented 1 year ago

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here. For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.