7

The following query returns this result:

select count(*) from a , b where a.geom && b.geom;

     count 
    -------
     66514

On a postgis 2 database.

What does the logical operator AND (&&) between two geometry columns return?

What about the other operators?

Edit: After a quick test it seems it returns all the rows where the bounding boxes of both the geometries overlap with each other

8

Array Functions and Operators (Postgres vs PostGIS)

edit: Returns TRUE if A's 2D bounding box intersects B's 2D bounding box.

enter image description here

enter image description here

Postgres Operator http://www.postgresql.org/docs/8.2/static/functions-array.html

Postgis Operators http://www.postgis.org/documentation/manual-2.0/reference.html#Operators

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.