useDynLib(terra, .registration=TRUE)
import(methods, Rcpp)
importFrom(stats, na.omit)

exportMethods("[", "[[", "!", "%in%", activeCat, "activeCat<-", "add<-", adjacent, all.equal, aggregate, align, animate, app, area, Arith, approximate, as.bool, as.int, as.contour, as.lines, as.points, as.polygons, as.raster, as.array, as.data.frame, as.factor, as.list, as.logical, as.matrix, as.numeric, atan2, atan_2, autocor, barplot, boundaries, boxplot, buffer, cartogram, categories, cats, catalyze, clamp, classify, clearance, cellSize, cells, cellFromXY, cellFromRowCol, cellFromRowColCombine, centroids, click, colFromX, colFromCell, colorize, coltab, "coltab<-", Compare, compareGeom, contour, convHull, crds, cover, crop, crosstab, crs, "crs<-", datatype, deepcopy, delauny, densify, density, depth, "depth<-", describe, diff, disagg, direction, distance, dots, draw, erase, extend, ext, "ext<-", extract, expanse, fillHoles, fillTime, flip, focal, focal3D, focalCor, focalReg, focalCpp, focalValues, freq, gaps, geom, geomtype, global, gridDistance, hasMinMax, hasValues, hist, head, ifel, impose, init, image, inext, inMemory, inset, interpolate, intersect, is.bool, is.int, is.lonlat, isTRUE, isFALSE, is.factor, is.lines, is.points, is.polygons, is.related, is.valid, lapp, layerCor, levels, linearUnits, lines, Logic, varnames, "varnames<-", longnames, "longnames<-", makeValid, mask, match, math, Math, Math2, mean, median, merge, mergeLines, mergeTime, minmax, minRect, modal, mosaic, na.omit, NAflag, "NAflag<-", nearby, nearest, ncell, ncol, "ncol<-", nlyr, "nlyr<-", nrow, "nrow<-", nsrc, origin, "origin<-", pairs, patches, perim, persp, plot, plotRGB, RGB, "RGB<-", polys, points, predict, project, quantile, query, rapp, rast, rasterize, readStart, readStop, readValues, rectify, relate, removeDupNodes, res, "res<-", resample, rescale, rev, rotate, rowFromY, rowColFromCell, rowFromCell, sapp, scale, sds, sprc, src, sel, selectRange, setMinMax, setValues, segregate, selectHighest, setCats, set.cats, set.crs, set.ext, set.names, set.values, size, sharedPaths, shift, simplifyGeom, snap, sources, spatSample, split, spin, stdev, stretch, subst, summary, Summary, subset, svc, symdif, t, tail, tapp, terrain, tighten, makeNodes, makeTiles, time, "time<-", text, trans, trim, units, union, "units<-", unique, vect, values, "values<-", voronoi, vrt, weighted.mean, which.lyr, which.min, which.max, which.lyr, width, window, "window<-", writeCDF, writeRaster, wrap, writeStart, writeStop, writeVector, writeValues, xmin, xmax, "xmin<-", "xmax<-", xres, xFromCol, xyFromCell, xFromCell, ymin, ymax, "ymin<-", "ymax<-", yres, yFromCell, yFromRow, zonal, zoom, cbind2, RGB2col)

S3method(cbind, SpatVector)
S3method(rbind, SpatVector)
S3method(as.data.frame, SpatRaster)
S3method(as.data.frame, SpatVector)
S3method(as.matrix, SpatRaster)
S3method(as.list, SpatRaster)
S3method(as.list, SpatVector)

export(focalMat, gdal, arrow, north, sbar, terraOptions, tmpFiles, makeVRT, mem_info, free_RAM, shade, gdalCache, fileBlocksize, vector_layers)

