[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postgis-users
Subject:    Re: [postgis-users] Ignore IllegalArgumentException ?
From:       strk () refractions ! net
Date:       2006-02-24 11:27:35
Message-ID: 20060224112735.GB56815 () keybit ! net
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic