Returns the number of points (vertices) in a geography object.
Signatures
ST_NPoints (A: Geography)
Parameters
The geography whose vertices are counted.
Return type
The number of vertices in the geography.
Example
SELECT ST_NPoints(ST_GeogFromWKT('LINESTRING (0 0, 1 1, 2 2)'));