ST_WrapX — Envolve uma geometria em torno de um valor X.
geometry ST_WrapX(
geometry geom, float8 wrap, float8 move)
;
This function splits the input geometries and then moves every resulting component falling on the right (for negative 'move') or on the left (for positive 'move') of given 'wrap' line in the direction specified by the 'move' parameter, finally re-unioning the pieces together.
Isto é útil para "recenter" entrada de long-lat para ter características de interesse não gerados de um lado para o outro. |
Availability: 2.3.0 requires GEOS
This function supports 3d and will not drop the z-index.
-- Move all components of the given geometries whose bounding box -- falls completely on the left of x=0 to +360 select ST_WrapX(geom, 0, 360); -- Move all components of the given geometries whose bounding box -- falls completely on the left of x=-30 to +360 select ST_WrapX(geom, -30, 360);