Spatial functions - Amazon Redshift
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Amazon Redshift will no longer support the creation of new Python UDFs starting November 1, 2025. If you would like to use Python UDFs, create the UDFs prior to that date. Existing Python UDFs will continue to function as normal. For more information, see the blog post .

Spatial functions

Relationships between geometry objects are based on the Dimensionally Extended nine-Intersection Model (DE-9IM). This model defines predicates such as equals, contains, and covers. For more information about the definition of spatial relationships, see DE-9IM in Wikipedia.

For more information about how to use spatial data with Amazon Redshift, see Querying spatial data in Amazon Redshift.

Amazon Redshift provides spatial functions that work with GEOMETRY and GEOGRAPHY data types. The following lists the functions that support the GEOGRAPHY data type:

The following lists the full set of spatial functions supported by Amazon Redshift.