From 8dc6a3b89ae237f6b86bb4cac0d8f0e7d74d6905 Mon Sep 17 00:00:00 2001 From: Michael Sumner Date: Fri, 11 Jan 2019 15:02:05 +1100 Subject: [PATCH] fix message about drop_zm --- R/sp.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/sp.R b/R/sp.R index e2c48b822..f0e8e8996 100644 --- a/R/sp.R +++ b/R/sp.R @@ -237,10 +237,10 @@ as_Spatial = function(from, cast = TRUE, IDs = paste0("ID", 1:length(from))) { zm = class(from[[1]])[1] if (zm %in% c("XYM", "XYZM")) stop("geometries containing M not supported by sp\n", - 'use `drop_zm(..., what = "M")`') + 'use `st_zm(..., what = "M")`') StopZ = function(zm) { if (zm %in% c("XYZ", "XYZM")) stop("sp supports Z dimension only for POINT and MULTIPOINT.\n", - 'use `drop_zm(...)` to coerce to XY dimensions') } + 'use `st_zm(...)` to coerce to XY dimensions') } switch(class(from)[1], "sfc_POINT" = sfc2SpatialPoints(from), "sfc_MULTIPOINT" = sfc2SpatialMultiPoints(from),