From 0584e6cce4320df008701cb6097137948221cb9b Mon Sep 17 00:00:00 2001 From: rhijmans Date: Sun, 4 Feb 2024 18:54:08 +0100 Subject: [PATCH] fixes #330 --- R/writeStartStop.R | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/R/writeStartStop.R b/R/writeStartStop.R index 35feadab..ebd69e96 100644 --- a/R/writeStartStop.R +++ b/R/writeStartStop.R @@ -31,9 +31,9 @@ function(x, filename, options=NULL, format, prj=FALSE, ...) { } if (prj) { - crs <-.getCRS(x) - if (crs != "") { - writeLines(wkt(x), extension(filename, "prj") ) + wk <- wkt(x) + if (wk != "") { + writeLines(wk extension(filename, "prj") ) } } return(x)