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>264 / 310Synopsisgeometry <strong>PostGIS</strong>_AddBBox(geometry geomA);DescriptionAdd bounding box to the geometry. This would make bounding box based queries faster, but will increase the size of thegeometry.NoteBounding boxes are automatically added to geometries so in general this is not needed unless the generated boundingbox somehow becomes corrupted or you have an old install that is lacking bounding boxes. Then you need to drop theold and readd.This method supports Circular Strings and CurvesExamplesUPDATE sometableSET the_geom = <strong>PostGIS</strong>_AddBBox(the_geom)WHERE <strong>PostGIS</strong>_HasBBox(the_geom) = false;See Also<strong>PostGIS</strong>_DropBBox, <strong>PostGIS</strong>_HasBBox7.13.2 <strong>PostGIS</strong>_DropBBox<strong>PostGIS</strong>_DropBBox — Drop the bounding box cache from the geometry.Synopsisgeometry <strong>PostGIS</strong>_DropBBox(geometry geomA);DescriptionDrop the bounding box cache from the geometry. This reduces geometry size, but makes bounding-box based queries slower. Itis also used to drop a corrupt bounding box. A tale-tell sign of a corrupt cached bounding box is when your ST_Intersects andother relation queries leave out geometries that rightfully should return true.NoteBounding boxes are automatically added to geometries and improve speed of queries so in general this is not neededunless the generated bounding box somehow becomes corrupted or you have an old install that is lacking boundingboxes. Then you need to drop the old and readd. This kind of corruption has been observed in 8.3-8.3.6 series wherebycached bboxes were not always recalculated when a geometry changed and upgrading to a newer version without adump reload will not correct already corrupted boxes. So one can manually correct using below and readd the bbox ordo a dump reload.This method supports Circular Strings and Curves

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

Saved successfully!

Ooh no, something went wrong!