View a markdown version of this page

Loading a column of the GEOMETRY or GEOGRAPHY data type - Amazon Redshift

Amazon Redshift will no longer support the use of Python UDFs after June 30, 2026. We will start enforcing it in phases. For more information on the details of Python end of life and migration options, see the blog post that was published on June 30, 2025.

Loading a column of the GEOMETRY or GEOGRAPHY data type

You can COPY to GEOMETRY or GEOGRAPHY columns from data in a character-delimited text file, such as a CSV file. The data must be in the hexadecimal form of the well-known binary format (either WKB or EWKB) or the well-known text format (either WKT or EWKT) and fit within the maximum size of a single input row to the COPY command. For more information, see COPY.

For information about how to load from a shapefile, see Loading a shapefile into Amazon Redshift.

For more information about the GEOMETRY or GEOGRAPHY data type, see Querying spatial data in Amazon Redshift.