Skip to content

Commit

Permalink
Use geojson conversion traits
Browse files Browse the repository at this point in the history
  • Loading branch information
dabreegster committed Apr 27, 2023
1 parent 54fb5c1 commit 31fda4a
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions rust/overline/src/aggregation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,7 @@ pub fn aggregate_properties(
.par_iter()
.map(|grouped| {
// Copy the geometry
let mut feature = Feature {
geometry: Some(geojson::Geometry {
value: geojson::Value::from(&grouped.geometry),
bbox: None,
foreign_members: None,
}),
properties: None,
bbox: None,
id: None,
foreign_members: None,
};
let mut feature = Feature::from(geojson::Value::from(&grouped.geometry));
// Aggregate each specified property
for (key, aggregation) in &properties {
// Ignore features without this property
Expand Down

0 comments on commit 31fda4a

Please sign in to comment.