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

> Return a GeoSeries with scaled geometries.

Return a `GeoSeries` with scaled geometries.

Each geometry is scaled independently around its origin. The default
origin is the center of the geometry's bounding box.

## Signature

```python theme={"system"}
scale(xfact=1.0, yfact=1.0, zfact=1.0, origin='center')
```

## Parameters

<ParamField path="xfact" type="float" default="1.0">
  Scaling factor for the x dimension.
</ParamField>

<ParamField path="yfact" type="float" default="1.0">
  Scaling factor for the y dimension.
</ParamField>

<ParamField path="zfact" type="float" default="1.0">
  Scaling factor for the z dimension.
</ParamField>

<ParamField path="origin" type="(center, centroid)" default="'center'">
  The scaling origin. `"center"` uses each geometry's bounding-box
  center and `"centroid"` uses each geometry's centroid. A 2D or
  3D Shapely Point or coordinate tuple may also be supplied. The z
  origin is 0 for keyword and 2D origins.
</ParamField>

## Returns

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

<Note>
  Results for mixed 2D/3D `GeometryCollection` objects, M or ZM
  ordinates, NaN Z coordinates, non-finite factors, and non-finite
  origin coordinates 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
>>> from sedona.spark.geopandas import GeoSeries
>>> s = GeoSeries([Point(1, 2), Point(-1, -2)])
>>> s.scale(xfact=2, yfact=3, origin=(0, 0))
0      POINT (2 6)
1    POINT (-2 -6)
dtype: geometry
```


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