pyinterp.geometry.geographic.algorithms.num_points

Contents

pyinterp.geometry.geographic.algorithms.num_points#

pyinterp.geometry.geographic.algorithms.num_points(geometry: pyinterp.core.geometry.geographic.Point) → int#
pyinterp.geometry.geographic.algorithms.num_points(geometry: pyinterp.core.geometry.geographic.Segment) → int
pyinterp.geometry.geographic.algorithms.num_points(geometry: pyinterp.core.geometry.geographic.Box) → int
pyinterp.geometry.geographic.algorithms.num_points(geometry: pyinterp.core.geometry.geographic.LineString) → int
pyinterp.geometry.geographic.algorithms.num_points(geometry: pyinterp.core.geometry.geographic.Ring) → int
pyinterp.geometry.geographic.algorithms.num_points(geometry: pyinterp.core.geometry.geographic.Polygon) → int
pyinterp.geometry.geographic.algorithms.num_points(geometry: pyinterp.core.geometry.geographic.MultiPoint) → int
pyinterp.geometry.geographic.algorithms.num_points(geometry: pyinterp.core.geometry.geographic.MultiLineString) → int
pyinterp.geometry.geographic.algorithms.num_points(geometry: pyinterp.core.geometry.geographic.MultiPolygon) → int

Returns the number of points in a geometry.

For linestrings and rings, returns the number of points. For polygons, returns the sum of points in all rings. For multi-geometries, returns the sum of points in all components.

Parameters:

geometry – Geometric object to count points in.

Returns:

The number of points.