You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To fix this, the user needs to wrap the Value in a Geometry and GeoJson, which seems unnecessary:
letmut v = vec![];for result in results {
v.push(vec![record.longitude, record.latitude]);}println!("{}", geojson::GeoJson::Geometry(geojson::Geometry::new(geojson::Value::MultiPoint(v))));
In my original code snippet, the {} syntax in the println! call indicates we're going to call Display on the provided geojson::Value, so this is the relevant code:
As written, we're currently delegating the Display representation of the Value to the Debug representation, as indicated by the {:?} syntax. We should change this to instead print the GeoJSON representation
This code:
Prints:
To fix this, the user needs to wrap the Value in a Geometry and GeoJson, which seems unnecessary:
The text was updated successfully, but these errors were encountered: