> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wherobots.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GeoSeries.to_crs

> Returns a GeoSeries with all geometries transformed to a new coordinate reference system.

Returns a `GeoSeries` with all geometries transformed to a new
coordinate reference system.

Transform all geometries in a GeoSeries 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

```python theme={"system"}
to_crs(crs: Union[Any, None] = None, epsg: Union[int, None] = None) -> GeoSeries
```

## Parameters

<ParamField path="crs" type="Union[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.
</ParamField>

<ParamField path="epsg" type="Union[int, None]" default="None">
  EPSG code specifying output projection.
</ParamField>

## Returns

<ResponseField name="return" type="GeoSeries" />

## Examples

```python theme={"system"}
>>> from shapely.geometry import Point
>>> from sedona.spark.geopandas import GeoSeries
>>> geoseries = GeoSeries([Point(1, 1), Point(2, 2), Point(3, 3)], crs=4326)
>>> geoseries.crs
<Geographic 2D CRS: EPSG:4326>
Name: WGS 84
Axis Info [ellipsoidal]:
- Lat[north]: Geodetic latitude (degree)
- Lon[east]: Geodetic longitude (degree)
Area of Use:
- name: World
- bounds: (-180.0, -90.0, 180.0, 90.0)
Datum: World Geodetic System 1984
- Ellipsoid: WGS 84
- Prime Meridian: Greenwich
```

```python theme={"system"}
>>> geoseries = geoseries.to_crs(3857)
>>> print(geoseries)
0    POINT (111319.491 111325.143)
1    POINT (222638.982 222684.209)
2    POINT (333958.472 334111.171)
dtype: geometry
>>> geoseries.crs
<Projected CRS: EPSG:3857>
Name: WGS 84 / Pseudo-Mercator
Axis Info [cartesian]:
- X[east]: Easting (metre)
- Y[north]: Northing (metre)
Area of Use:
- name: World - 85°S to 85°N
- bounds: (-180.0, -85.06, 180.0, 85.06)
Coordinate Operation:
- name: Popular Visualisation Pseudo-Mercator
- method: Popular Visualisation Pseudo Mercator
Datum: World Geodetic System 1984
- Ellipsoid: WGS 84
- Prime Meridian: Greenwich
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.