Re: difference between overlap and intersect using geometric types of postgresql - Mailing list pgsql-general

From Tom Lane
Subject Re: difference between overlap and intersect using geometric types of postgresql
Date
Msg-id 24345.1046654859@sss.pgh.pa.us
Whole thread Raw
In response to difference between overlap and intersect using geometric types of postgresql  (dhoubrechts <dhoubrechts@cybernet.be>)
List pgsql-general
dhoubrechts <dhoubrechts@cybernet.be> writes:
> Can somebody help me. I can't understand the difference between overlap
> of polygon and intersect of path.

A little looking in the code finds:

/*-----------------------------------------------------------------
 * Determine if polygon A overlaps polygon B by determining if
 * their bounding boxes overlap.
 *
 * XXX ought to do a more correct check?
 *-----------------------------------------------------------------*/
Datum
poly_overlap(PG_FUNCTION_ARGS)


Feel free to submit a better implementation ...

            regards, tom lane

pgsql-general by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: transparent use of pre-aggregated value for very large datasets
Next
From: Dennis Gearon
Date:
Subject: Re: function problem plpgsql