12.07.2015 Views

PostGIS 1.5.8 Manual - Fedora Project Packages GIT repositories

PostGIS 1.5.8 Manual - Fedora Project Packages GIT repositories

PostGIS 1.5.8 Manual - Fedora Project Packages GIT repositories

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>PostGIS</strong> <strong>1.5.8</strong> <strong>Manual</strong>265 / 310Examples--This example drops bounding boxes where the cached box is not correct--The force to ST_AsBinary before applying Box2D forces a recalculation of the box,and Box2D applied to the table geometry always-- returns the cached bounding box.UPDATE sometableSET the_geom = <strong>PostGIS</strong>_DropBBox(the_geom)WHERE Not (Box2D(ST_AsBinary(the_geom)) = Box2D(the_geom));←↪UPDATE sometableSET the_geom = <strong>PostGIS</strong>_AddBBox(the_geom)WHERE Not <strong>PostGIS</strong>_HasBBOX(the_geom);See Also<strong>PostGIS</strong>_AddBBox, <strong>PostGIS</strong>_HasBBox, Box2D7.13.3 <strong>PostGIS</strong>_HasBBox<strong>PostGIS</strong>_HasBBox — Returns TRUE if the bbox of this geometry is cached, FALSE otherwise.Synopsisboolean <strong>PostGIS</strong>_HasBBox(geometry geomA);DescriptionReturns TRUE if the bbox of this geometry is cached, FALSE otherwise. Use <strong>PostGIS</strong>_AddBBox and <strong>PostGIS</strong>_DropBBox tocontrol caching.This method supports Circular Strings and CurvesExamplesSELECT the_geomFROM sometable WHERE <strong>PostGIS</strong>_HasBBox(the_geom) = false;See Also<strong>PostGIS</strong>_AddBBox, <strong>PostGIS</strong>_DropBBox

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!