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

# ST_MakePoint (Python)

> Generate a 2D, 3D Z or 4D ZM Point geometry.

Generate a 2D, 3D Z or 4D ZM Point geometry. If z is None then a 2D point is generated.
This function doesn't support M coordinates for creating a 4D ZM Point in Dataframe API.

SQL reference: [`ST_MakePoint`](/reference/wherobots-db/geometry-data/constructors/ST_MakePoint)

## Signature

```python theme={"system"}
from sedona.spark.sql.st_constructors import ST_MakePoint

ST_MakePoint(
    x: ColumnOrNameOrNumber,
    y: ColumnOrNameOrNumber,
    z: Optional[ColumnOrNameOrNumber] = None,
    m: Optional[ColumnOrNameOrNumber] = None,
) -> Column
```

## Parameters

<ParamField path="x" type="ColumnOrNameOrNumber" required>
  Either a number or numeric column representing the X coordinate of a point.
</ParamField>

<ParamField path="y" type="ColumnOrNameOrNumber" required>
  Either a number or numeric column representing the Y coordinate of a point.
</ParamField>

<ParamField path="z" type="Optional[ColumnOrNameOrNumber]" default="None">
  Either a number or numeric column representing the Z coordinate of a point, if None then a 2D point is generated, defaults to None
</ParamField>

<ParamField path="m" type="Optional[ColumnOrNameOrNumber]" default="None">
  Either a number or numeric column representing the M coordinate of a point, if None then a point without M coordinate is generated, defaults to None
</ParamField>

## Returns

<ResponseField name="return" type="Column">
  Point geometry column generated from the coordinate values.
</ResponseField>


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