ES|QL ST_NPOINTS function
geometry-
Expression of type
geo_point,geo_shape,cartesian_pointorcartesian_shape. Ifnull, the function returnsnull.
Counts the number of points in the supplied geometry.
| geometry | result |
|---|---|
| cartesian_point | integer |
| cartesian_shape | integer |
| geo_point | integer |
| geo_shape | integer |
FROM airport_city_boundaries
| WHERE abbrev == "CPH"
| EVAL points = ST_NPOINTS(city_boundary)
| KEEP abbrev, airport, points
| abbrev:keyword | airport:text | points:integer |
|---|---|---|
| CPH | Copenhagen | 15 |