File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -265,9 +265,7 @@ impl Contour {
265265 /// ```
266266 pub fn to_geojson ( & self ) -> geojson:: Feature {
267267 let mut properties = geojson:: JsonObject :: with_capacity ( 1 ) ;
268- // REVIEW: This maintains existing behavior, but should we rename
269- // `value` to something more explicable, like `threshold`?
270- properties. insert ( "value" . to_string ( ) , self . threshold . into ( ) ) ;
268+ properties. insert ( "threshold" . to_string ( ) , self . threshold . into ( ) ) ;
271269
272270 geojson:: Feature {
273271 bbox : None ,
Original file line number Diff line number Diff line change 3838//! [6., 7.5]
3939//! ]]],
4040//! },
41- //! "properties": {"value ": 0.5},
41+ //! "properties": {"threshold ": 0.5},
4242//! });
4343//!
4444//! assert_eq!(res[0].to_geojson(), std::convert::TryFrom::try_from(output).unwrap());
You can’t perform that action at this time.
0 commit comments