Get the type of a spatial object.
Get the type of a spatial object.
getType(x, ...) ## S4 method for signature 'ANY' getType(x) ## S4 method for signature 'geom' getType(x) ## S4 method for signature 'Spatial' getType(x) ## S4 method for signature 'sf' getType(x) ## S4 method for signature 'Raster' getType(x) ## S4 method for signature 'matrix' getType(x)
x |
the object for which to determine the type. |
... |
other arguments. |
A vector of two values of the geometry type (point/line/polygon/grid)
and the specific main type/class of x
.
getType(x = gtGeoms$point) getType(x = gtSP$SpatialPolygons) getType(x = gtSF$multiline) getType(x = gtRasters$categorical) getType(x = matrix(0, 3, 5))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.