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)
}

Try the tmap package in your browser

Any scripts or data that you put into this service are public.

tmap documentation built on April 4, 2025, 2:05 a.m.