shapely.set_srid#
- set_srid(geometry, srid, **kwargs)#
Return a geometry with its SRID set.
- Parameters:
- geometryGeometry or array_like
Geometry or geometries to set the SRID of.
- sridint
The SRID to set on the geometry.
- **kwargs
See NumPy ufunc docs for other keyword arguments.
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