[postgis-tickets] [PostGIS] #4085: ERROR: GEOSIntersects: IllegalArgumentException: RobustDeterminant encountered non-finite numbers

PostGIS trac at osgeo.org
Thu May 10 15:57:49 PDT 2018


#4085: ERROR:  GEOSIntersects: IllegalArgumentException: RobustDeterminant
encountered non-finite numbers
-----------------------+--------------------------------
  Reporter:  Gluchich  |      Owner:  pramsey
      Type:  defect    |     Status:  new
  Priority:  medium    |  Milestone:  PostGIS 2.4.5
 Component:  postgis   |    Version:  2.4.x
Resolution:            |   Keywords:  non-finite numbers
-----------------------+--------------------------------

Comment (by dbaston):

 You can write your own wrapper function to catch the exception and return
 NULL:


 {{{
 CREATE OR REPLACE FUNCTION ST_Intersection_NullOnError(geometry, geometry)
 RETURNS geometry AS
 $$
 BEGIN
 RETURN ST_Intersection($1, $2);
 EXCEPTION
 WHEN OTHERS THEN
 RETURN NULL;
 END
 $$ LANGUAGE plpgsql;

 }}}

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4085#comment:1>
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-tickets mailing list