> ## 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.

# GeoDataFrame.translate

> Return a GeoSeries with translated geometries.

Return a `GeoSeries` with translated geometries.

Each geometry is shifted by constant offsets along its coordinate
dimensions.

## Signature

```python theme={"system"}
translate(xoff=0.0, yoff=0.0, zoff=0.0)
```

## Parameters

<ParamField path="xoff" type="float" default="0.0">
  Offset along the x dimension.
</ParamField>

<ParamField path="yoff" type="float" default="0.0">
  Offset along the y dimension.
</ParamField>

<ParamField path="zoff" type="float" default="0.0">
  Offset along the z dimension for geometries that have z
  coordinates.
</ParamField>

## Returns

<ResponseField name="return" type="GeoSeries">
  The translated geometries.
</ResponseField>

<Note>
  Two-dimensional geometries remain two-dimensional. Results for mixed
  2D/3D `GeometryCollection` objects, M or ZM ordinates, NaN z
  coordinates, and non-finite offsets may differ from GeoPandas because
  Sedona uses JTS while GeoPandas uses Shapely. This method applies
  Sedona's distributed semantics and does not materialize geometries
  locally to emulate Shapely.
</Note>

## Examples

```python theme={"system"}
>>> from shapely.geometry import Point, LineString, Polygon
>>> from sedona.spark.geopandas import GeoSeries
>>> s = GeoSeries(
...     [
...         Point(1, 1),
...         LineString([(1, -1), (1, 0)]),
...         Polygon([(3, -1), (4, 0), (3, 1)]),
...     ]
... )
>>> s
0                         POINT (1 1)
1              LINESTRING (1 -1, 1 0)
2    POLYGON ((3 -1, 4 0, 3 1, 3 -1))
dtype: geometry
```

```python theme={"system"}
>>> s.translate(2, 3)
0                       POINT (3 4)
1            LINESTRING (3 2, 3 3)
2    POLYGON ((5 2, 6 3, 5 4, 5 2))
dtype: geometry
```


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