All Products
Search
Document Center

PolarDB:ST_XMax

Last Updated:Jan 04, 2026

Returns the maximum X value of a raster object.

Syntax

float8 ST_XMax(raster raster_obj)

Parameters

Parameter name Description
raster_obj The raster object.

Description

If the raster object is georeferenced, this function returns the maximum X coordinate. Otherwise, it returns the width of the raster object minus 1.

Example

select ST_XMax(rast)
from raster_table;

 st_xmax  
----------
      121