[postgis-devel] [PostGIS] #408: Catch "Exception in LWGEOM2GEOS" in ST_IsValid

PostGIS trac at osgeo.org
Thu Feb 4 13:40:09 PST 2010


#408: Catch "Exception in LWGEOM2GEOS" in ST_IsValid
--------------------------+-------------------------------------------------
  Reporter:  ddegasperi   |       Owner:  pramsey
      Type:  enhancement  |      Status:  new    
  Priority:  medium       |   Milestone:         
 Component:  postgis      |     Version:  1.4.X  
Resolution:               |    Keywords:         
--------------------------+-------------------------------------------------
Comment (by kneufeld):

 Replying to strk:
 > I might be missing something, but wouldn't an exception [[BR]]
 > from LWGEOM2GEOS mean unambiguosly that the geometry [[BR]]
 > is invalid ? [[BR]]
 > [[BR]]
 > ... thinkin loud ... could also be an OOM actually ... [[BR]]
 > [[BR]]
 > --strk;[[BR]]


 Yes, an exception is thrown in LWGEOM2GEOS, but there is also an exception
 in the parser...


 {{{
 postgis=# BEGIN;
 BEGIN
 postgis=# SELECT
 '0105000020E0670000010000000102000020E06700000100000016DA52BA62A04141FFF3AD290B735241'::geometry;
 ERROR:  geometry requires more points
 postgis=# SELECT 'some other sql statement';
 ERROR:  current transaction is aborted, commands ignored until end of
 transaction block
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/408#comment:2>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-devel mailing list