この関数は、指定されたディメンションのバウンディングボックスの最小値を照会するために使用されます。
構文
float8 ST_XMin(boxndf box);
float8 ST_YMin(boxndf box);
float8 ST_ZMin(boxndf box);
timestamp ST_TMin(boxndf box);
パラメーター
パラメーター | 説明 |
box | 指定したディメンションの最小値をクエリするバウンディングボックス。 |
説明
この関数を使用すると、指定したディメンションのバウンディングボックスの最小値をクエリできます。
境界ボックスに指定されたx、y、またはz次元がない場合、この関数は
NaN
を返します。境界ボックスに指定されたt次元がない場合、この関数は
-infinity
を返します。
例:
select ST_xmin(ST_MakeBox2dt(0,0,'2000-01-01'::timestamp, 20,20, '2020-01-01'::timestamp));
st_xmin
---------
0
select ST_zmin(ST_MakeBox2dt(0,0,'2000-01-01'::timestamp, 20,20, '2020-01-01'::timestamp));
st_zmin
---------
NaN
select ST_tmin(ST_MakeBox2d(0,0, 20,20));
st_tmin
-----------
-infinity