shapely.get_srid

Contents

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

See NumPy ufunc docs for other keyword arguments.

See also

set_srid

Examples

>>> from shapely import Point
>>> point = Point(0, 0)
>>> get_srid(point)
0
>>> with_srid = set_srid(point, 4326)
>>> get_srid(with_srid)
4326