snippets/snippets/geo_line_strings_simple.rs
//! DO NOT EDIT! This file was autogenerated by `docs/snippets/build.rs`. The original is in `/home/runner/work/rerun/rerun/docs/snippets/all/archetypes/geo_line_strings_simple.rs`.
//! Log a simple geospatial line string.
pub fn main(_args: &[String]) -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_geo_line_strings").spawn()?;
rec.log(
"colorado",
&rerun::GeoLineStrings::from_lat_lon([[
[41.0000, -109.0452],
[41.0000, -102.0415],
[36.9931, -102.0415],
[36.9931, -109.0452],
[41.0000, -109.0452],
]])
.with_radii([rerun::Radius::new_ui_points(2.0)])
.with_colors([rerun::Color::from_rgb(0, 0, 255)]),
)?;
Ok(())
}