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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>PostGIS</strong> <strong>1.5.8</strong> <strong>Manual</strong>161 / 310Synopsisboolean ~( geometry A , geometry B );DescriptionThe ~ operator returns TRUE if the bounding box of geometry A completely contains the bounding box of geometry B.NoteThis operand will make use of any indexes that may be available on the geometries.ExamplesSELECT tbl1.column1, tbl2.column1, tbl1.column2 ~ tbl2.column2 AS containsFROM( VALUES(1, ’LINESTRING (0 0, 3 3)’::geometry)) AS tbl1,( VALUES(2, ’LINESTRING (0 0, 4 4)’::geometry),(3, ’LINESTRING (1 1, 2 2)’::geometry),(4, ’LINESTRING (0 0, 3 3)’::geometry)) AS tbl2;column1 | column1 | contains---------+---------+----------1 | 2 | f1 | 3 | t1 | 4 | t(3 rows)See Also@, &&7.7.13 ~=~= — Returns TRUE if A’s bounding box is the same as B’s.Synopsisboolean ~=( geometry A , geometry B );DescriptionThe ~= operator returns TRUE if the bounding box of geometry/geography A is the same as the bounding box of geometry/geographyB.NoteThis operand will make use of any indexes that may be available on the geometries.

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

Saved successfully!

Ooh no, something went wrong!