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

Function parse_point

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

Source from the content-addressed store, hash-verified

135}
136
137fn parse_point(s: &str) -> Option<Geometry> {
138 let inner = strip_parens(s)?;
139 let coord = parse_coord(inner)?;
140 Some(Geometry::Point { coordinates: coord })
141}
142
143fn parse_linestring(s: &str) -> Option<Geometry> {
144 let inner = strip_parens(s)?;

Callers 1

geometry_from_wktFunction · 0.85

Calls 2

strip_parensFunction · 0.85
parse_coordFunction · 0.85

Tested by

no test coverage detected