すべてのプロダクト
Search
ドキュメントセンター

PolarDB:ST_{X | Y | Z | T} 最小

最終更新日:Jul 01, 2024

この関数は、指定されたディメンションのバウンディングボックスの最小値を照会するために使用されます。

構文

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