get_geometry_reference_point(_geom geometry)


Description

Get the reference point of a geometry, used to find its road.

It returns the point itself for a point (the first point for a multipoint), and the point at the middle of the length of a line. For a multiline, the length is the sum of the lengths of its parts, without the gaps between them. The middle of a line is rarely on an intersection, unlike its start.

It returns NULL for an empty geometry.

Parameters

Name Type Mode
_geom geometry IN

Definition