Ticket #987 (closed defect: fixed)

Opened 2 years ago

Last modified 18 months ago

Bad handling of Inf values in GEOS

Reported by: pramsey Owned by: pramsey
Priority: medium Milestone: PostGIS 1.5.4
Component: postgis Version: 1.5.X
Keywords: Cc:

Description

See  http://postgis.refractions.net/pipermail/postgis-users/2011-February/028999.html

Older versions of GEOS (pre 3.3) will loop infinitely when handed some coordinates with Inf values in them. Proj4 sometimes generates those values. The solution (?) in this case is to patch PostGIS to not pass the values through to GEOS.

Attachments

inf.patch Download (0.5 KB) - added by pramsey 2 years ago.
Inf testing in the GEOS handler
inf2.patch Download (3.2 KB) - added by pramsey 2 years ago.
Add regression tests and isvalid shortcuts
inf3.patch Download (2.6 KB) - added by pramsey 2 years ago.

Change History

Changed 2 years ago by pramsey

Inf testing in the GEOS handler

Changed 2 years ago by strk

That check would make ST_IsValid throw an exception rather than returning false. Note that ST_IsValidReason will tell you it's due to NaN / Inf ...

Changed 2 years ago by pramsey

Add regression tests and isvalid shortcuts

Changed 2 years ago by pramsey

Changed 2 years ago by pramsey

  • milestone changed from PostGIS 1.5.3 to PostGIS 2.0.0

Committed to 1.5 branch at r7344, should be committed to 2.0 also.

Changed 2 years ago by robe

  • milestone changed from PostGIS 2.0.0 to PostGIS 1.5.3

Changed 2 years ago by robe

  • milestone changed from PostGIS 1.5.3 to PostGIS 1.5.4

Changed 18 months ago by pramsey

  • status changed from new to closed
  • resolution set to fixed

This seems to have been applied to trunk also. Closing out.

Note: See TracTickets for help on using tickets.