Establish topology from any wk-handleable geometry
Source:R/establish_topology.R
establish_topology.RdEstablish topology from any wk-handleable geometry
Details
Vertices are minted as-is from the input coordinates. No snapping or deduplication is performed - the pool represents the exact truth of the input geometry. Use merge_coincident() afterwards to discover/establish shared topology.
Segments track their feature origin via .feature attribute,
enabling discovery of shared boundaries and neighbour relations.
Segments also carry a minted .path id - one id per input ring or
linestring - with a sidecar table (see pool_paths()) recording each
path's feature, part and ring identity as captured from
wk::wk_coords(). This provenance makes cycles, ring roles and
feature structure recoverable exactly, in input order and input
winding: see find_cycles(), classify_cycles() and
cycles_to_wkt().
The coordinate reference system of the input (as reported by
wk::wk_crs()) and its geodesic flag (wk::wk_is_geodesic()) are
captured on the pool and travel with it through subsetting, merging
and compaction, and back out through the round-trip functions.