Situation (spatial context) based methods At the bottom of this page there is a table that shows differences in the methods between the two packages.īelow is a list of some of the most important methods grouped by theme. terra has a very similar, but simpler, interface, and it is faster than raster. The terra package is conceived as a replacement of the raster package. Generally, you should use writeRaster to save SpatRaster objects to disk (and pass a filename or cell values to cluster nodes). They cannot be recovered from a saved R session either or directly passed to nodes on a computer cluster. These classes hold a C++ pointer to the data "reference class" and that creates some limitations. ![]() There is also a SpatGraticule class to assist in adding a longitude/latitude lines and labels to a map with another coordinate reference system. Each sub-dataset is a SpatRaster with possibly many layers, and may, for example, represent different weather variables and SpatRasterCollection and SpatVectorCollection that are equivalent to lists of SpatRaster or SpatVector objects. SpatVector supports all types of geometric operations such as intersections.Īdditional classes include SpatExtent, which is used to define a spatial extent (bounding box) SpatRasterDataset, which represents a collection of sub-datasets for the same area. SpatRaster supports handling large raster files that cannot be loaded into memory local, focal, zonal, and global raster operations polygon, line and point to raster conversion integration with modeling methods to make spatial predictions and more. The package implements two main classes (data types): SpatRaster and SpatVector. In contrast, "vector" spatial data (points, lines, polygons) are typically used to represent discrete spatial entities, such as a road, country, or bus stop. Satellite images also have this data structure, and in that context grid cells are often referred to as pixels. Raster data divide space into rectangular grid cells and they are commonly used to represent spatially continuous phenomena, such as elevation or the weather. Terra provides methods to manipulate geographic (spatial) data in "raster" and "vector" form.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |