MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / parse_linestring

Function parse_linestring

nodedb-spatial/src/wkt.rs:143–149  ·  view source on GitHub ↗
(s: &str)

Source from the content-addressed store, hash-verified

141}
142
143fn parse_linestring(s: &str) -> Option<Geometry> {
144 let inner = strip_parens(s)?;
145 let coords = parse_coord_list(inner)?;
146 Some(Geometry::LineString {
147 coordinates: coords,
148 })
149}
150
151fn parse_polygon(s: &str) -> Option<Geometry> {
152 let inner = strip_parens(s)?;

Callers 1

geometry_from_wktFunction · 0.85

Calls 2

strip_parensFunction · 0.85
parse_coord_listFunction · 0.85

Tested by

no test coverage detected