gIsEmpty {rgeos} | R Documentation |
Tests if the given geometry is empty
gIsEmpty(spgeom, byid = FALSE)
spgeom |
sp object as defined in package sp |
byid |
Logical determining if the function should be applied across subgeometries (TRUE) or the entire object (FALSE) |
Returns TRUE if the given geometry is empty, FALSE otherwise.
Roger Bivand & Colin Rundel
gIsEmpty(readWKT("POINT EMPTY")) gIsEmpty(readWKT("POINT(1 1)")) gIsEmpty(readWKT("LINESTRING EMPTY")) gIsEmpty(readWKT("LINESTRING(0 0,1 1)")) gIsEmpty(readWKT("POLYGON EMPTY")) gIsEmpty(readWKT("POLYGON((0 0,1 0,1 1,0 1,0 0))"))