ST_Points

更新时间:
复制 MD 格式

Returns a MultiPoint object containing all the vertices of the input Geometry object.

Syntax

geometry  ST_Points(geometry  geom);

Parameters

Parameter Name

Description

geom

The target Geometry object.

Description

  • This function does not remove duplicate points from the input object, including the start and end points of a circular geometry object.

    You can use the ST_RemoveRepeatedPoints function to remove the duplicate points.

  • If M and Z coordinates exist, they are preserved.

  • This function supports CircularString and Curve geometry objects.

Examples

Basic usage:

SELECT ST_AsText(ST_Points('LINESTRING(0 0,2 2)'::geometry));
      st_astext
---------------------
 MULTIPOINT(0 0,2 2)
(1 row)