API reference#
The API reference provides an overview of all public functions in neatnet
.
Network Simplification Routines#
The top-level function that performs complete adaptive simplification of street networks
is the primary API of neatnet
.
|
Top-level workflow for simplifying networks. |
The minimal topology fixing can be done using another routine:
|
Fix road network topology. |
Node Simplification#
Some of the individual components are also exposed as independent functions (note that
most are consumed by neatify()
).
A subset of functions dealing with network nodes:
|
Return geometry with consolidated nodes. |
|
Clean topology of existing LineString geometry by removal of nodes of degree 2. |
|
Adding potentially missing nodes on intersections of individual LineString endpoints with the remaining network. |
Face artifact detection#
A subset dealing with face artifacts:
|
Identify face artifacts in street networks. |
|
Extract face artifacts and return the FAI threshold. |
Gap filling#
Snapping and extending lines in case of imprecise topology:
|
Close gaps in LineString geometry where it should be contiguous. |
|
Extends lines from gdf to itself or target within a set tolerance. |
Internal components#
For debugging purposes, users may use some parts of the internal API used within neatify()
.
|
Extract face artifacts and return the FAI threshold. |
|
Perform an iteration of the simplification procedure which includes: |
|
Simplification of singleton face artifacts – the first simplification step in the procedure detailed in |
|
Simplification of pairs of face artifacts – the second simplification step in the procedure detailed in |
|
Simplification of clusters of face artifacts – the third simplification step in the procedure detailed in |
None of the other functions is intended for public use and their API can change without a warning.