I am trying to overlay points on a polygon, but identicalCRS
complains the reference system is not the same. It actually is the same:
> polygon@proj4string
CRS arguments:
+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0
> points@proj4string
CRS arguments:
+proj=longlat +datum=WGS84 +ellps=WGS84 +towgs84=0,0,0
>
> identicalCRS(polygon@proj4string, points@proj4string)
Error in (function (classes, fdef, mtable) :
unable to find an inherited method for function ‘proj4string’ for signature ‘"CRS"’
> identicalCRS(polygon, points)
[1] FALSE
Bug or feature? Any workaround?