[postgis-tickets] r14686 - #3437, ST_Intersects incorrect for MultiPoints

Sandro Santilli strk at keybit.net
Wed Feb 24 08:40:56 PST 2016


On Wed, Feb 24, 2016 at 08:35:19AM -0800, Daniel Baston wrote:

> +
> +	/*
> +	 * Avoid creating a PreparedPoint around a Point or a MultiPoint.
> +	 * Consider changing this behavior in the future if supported GEOS
> +	 * versions correctly handle prepared points and multipoints and
> +	 * provide a performance benefit.
> +	 * See https://trac.osgeo.org/postgis/ticket/3437
> +	 */
> +	if (lwgeom_get_type(lwgeom) == POINTTYPE || lwgeom_get_type(lwgeom) == MULTIPOINTTYPE)
> +		return LW_FAILURE;

A single compile-time conditional here could be nice.
GEOS-3.6.0 is guaranteed to get this right.

--strk;


More information about the postgis-tickets mailing list