Skip to content
Prev 3434 / 29559 Next

intersection of objects SpatialPolygonsDataFrame

Thanks,

I get a problem in the inverse transform:
 > delme <- 
PolySet2SpatialPolygons(SpatialPolygons2PolySet(absUTMpolysHABS2))
Error in 
PolySet2SpatialPolygons(SpatialPolygons2PolySet(absUTMpolysHABS2)) :
   unknown coordinate reference system

probably because
 > absUTMpolysHABS2 at proj4string
CRS arguments: NA

despite the fact that I do have a *.prj file in the directory
where I import with  rgdal (thought that rgdal would read the *.prj file
if present).

I'm working on this (proj4 strings are not straightforward for ED50). 
Meanwhile wanted to run the example in the PolySet2SpatialPolygons
help page but:

 > nor_coast_poly_sp <- map2SpatialPolygons(nor_coast_poly, IDs=IDs,
+  proj4string=CRS("+proj=longlat +datum=wgs84"))
Error in CRS("+proj=longlat +datum=wgs84") :
   unknown elliptical parameter name

does anybody know the right proj4string in that case?

Agus


Andrew Niccolai escribi?: