Name

PostGIS_AddBBox — 도형에 경계 상자를 추가합니다.

Synopsis

geometry PostGIS_AddBBox(geometry geomA);

설명

도형에 경계 상자를 추가합니다. 이렇게 하면 경계 상자 기반 쿼리의 속도가 빨라지지만, 도형의 용량은 늘어날 것입니다.

[Note]

Bounding boxes are automatically added to geometries so in general this is not needed unless the generated bounding box somehow becomes corrupted or you have an old install that is lacking bounding boxes. Then you need to drop the old and readd.

This method supports Circular Strings and Curves.

예시

UPDATE sometable
 SET geom =  PostGIS_AddBBox(geom)
 WHERE PostGIS_HasBBox(geom) = false;

참고

PostGIS_DropBBox, PostGIS_HasBBox