Name

ST_InterpolatePoint — Devuelve el valor de la dimensión medida de una geometría en el punto cerrado al punto proporcionado.

Synopsis

float8 ST_InterpolatePoint(geometry linear_geom_with_measure, geometry point);

Descripción

Returns an interpolated measure value of a linear measured geometry at the location closest to the given point.

[Note]

Use this function only for linear geometries with an M component

Disponibilidad: 2.0.0

This function supports 3d and will not drop the z-index.

Ejemplos

SELECT ST_InterpolatePoint('LINESTRING M (0 0 0, 10 0 20)', 'POINT(5 5)');
 ---------------------
         10