Interface to Geometry Engine - Open Source ('GEOS')

Interface to Geometry Engine - Open Source ('GEOS') using the C 'API' for topology operations on geometries. Please note that 'rgeos' will be retired by the end of 2023, plan transition to sf functions using 'GEOS' at your earliest convenience. The 'GEOS' library is external to the package, and, when installing the package from source, must be correctly installed first. Windows and Mac Intel OS X binaries are provided on 'CRAN'. ('rgeos' >= 0.5-1): Up to and including 'GEOS' 3.7.1, topological operations succeeded with some invalid geometries for which the same operations fail from and including 'GEOS' 3.7.2. The 'checkValidity=' argument defaults and structure have been changed, from default FALSE to integer default '0L' for 'GEOS' < 3.7.2 (no check), '1L' 'GEOS' >= 3.7.2 (check and warn). A value of '2L' is also provided that may be used, assigned globally using 'set_RGEOS_CheckValidity(2L)', or locally using the 'checkValidity=2L' argument, to attempt zero-width buffer repair if invalid geometries are found. The previous default (FALSE, now '0L') is fastest and used for 'GEOS' < 3.7.2, but will not warn users of possible problems before the failure of topological operations that previously succeeded. From 'GEOS' 3.8.0, repair of geometries may also be attempted using 'gMakeValid()', which may, however, return a collection of geometries of different types.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.5-9 by Roger Bivand, a month ago

Browse source code at

Authors: Roger Bivand [cre, aut] , Colin Rundel [aut] , Edzer Pebesma [ctb] , Rainer Stuetz [ctb] , Karl Ove Hufthammer [ctb] , Patrick Giraudoux [ctb] , Martin Davis [cph, ctb] , Sandro Santilli [cph, ctb]

Documentation:   PDF Manual  

Task views: Analysis of Spatial Data

GPL (>= 2) license

Imports utils, stats, graphics

Depends on methods, sp

Suggests maptools, testthat, XML, maps, rgdal

Linking to sp

System requirements: GEOS (>= 3.2.0); for building from source: GEOS from; GEOS OSX frameworks built by William Kyngesburye at may be used for source installs on OSX.

Imported by CCAMLRGIS, ConR, CoordinateCleaner, DEPONS2R, DSsim, ENMTools, EPP, EcoIndR, ExtractTrainData, FedData, ForestGapR, ForestTools, GADMTools, GInSARCorW, GeNetIt, GeoFIS, GmAMisc, HDSpatialScan, LabourMarketAreas, MBNMAdose, MEDITS, MazamaSpatialUtils, MetaLandSim, Momocs, NetLogoR, OasisR, RAC, RStoolbox, RSurvey, RchivalTag, ReadDIM, Rtrack, SK, SSN, SegEnvIneq, ShapePattern, SimSurvey,, SpatialGraph, SurfaceTortoise, amt, antaresViz, atakrig, bRacatus, bfsMaps, biosurvey, birdring, briskaR, cartograflow, cartography, constrainedKriging, contact, crestr, disaggregation, diseasemapping, dsims, dynatopGIS, eechidna, enerscape, envi, expp, fieldRS, gDefrag,, geocmeans, geodetector, geodiv, geogrid, geojsonio, geoviz, gfcanalysis, ggOceanMaps, ggvoronoi, gtfs2gps, hero, hierarchicalDS, hyfo, hypervolume, incR, inlabru, inlmisc, ipdw, lakemorpho, leafletCN, leastcostpath, letsR, lgcp, mapsRinteractive, movecost, muHVT, nichevol, osmplotr, pgirmess, phyloregion, plotdap, postGIStools, prioritizr, psda, quickPlot, quickmapr, rKIN, rLiDAR, rTLS, rangeBuilder, rangeModelMetadata, rangemap, raptr, rcage, red, redlistr, rpostgis, sdStaf, shadow, smoothr, spNetwork, spatialEco, spatsoc, spatsurv, stampr, stplanr, treetop, uavRmp, wallace, waver, weed, wildlifeDI, wux.

Depended on by DivE, GISTools, KappaV, Watersheds, animalEKF, cleangeo, ecochange, highriskzone, ibeemd, itcSegment, pycno, spMaps.

Suggested by AQuadtree, BayesX, BiodiversityR, CAST, FRK, GWPR.light, GapAnalysis, IsoriX, MBNMAtime, R2BayesX, RSAGA, RtD3, SiMRiv, SubgrPlots, TrajDataMining, adehabitatHR, adehabitatHS, adespatial, agriwater, bcmaps, blockCV, broom, cancensus, cartogram, dismo, downscale, dynamAedes, ecospat, emdi, epiR, excursions, foieGras, ggformula, ggplot2, grainscape, gstat, gwfa, hypergate, indicspecies, inldata, landscapemetrics, leaflet, lidR, lingtypology, mapmisc, maptools, micromap, mregions, naturaList, nhdR, npphen, oce, plotly, polyCub, prioritizrdata, rCAT, raster, recurse, reproducible, rgbif, rgdal, rmapshaper, rnaturalearth, rtop, sampSurf, sdmApp, secr, secrlinear, sf, sharpshootR, simplevis, sp, spacetime, spdep, sptotal, streamDepletr, strm, surveillance, synoptReg, tbart, tidyUSDA, tigris, track2KBA, trajectories, ursa.

See at CRAN