

 Amazon Redshift 將不再支援從修補程式 198 開始建立新的 Python UDFs。現有 Python UDF 將繼續正常運作至 2026 年 6 月 30 日。如需詳細資訊，請參閱[部落格文章](https://aws.amazon.com/blogs/big-data/amazon-redshift-python-user-defined-functions-will-reach-end-of-support-after-june-30-2026/)。

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# ST\$1Points
<a name="ST_Points-function"></a>

ST\$1Points 會傳回包含輸入幾何中所有非空點的多點幾何。ST\$1Points 不會移除輸入中重複的點，包括環形幾何的起點和終點。

## 語法
<a name="ST_Points-function-syntax"></a>

```
ST_Points(geom)
```

## 引數
<a name="ST_Points-function-arguments"></a>

 *geom*   
`GEOMETRY` 資料類型的值，或是評估為 `GEOMETRY` 類型的表達式。

## 傳回類型
<a name="ST_Points-function-return"></a>

`MULTIPOINT` 子類型的 `GEOMETRY`。

傳回幾何的空間參考系統識別碼 (SRID) 值與 *geom* 相同。

如果 *geom* 為 Null，則會傳回 Null。

如果 *geom* 為空，則傳回空的多點。

## 範例
<a name="ST_Points-function-examples"></a>

下列 SQL 範例會從輸入幾何建構多點幾何。結果為包含輸入幾何中非空點的多點幾何。

```
SELECT ST_AsEWKT(ST_Points(ST_SetSRID(ST_GeomFromText('LINESTRING(1 0,2 0,3 0)'), 4326)));
```

```
st_asewkt
-------------
SRID=4326;MULTIPOINT((1 0),(2 0),(3 0))
```

```
SELECT ST_AsEWKT(ST_Points(ST_SetSRID(ST_GeomFromText('MULTIPOLYGON(((0 0,1 0,0 1,0 0)))'), 4326)));
```

```
st_asewkt
-------------
SRID=4326;MULTIPOINT((0 0),(1 0),(0 1),(0 0))
```