日本熟妇hd丰满老熟妇,中文字幕一区二区三区在线不卡 ,亚洲成片在线观看,免费女同在线一区二区

ST_LineLocatePoint

返回介于0和1之間的浮點數,表示LineString上與給定Point點最接近的點在其總長度的位置。

語法

float8  ST_LineLocatePoint(geometry  aLinestring , geometry  aPoint);
float8  ST_LineLocatePoint(geography  aLinestring , geography  aPoint);

參數

參數名稱

描述

aLinestring

目標LineString對象。

aPoint

目標Point對象。

描述

該函數在估算地址數量時很有用。

示例

SELECT ST_LineLocatePoint('LINESTRING(0 0,0 2)'::geometry, 'POINT(1 1)'::geometry);
 st_linelocatepoint
--------------------
                0.5
(1 row)

-- geography
SELECT ST_LineLocatePoint('LINESTRING(0 0,0 2)'::geography, 'POINT(1 1)'::geography);
 st_linelocatepoint 
--------------------
 0.5000746195163556
(1 row)