PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ getClosestEdge

LWT_ISO_EDGE*(* LWT_BE_CALLBACKS_T::getClosestEdge) (const LWT_BE_TOPOLOGY *topo, const LWPOINT *pt, uint64_t *numelems, int fields)

Get closest edge to a given point.

Parameters
topothe topology to act upon
ptthe query point
numelemsoutput parameter, gets number of elements found or UINT64_MAX on error (
See also
lastErrorMessage)
Parameters
fieldsfields to be filled in the returned structure, see LWT_COL_EDGE_* macros
Returns
an array of 1 edges or null in the following cases:
  • no edges are in the topology ("numelems" is set to 0)
  • error ("numelems" is set to UINT64_MAX)

Definition at line 851 of file liblwgeom_topo.h.