Skip to content

GEOS 3.7.1 to 3.7.2 tightening of validity needed for operations #1121

Closed
@rsbivand

Description

@rsbivand

As rgeos maintainer (https://r-forge.r-project.org/projects/rgeos/), I was asked to look for causes of CRAN check failures for BayesX, birdring and inlmisc immediately following a system upgrade from GEOS 3.7.1 to 3.7.2 (the same problem is present in GEOS 3.8.0dev). I'm posting this issue to provide a reprex, and to document the resolution for rgeos 0.5-1 (rev. 603). The two WKT files (based on the error in inlmisc) are in this zipfile:
WKTs.zip

The initial script for CRAN releases of rgeos and sf is:
GEOS_3.7.2_3.7.1_test.zip

This gives the following output for the CRAN releases for GEOS 3.7.1 and GEOS 3.7.2:
script_output_3.7.1.txt
script_output_3.7.2.txt

As can be seen, GEOS 3.7.2 is stricter on topological operations than 3.7.1 was. This leads to failures which had not previously been seen for invalid geometries. On the hunch that a zero-width buffer might help, rgeos 0.5-1 (rev. 603):

install.packages("rgeos", repos="http://R-Forge.R-project.org")

and a modified script:
GEOS_3.7.2_3.7.1_test_2L.zip

now pass, informing that a geometry was invalid and that a zero-width buffer repair has been attempted; the issues in sf have not been addressed. I do not know whether other topology operations are affected, or whether predicates are affected (they do not seem to be so far).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions