Returns the shortest LineString between two geometries. The line starts on geom1 and ends on geom2. If either geometry is empty, the function returns null.
Signatures
ST_ShortestLine(geom1: Geometry, geom2: Geometry)
Parameters
Geometry
required
The geometry where the shortest line starts.
Geometry
required
The geometry where the shortest line ends.
Return type
The shortest LineString connecting the two geometries.