---
title: getSrid (Geography)
description: "Geography.getSrid method in PySpark: Returns the SRID of Geography."
canonical_url: https://docs.databricks.com/aws/en/pyspark/reference/classes/geography/getSrid
---

# getSrid (Geography)

Returns the SRID of Geography.

## Syntax

```
getSrid()
```

## Returns

`int`

## Examples

```python
from pyspark.databricks.sql import functions as dbf
df = spark.createDataFrame([ {'geogwkt': '''POINT(17 7)'''} ])
g = df.select(dbf.st_geogfromwkt(df.geogwkt).alias("geog")).head().geog
g.getSrid()
# 4326
```
