Re: [R-sig-Geo] Proper PROJ settings for lat-long?

2010-10-02 Thread Michael Sumner
This is correct for the either case (without the extra "+"): "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" There is some limited supported for the 0, 360 convention in PROJ.4 with the +over argument: "+proj=longlat +ellps=WGS84 +datum=WGS84 +over +no_defs" but, that will not perform the req

Re: [R-sig-Geo] Proper PROJ settings for lat-long?

2010-10-02 Thread Robert J. Hijmans
Jonathan, I do not think so, but I think you can do something like: crd <- coordinates(x) crd[crd[,1] > 180, 1] <- crd[crd[,1] > 180, 1] - 360 sp <- SpatialPoints(crd) Robert On Fri, Oct 1, 2010 at 9:42 PM, Jonathan Greenberg wrote: > Folks: > > I have two sets of spatialpoints data, one tha

[R-sig-Geo] Proper PROJ settings for lat-long?

2010-10-01 Thread Jonathan Greenberg
Folks: I have two sets of spatialpoints data, one that is in lat long which longitude ranging from -180 to 180, and another that ranges from 0 to 360. What are the appropriate proj settings for these two different datasets such that one can be properly reprojected to the other? I have: "++proj=