Skip to main content
Transform geometries to a new coordinate reference system. Transform all geometries in an active geometry column to a different coordinate reference system. The crs attribute on the current GeoSeries must be set. Either crs or epsg may be specified for output. This method will transform all points in all objects. It has no notion of projecting entire geometries. All segments joining points are assumed to be lines in the current projection, not geodesics. Objects crossing the dateline (or other projection boundary) will have undesirable behavior.

Signature

Parameters

Any | None
default:"None"
The value can be anything accepted by pyproj.CRS.from_user_input() <pyproj.crs.CRS.from_user_input>, such as an authority string (eg “EPSG:4326”) or a WKT string.
int | None
default:"None"
EPSG code specifying output projection.
bool
default:"False"
Whether to return a new GeoDataFrame or do the transformation in place.

Returns

GeoDataFrame
See also
  • GeoDataFrame.set_crs: assign CRS without re-projection

Examples