ST_SnapToGrid( ST_Point , DOUBLE, DOUBLE, DOUBLE, DOUBLE) method

Returns a copy of the geometry with all points snapped to the specified grid.

Syntax

geometry-expression.ST_SnapToGrid( ST_Point origin, DOUBLE cell_size_x, DOUBLE cell_size_y, DOUBLE cell_size_z, DOUBLE cell_size_m)

Parameters

Returns

ST_Geometry Returns the geometry with all points snapped to the grid.

Examples

Standards

SQL/MM (ISO/IEC 13249-3: 2006) Vendor extension