get_or_create_edge_node(_point geometry, _create boolean)


Description

Get the node of the given start or end point of an edge: the closest node less than 0.5 m from it, or the node with the lowest id if several nodes are at the same distance.

If there is no node and _create is True, the node is created (its id can be NULL if a node already exists at the same place). Used by the trigger function before_edge_insert_or_update.

Parameters

Name Type Mode
_point geometry IN
_create boolean IN
node_id integer TABLE
node_geom geometry TABLE
is_created boolean TABLE

Definition