Skip to content
Prev 17154 / 29559 Next

proj4string-issue - leading spaces

On Fri, 11 Jan 2013, Jon Olav Skoien wrote:

            
Well, preferably:

https://stat.ethz.ch/pipermail/r-sig-geo/2012-December/016913.html

but also see:

http://cran.r-project.org/web/packages/rgdal/ChangeLog

or

library(rgdal)
file.show(system.file("ChangeLog", package="rgdal"))

See also:

https://r-forge.r-project.org/scm/viewvc.php/pkg/R/Class-CRSx.R?root=rgdal&r1=378&r2=401

https://r-forge.r-project.org/scm/viewvc.php/pkg/src/projectit.cpp?root=rgdal&r1=361&r2=401

The underlying problem is the very widespread use of identical() in all 
kinds of code in lots of places. Since the rgdal release in December, 
entry into libproj is not going to prepend spaces anymore. So over time, 
workarounds to add spaces will cease to be needed. In the mean time, all 
use of identical() for comparing these character strings remains 
problematic. Extending to a dependency from sp to the compare package 
seems unnecessary, but the sp package could offer a function to compare 
CRS directly - contributions welcome!

Roger