R/spatial_sp.R

Defines functions tmapGetShapeMeta1.Spatial tmapSubsetShp.Spatial tmapShape.Spatial

#' @export
tmapShape.Spatial = function(shp, is.main, crs, bbox, unit, filter, shp_name, smeta, o, tmf) {
	tmapShape.sf(as(shp, "sf"), is.main, crs, bbox, unit, filter, shp_name, smeta, o, tmf)
}

#' @export
tmapSubsetShp.Spatial = function(shp, vars) {
	tmapSubsetShp.sf(as(shp, "sf"), vars)
}


#' @export
tmapGetShapeMeta1.Spatial = function(shp, o) {
	tmapGetShapeMeta1.SpatRaster(as(shp, "sf"), o)
}
r-tmap/tmap documentation built on Feb. 28, 2025, 7:54 a.m.