メインコンテンツへスキップ

Geometry

Geometry 関数では、POLYGON、LINESTRING、MULTIPOLYGON、MULTILINESTRING、RING、POINT などの幾何型の周長と面積を計算できます。ジオメトリは Geometry 型で使用します。入力値が NULL の場合、以下のすべての関数は 0 を返します。

perimeterCartesian

デカルト座標系 (平面) における、指定されたGeometryオブジェクトの周長を計算します。 構文
引数
  • geom — Geometry オブジェクト。Geometry
戻り値
  • 数値 — 座標系の単位で表したオブジェクトの周長。Float64
Query
Response

areaCartesian

指定されたGeometryオブジェクトの面積をデカルト座標系で計算します。 構文
引数
  • geom — Geometryオブジェクト。Geometry
戻り値
  • 数値 — オブジェクトの面積 (座標系の単位) 。Float64
Query
Response

perimeterSpherical

球面上の Geometry オブジェクトの周長を計算します。 構文
引数
  • geom — Geometryオブジェクト。Geometry
戻り値
Query
Response

areaSpherical

球面上のGeometryオブジェクトの面積を計算します。 構文
引数 戻り値
Query
Response
最終更新日 2026年7月2日