shapely.get_y#
- get_y(point, **kwargs)#
Return the y-coordinate of a point.
- Parameters:
- pointGeometry or array_like
Non-point geometries will result in NaN being returned.
- **kwargs
See NumPy ufunc docs for other keyword arguments.
Examples
>>> import shapely >>> from shapely import MultiPoint, Point >>> shapely.get_y(Point(1, 2)) 2.0 >>> shapely.get_y(MultiPoint([(1, 1), (1, 2)])) nan