shapely.set_srid#

set_srid(geometry, srid, **kwargs)#

Returns a geometry with its SRID set.

Parameters
geometryGeometry or array_like
sridint
**kwargs

For other keyword-only arguments, see the NumPy ufunc docs.

See also

get_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