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

PostGIS trac at osgeo.org
Fri Feb 5 00:25:33 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 ddegasperi):

 Replying to [comment:1 pramsey]:
 > Non possible.
 >
 > The '':text entry first gets passed into the text parsing routines which
 is where the failure actually occurs, not in st_isvalid. We have had
 internal arguments many times about where validity checking should occur,
 and the current situation is that trivially invalid geometries (1-point
 lines, unclosed polygons) are failed during parsing.
 >
 > IMO, they shouldn't fail, but that's a personal opinion, not a consensus
 one.

 Should shp2pgsql be allowed to insert trivially invalid geometries?

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/408#comment:3>
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