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

Interface to Geometry Engine - Open Source ('GEOS') using the C 'API' for topology operations on geometries. 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-5 by Roger Bivand, 22 days 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 BIEN, BIRDS, CCAMLRGIS, ConR, CoordinateCleaner, DSpat, DSsim, ENMTools, EcoIndR, ExtractTrainData, FLightR, FedData, ForestGapR, ForestTools, GADMTools, GInSARCorW, GeNetIt, GmAMisc, LabourMarketAreas, MBNMAdose, MEDITS, MODIS, MazamaSpatialUtils, MetaLandSim, Momocs, NetLogoR, OasisR, RAC, RStoolbox, RSurvey, RchivalTag, ReadDIM, Rtrack, SDraw, SK, SSN, SWMPrExtension, SegEnvIneq, ShapePattern, SimSurvey,, SpatialEpiApp, SpatialGraph, SpatialPosition, SurfaceTortoise, TileManager, amber, amt, antaresViz, atakrig, birdring, briskaR, cartograflow, cartography, constrainedKriging, contact, disaggregation, dynatopmodel, eechidna, emdi, expp, fieldRS, flightplanning, gDefrag, geoaxe, geodetector, geodiv, geogrid, geojsonio, geoviz, geozoning, gfcanalysis, ggvoronoi, gtfs2gps, hero, hierarchicalDS, hyfo, hypervolume, incR, inlabru, inlmisc, ipdw, lakemorpho, leafletCN, leastcostpath, letsR, lgcp, lidR, mapsRinteractive, movecost, muHVT, nichevol, osmplotr, pgirmess, phyloregion, plotdap, postGIStools, prioritizr, psda, quickPlot, quickmapr, rKIN, rangeBuilder, rangeMapper, rangeModelMetadata, raptr, red, redlistr, rpostgis, sdStaf, shadow, smartR, spatialEco, spatsoc, spatsurv, spsurvey, stampr, stplanr, uavRmp, wallace, waveformlidar, waver, wildlifeDI, wux.

Depended on by DivE, GISTools, IceCast, KappaV, Watersheds, cleangeo, highriskzone, ibeemd, itcSegment, pycno, spMaps, spatialClust.

Suggested by AQuadtree, BayesX, BiodiversityR, CAST, ENMeval, FRK, GapAnalysis, HSAR, IsoriX, RSAGA, SiMRiv, SubgrPlots, TrajDataMining, adehabitatHR, adehabitatHS, adespatial, bcmaps, blockCV, broom, cancensus, cartogram, covid19mobility, daymetr, dismo, ecospat, epiR, excursions, fhidata, foieGras, ggformula, ggplot2, grainscape, gstat, gwfa, hypergate, indicspecies, inldata, landscapemetrics, leaflet, lingtypology, mapmisc, maptools, micromap, mregions, nhdR, npphen, oce, plotly, polyCub, prioritizrdata, rCAT, raster, recurse, reproducible, rgbif, rmapshaper, rnaturalearth, rtop, sampSurf, secr, secrlinear, sf, sharpshootR, soilDB, sp, spacetime, spdep, sptotal, stormwindmodel, streamDepletr, surveillance, tbart, tidyUSDA, tigris, trajectories, ursa, windfarmGA.

Enhanced by geostatsp.

See at CRAN