[postgis-devel] Re: [postgis-users] how to identify the_geom that cause : RelateOperation called withLWGEOMCOLLECTION type
Kevin Neufeld
kneufeld at refractions.net
Mon Dec 8 10:47:18 PST 2008
Ghislain Geniaux wrote:
> otm=# create table info_nonvoue1 as
> otm-# select b.id_parc, z.niv from bd_dispo_finalc as b, ZS2c as z
> otm-# where z.niv=1 and intersects(centroid(b.the_geom),z.the_geom) and
> b.the_geom && z.the_geom and isvalid(b.the_geom) and isvalid(z.the_geom);
> ERROR: Relate Operation called with a LWGEOMCOLLECTION type. This is
> unsupported
> otm=#
>
Mark,
Is it fairly trivial to change the elog in lwgeom_geos.c to your fancy errhint so that when the error is thrown the user
has an idea where the problem occurs?
The attached patch seems to work, but I got lost when trying to limit the output of the LWGEOMCOLLECTION to the first
say 128 characters of the WKT representation.
Cheers,
Kevin
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: lwgeom_geos_hint.patch
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20081208/a0117e9d/attachment.ksh>
More information about the postgis-devel
mailing list