Geom API: condition tests for changes to MakeValid in GDAL 3.13
GDAL 3.13.0
https://github.com/OSGeo/gdal/pull/14158
> Certain geometries cannot be read using GEOS, for example if Polygon rings are not closed or do not contain enough vertices. If a geometry cannot be read by GEOS, NULL will be returned. Starting with GDAL 3.13, GDAL will attempt to modify these geometries such that they can be read and repaired by GEOS.
condition the following tests for GDAL 3.13:
```r
Failure (test-geom.R:1409:5): make_valid works
Expected `wkb2 <- g_make_valid(wkt2)` to throw a warning.
Failure (test-geom.R:1410:5): make_valid works
Expected `is.null(wkb2)` to be TRUE.
Differences:
`actual`: FALSE
`expected`: TRUE
Failure (test-geom.R:1431:5): make_valid works
Expected `is.null(wkb_list[[2]])` to be TRUE.
Differences:
`actual`: FALSE
`expected`: TRUE
Failure (test-geom.R:1441:5): make_valid works
Expected `is.null(wkb_list[[2]])` to be TRUE.
Differences:
`actual`: FALSE
`expected`: TRUE
```
关闭于 2026-03-28 0 条评论