shapely.get_srid#
- get_srid(geometry, **kwargs)#
Returns the SRID of a geometry.
Returns -1 for not-a-geometry values.
- Parameters:
- geometryGeometry or array_like
- **kwargs
For other keyword-only arguments, see the NumPy ufunc docs.
See also
Examples
>>> from shapely import Point >>> point = Point(0, 0) >>> get_srid(point) 0 >>> with_srid = set_srid(point, 4326) >>> get_srid(with_srid) 4326