PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ getNodeWithinDistance2D

LWT_ISO_NODE*(* LWT_BE_CALLBACKS_T::getNodeWithinDistance2D) (const LWT_BE_TOPOLOGY *topo, const LWPOINT *pt, double dist, int *numelems, int fields, int limit)

Get nodes within distance by point.

Parameters
topothe topology to act upon
ptthe query point
distthe distance
numelemsoutput parameter, gets number of elements found if the return is not null, otherwise see
Returns
section for semantic. TODO: Should be uint64 to match SPI_processed
Parameters
fieldsfields to be filled in the returned structure, see LWT_COL_NODE_* macros
limitmax number of nodes to return, 0 for no limit, -1 to only check for existance if a matching row.
Returns
an array of nodes or null in the following cases:
  • limit=-1 ("numelems" is set to 1 if found, 0 otherwise)
  • limit>0 and no records found ("numelems" is set to 0)
  • error ("numelems" is set to -1)

Definition at line 228 of file liblwgeom_topo.h.