[postgis-users] Ignore IllegalArgumentException ?

strk at refractions.net strk at refractions.net
Fri Feb 24 03:27:35 PST 2006


On Thu, Feb 23, 2006 at 03:58:02PM -0700, John Taber wrote:
> Is there a way to ignore IllegalArgumentExceptions so a few bad data 
> elements do not block the rest from being updated ?

Find out what is an illegal argument (probably geometrycollection)
and filter them out before running the query:

 intersection(a, b) where geometrytype(a) != 'GEOMETRYCOLLECTION' ...

--strk;

----------------------------------------------------------------------
State-collected Geographic Data is public property !
Reject the INSPIRE directive.
Sign the petition: http://petition.publicgeodata.org



More information about the postgis-users mailing list